Function at 0x7bf770
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0xbd33e0]
mov ebp, edx
mov esi, ecx
shl ebp, 4
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x10]
mov ebx, dword [eax + ebp + 0xc]
mov eax, dword [ebx + 0x10]
jmp 0x7bf79e
mov ecx, dword [eax + 8]
and dword [ecx + 0x24], 0xffffffef
mov eax, dword [eax]
test eax, eax
jne 0x7bf795
mov eax, dword [ebx + 0x20]
jmp 0x7bf7b3
mov ecx, dword [eax + 8]
and dword [ecx + 0x38], 0xffffff7f
mov eax, dword [eax]
test eax, eax
jne 0x7bf7a7
mov edi, fcn.007a85d0
xor eax, eax
movzx edx, byte [0xbb6103]
and edi, 1
inc edi
mov ecx, edi
xor ecx, fcn.007a85d0
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7bf93c
mov al, byte [0xbb6103]
mov dword [esp], ebx
mov ebx, edi
xor ecx, ecx
mov ah, 1
xor ebx, fcn.007a85d0
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6103], ah
jne 0x7bf7ed
mov ecx, fcn.007a85d0
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov edi, ecx
xor edi, fcn.007a85d0
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7bf86a
mov ebx, dword [esp]
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbb6103]
xor edx, fcn.007a85d0
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2]
bt edi, eax
jae 0x7bf844
jmp 0x7bf93c
xor eax, eax
xor ecx, fcn.007a85d0
movzx edx, byte [0xbb6103]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7bf911
mov eax, fcn.007a85d0
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007a85d0
sete cl
mov eax, ecx
xor eax, 0x82257ec5
lea ecx, [eax + ecx*2 + 0x270]
mov eax, dword [0xbb60f0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb60f0], eax
not eax
imul edx, eax
mov eax, dword [0xbb60f4]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb60f4], eax
or edi, edx
not eax
mov edx, dword [0xbb60f8]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb60f8], edx
or edi, eax
not edx
mov al, 1
imul edx, edi
shl al, cl
xor dword [0xbb60fc], edx
or byte [0xbb6103], al
mov eax, fcn.007a85d0
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007a85d0
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb6103], al
mov ebx, dword [esp]
mov dword [esp + 4], esi
mov ecx, esi
mov edx, 0xbb60f0
mov eax, dword [esi + 0x10]
mov edi, dword [eax + ebp]
mov dword [esp + 8], edi
push edi
call fcn.00797640
add esp, 4
test eax, eax
jne 0x7bf965
xor edi, edi
jmp 0x7bfbbe
mov edx, fcn.008406b0
mov ebp, ebx
mov ebx, fcn.008406b0
movzx ecx, byte [0xbb613f]
or edx, 2
xor ebx, 2
mov eax, edx
add eax, ebx
sete al
xor al, 3
movzx eax, al
bt ecx, eax
jb 0x7bfb7f
mov al, byte [0xbb613f]
mov ecx, edx
mov ah, 1
add ecx, ebx
sete cl
or cl, 0xfc
add cl, 8
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb613f], ah
jne 0x7bf998
mov ecx, fcn.008406b0
mov edx, fcn.008406b0
or ecx, 2
xor edx, 2
mov ebx, ecx
add ebx, edx
sete ah
or ah, 0xfc
add ah, 8
movzx ebx, ah
movzx eax, al
bt eax, ebx
jae 0x7bf9fa
mov eax, ecx
movzx ebx, byte [0xbb613f]
add eax, edx
sete al
xor al, 3
movzx eax, al
bt ebx, eax
jae 0x7bf9dd
jmp 0x7bfb7f
add ecx, edx
movzx ecx, byte [0xbb613f]
sete al
xor al, 3
movzx eax, al
bt ecx, eax
jb 0x7bfb5a
mov eax, fcn.008406b0
mov edx, fcn.008406b0
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov edx, dword [str.__CN]
sete cl
xor ecx, 0xb0f107b
lea eax, [ecx + 0xe00]
and cl, 3
xor edx, eax
mov dword [str.__CN], edx
not edx
imul edx, eax
mov eax, dword [0xbb6114]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6114], eax
or ebx, edx
not eax
mov edx, dword [0xbb6118]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6118], edx
or ebx, eax
not edx
mov eax, dword [0xbb611c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb611c], eax
or ebx, edx
not eax
mov edx, dword [0xbb6120]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb6120], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb6124]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb6124], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb6128]
mov ebx, eax
shl ebx, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb6128], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb612c]
mov ebx, edx
shl ebx, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb612c], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb6130]
mov ebx, eax
shl ebx, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb6130], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb6134]
mov ebx, edx
shl ebx, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbb6134], eax
or edx, ebx
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb6138], eax
shl dl, cl
or byte [0xbb613f], dl
mov eax, fcn.008406b0
mov ecx, fcn.008406b0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 0xfc
add cl, 8
rol al, cl
and byte [0xbb613f], al
push edi
push str.__CN
push esi
call fcn.0078df10
add esp, 0xc
test eax, eax
jne 0x7bfb99
mov edi, 7
jmp 0x7bfbbc
mov ebx, eax
lea eax, [esp + 4]
push 0
push eax
push 0x7cb0e0
push ebx
push esi
call fcn.0078f880
add esp, 0x14
mov ecx, esi
mov edx, ebx
mov edi, eax
call fcn.00780810
mov ebx, ebp
mov ebx, dword [ebx + 0x20]
test ebx, ebx
je 0x7bfbd7
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x38], 0
js 0x7bfbd3
call fcn.007cb1e0
mov ebx, dword [ebx]
jmp 0x7bfbc1
cmp edi, 7
jne 0x7bfbe3
mov ecx, esi
call fcn.0078a090
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00989fe9
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret