Function at 0x7f6510
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov ebx, dword [ecx]
mov esi, edx
mov edi, ecx
mov dword [esp + 4], eax
lea eax, [edx + 8]
mov dword [esp], 0
xor edx, edx
push eax
call fcn.0080c090
add esp, 4
test eax, eax
jne 0x7f6549
xor ebp, ebp
jmp 0x7f69b8
mov ecx, edi
mov edx, eax
mov dword [esp + 0x20], ebp
mov ebp, eax
call fcn.0083ac70
test eax, eax
je 0x7f6563
xor ebp, ebp
jmp 0x7f69b8
mov ecx, edi
mov edx, ebp
call fcn.0083b650
test eax, eax
je 0x7f6577
xor ebp, ebp
jmp 0x7f69b8
mov edx, dword [ebp + 0x48]
mov ecx, ebx
call fcn.0078dee0
mov ecx, eax
mov eax, dword [ebx + 0x10]
mov edx, 0x1a
mov dword [esp + 0x18], ecx
shl ecx, 4
mov eax, dword [eax + ecx]
mov ecx, edi
push 0
push dword [ebp]
mov dword [esp + 0x34], eax
push eax
call fcn.008002d0
add esp, 0xc
test eax, eax
je 0x7f65b4
xor ebp, ebp
jmp 0x7f69b8
mov dword [esp + 0x10], ebp
mov ecx, ebx
mov edx, dword [esp + 4]
call fcn.007e4800
test eax, eax
mov ebp, 0
je 0x7f69b8
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov ebp, eax
mov eax, dword [esp + 0x10]
movsx ecx, word [eax + 0x2a]
test ecx, ecx
mov dword [esp], ecx
jg 0x7f65ed
xor esi, esi
jmp 0x7f6609
mov edi, dword [eax + 4]
xor esi, esi
lea eax, [esi + esi*4]
mov edx, ebp
mov ecx, dword [edi + eax*4]
call fcn.00783720
test eax, eax
je 0x7f6609
inc esi
cmp esi, dword [esp]
jl 0x7f65f2
cmp esi, dword [esp]
jne 0x7f67e6
mov edx, fcn.00822d30
xor eax, eax
movzx esi, byte [0xbbbecb]
mov edi, dword [esp + 0xc]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt esi, eax
mov esi, dword [esp + 8]
jb 0x7f67cb
mov al, byte [0xbbbecb]
mov esi, ebx
xor ecx, ecx
cmp edx, 3
mov ah, 1
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 [0xbbbecb], ah
jne 0x7f664c
mov ecx, fcn.00822d30
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f66bf
mov ebx, esi
mov esi, dword [esp + 8]
xor eax, eax
cmp ecx, 3
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2]
movzx edx, byte [0xbbbecb]
bt edx, eax
jae 0x7f669e
jmp 0x7f67cb
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbbbecb]
mov ebx, esi
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7f679f
mov eax, fcn.00822d30
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x94dd136d
lea ecx, [eax + ecx*2 + 0x900]
mov eax, dword [0xbbbeb0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbbeb0], eax
not eax
imul edx, eax
mov eax, dword [0xbbbeb4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbbeb4], eax
or esi, edx
not eax
mov edx, dword [0xbbbeb8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbbeb8], edx
or esi, eax
not edx
mov eax, dword [0xbbbebc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbbebc], eax
or esi, edx
not eax
mov edx, dword [0xbbbec0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbbec0], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbbbec4], edx
mov dl, 1
shl dl, cl
or byte [0xbbbecb], dl
mov eax, fcn.00822d30
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbbecb], al
mov esi, dword [esp + 8]
push ebp
push 0xbbbeb0
push edi
call fcn.0078de60
add esp, 0xc
mov dword [esp], 0
jmp 0x7f69b8
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.007fc3c0
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.007e4800
mov dword [esp], eax
xor ecx, ecx
test eax, eax
mov esi, dword [esp + 8]
jne 0x7f6819
mov dword [esp], 0
jmp 0x7f69b8
mov edx, fcn.007fea70
mov eax, fcn.007fea70
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
and edx, 1
xor edx, eax
mov dword [esp + 0x30], edx
xor ebx, ebx
cmp dword [esp + 0x30], 0xffffffff
mov ebp, dword [ecx*4 + 0xb571b4]
mov esi, dword [ecx*4 + 0xb571c4]
mov dword [esp + 0x38], ecx
mov eax, 1
mov edx, 1
sete bl
xor ebx, 0xe230d08f
or ebx, 0xc20
xor ebx, dword [ecx*4 + 0xb571d4]
mov ecx, ebx
and cl, 7
shl eax, cl
movzx edi, cl
xor cl, 7
shl edx, cl
movzx ecx, byte [ebp + esi - 1]
bt ecx, edi
jb 0x7f6912
mov dword [esp + 0x1c], eax
mov al, byte [ebp + esi - 1]
mov ecx, eax
or cl, dl
lock cmpxchg byte [ebp + esi - 1], cl
jne 0x7f6892
mov ecx, dword [esp + 0x1c]
movzx eax, al
test edx, eax
je 0x7f68b4
movzx eax, byte [ebp + esi - 1]
test ecx, eax
je 0x7f68a9
jmp 0x7f6912
movzx eax, byte [ebp + esi - 1]
test ecx, eax
jne 0x7f690c
lea ecx, [esi - 4]
shr ecx, 2
je 0x7f6904
xor eax, eax
mov edi, ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edi
mov ecx, edi
mov edi, dword [edi]
mov dword [esp + 4], ebx
xor edi, ebx
mov dword [ecx], edi
mov ecx, eax
not edi
inc eax
shl dword [esp + 4], cl
and cl, 0x1f
xor cl, 0x1f
shr ebx, cl
mov ecx, dword [esp + 0x34]
or ebx, dword [esp + 4]
imul ebx, edi
mov edi, dword [esp + 0x3c]
add edi, 4
cmp eax, ecx
jne 0x7f68cd
mov eax, dword [esp + 0x1c]
or byte [ebp + esi - 1], al
not dl
and byte [ebp + esi - 1], dl
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, 4
jne 0x7f6834
mov eax, dword [esp + 0x20]
xor edx, edx
mov eax, dword [eax]
movzx eax, byte [eax]
movzx esi, byte [eax + 0xb4bd18]
mov eax, dword [esp + 0x10]
and esi, 0xffffff80
cmp dword [esp + 0x18], 1
mov eax, dword [eax]
sete dl
mov dword [esp + 4], edx
push eax
push edx
push esi
mov ebp, dword [esp + 0xc]
push ebp
push dword [esp + 0x24]
push eax
mov edi, dword [esp + 0x44]
push edi
push 0xbbbed0
push edi
push 0xbbbef0
mov ebx, dword [esp + 0x34]
push ebx
call fcn.00802190
add esp, 0x2c
push esi
push ebp
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push dword [eax]
push edi
push 0xbbbfd0
push 0xbbbff0
push ebx
call fcn.00802190
add esp, 0x20
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.0083b040
mov ecx, ebx
mov edx, edi
push dword [esp + 4]
call fcn.0083b080
add esp, 4
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0x24]
mov ecx, ebx
mov edx, esi
call fcn.007cbc20
mov ecx, ebx
mov edx, ebp
call fcn.00780810
mov edx, dword [esp]
mov ecx, ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00780810