Function at 0x7e8470
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x20]
mov eax, dword [0xbcbae0]
mov ebx, edx
xor eax, esp
mov dword [esp + 8], eax
mov dword [esp], ecx
mov edi, dword [ecx]
call fcn.007c5c50
test eax, eax
jne 0x7e87f6
test ebx, ebx
je 0x7e8809
test esi, esi
je 0x7e84ab
cmp dword [esi], 0
jne 0x7e8504
mov eax, dword [esp]
mov edx, ebx
mov ecx, dword [eax]
call fcn.007d8f60
test eax, eax
je 0x7e87f6
movzx edx, byte [edi + 0x4e]
mov ebp, eax
mov ecx, edi
push 0
push eax
call fcn.007c8160
add esp, 8
test eax, eax
je 0x7e84fb
mov ecx, dword [esp]
mov edx, ebp
call 0x82d220
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00980459
mov ecx, edi
mov edx, ebp
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00774f10
mov ecx, edi
mov edx, ebp
call fcn.00774f10
mov ecx, dword [esp]
lea eax, [esp + 4]
mov edx, ebx
push eax
push esi
call fcn.007f4ea0
add esp, 8
test eax, eax
js 0x7e87f6
mov edx, dword [esp + 4]
mov ecx, edi
mov ebx, eax
call fcn.007d8f60
test eax, eax
je 0x7e87f6
mov ebp, eax
mov eax, dword [edi + 0x10]
mov ecx, ebx
shl ecx, 4
mov edx, ebp
mov esi, dword [eax + ecx]
mov ecx, edi
push esi
call fcn.0078bd40
add esp, 4
test eax, eax
je 0x7e8566
mov ecx, dword [esp]
mov edx, eax
push 0
call fcn.0082d280
add esp, 4
jmp 0x7e84e0
mov ecx, edi
mov edx, ebp
push esi
call fcn.007bf210
add esp, 4
mov ecx, edi
mov edx, ebp
mov edi, eax
call fcn.00774f10
test edi, edi
je 0x7e85a5
mov esi, dword [esp]
xor edx, edx
mov ecx, esi
push ebx
call fcn.007f56e0
add esp, 4
mov ecx, esi
mov edx, edi
push 0xffffffffffffffff
call fcn.00804740
add esp, 4
jmp 0x7e87f6
mov edx, fcn.0079a920
mov esi, fcn.0079a920
movzx ecx, byte [0xbb3bc3]
or edx, 2
xor esi, 2
mov eax, edx
add eax, esi
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7e87e5
mov al, byte [0xbb3bc3]
mov ecx, edx
mov ah, 1
add ecx, esi
setne cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb3bc3], ah
jne 0x7e85d6
mov ecx, fcn.0079a920
mov edx, fcn.0079a920
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
setne ah
or ah, 4
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x7e8638
mov eax, ecx
movzx esi, byte [0xbb3bc3]
add eax, edx
setne al
or al, 4
movzx eax, al
bt esi, eax
jae 0x7e861b
jmp 0x7e87e5
add ecx, edx
movzx ecx, byte [0xbb3bc3]
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7e87c0
mov eax, fcn.0079a920
mov edx, fcn.0079a920
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb3b90]
sete cl
xor ecx, 0x552342f1
add ecx, 0xa04
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb3b90], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb3b94]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb3b94], eax
or esi, edx
not eax
mov edx, dword [0xbb3b98]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb3b98], edx
or esi, eax
not edx
mov eax, dword [0xbb3b9c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb3b9c], eax
or esi, edx
not eax
mov edx, dword [0xbb3ba0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb3ba0], edx
or eax, esi
not edx
mov edi, dword [0xbb3ba4]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbb3ba4], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb3ba8]
mov esi, edi
shl esi, 6
xor edx, edi
shr edi, 0x19
mov dword [0xbb3ba8], edx
or edi, esi
not edx
mov ebx, dword [0xbb3bac]
imul edx, edi
mov esi, edx
shl esi, 7
xor ebx, edx
shr edx, 0x18
mov dword [0xbb3bac], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb3bb0]
mov esi, ebx
shl esi, 8
xor edx, ebx
shr ebx, 0x17
mov dword [0xbb3bb0], edx
or ebx, esi
not edx
mov edi, dword [0xbb3bb4]
imul edx, ebx
mov esi, edx
shl esi, 9
xor edi, edx
shr edx, 0x16
mov dword [0xbb3bb4], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb3bb8]
mov esi, edi
shl esi, 0xa
xor edx, edi
shr edi, 0x15
mov dword [0xbb3bb8], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbb3bbc], edx
mov dl, 1
shl dl, cl
or byte [0xbb3bc3], dl
mov eax, fcn.0079a920
mov ecx, fcn.0079a920
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
setne cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb3bc3], al
push 0xbb3b90
push dword [esp + 4]
call fcn.00782570
add esp, 8
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00980459
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00980459
mov ecx, dword [esp]
xor edx, edx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp 0x82d220
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x82d274
mov edi, ecx
mov ecx, dword [esp]
mov esi, edx
xor ebx, ebx
mov ecx, dword [ecx + 0x10]
mov dword [esp + 4], ecx
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + 0x10]
test ebp, ebp
je 0x82d268
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.0082d280
add esp, 4
mov ebp, dword [ebp]
test ebp, ebp
jne 0x82d24d
mov eax, dword [esp]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 4]
inc ebx
add ecx, 0x10
cmp ebx, eax
jl 0x82d23f
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret