Function at 0x7f69e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [ecx + 0xe4]
test edi, edi
je 0x7f6c44
mov ebp, dword [ecx]
mov ebx, edx
mov esi, ecx
call fcn.0083bb80
mov dword [esi + 0xf4], 0
cmp dword [edi + 0x38], 0
jle 0x7f6c44
cmp byte [ebp + 0xa5], 0
jne 0x7f6c25
mov ecx, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 4], edi
call fcn.007fc3c0
test ebx, ebx
je 0x7f6a45
mov eax, dword [ebx]
sub eax, dword [esi + 0xb4]
add eax, dword [ebx + 4]
mov dword [esi + 0xb8], eax
mov eax, fcn.007d8180
mov dword [esp + 0x14], esi
xor esi, esi
and eax, 1
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edi, dword [esi*4 + 0xb571e4]
mov ebp, dword [esi*4 + 0xb571f4]
mov dword [esp + 0x20], esi
xor ecx, fcn.007d8180
sete al
mov ecx, eax
xor ecx, 0x4080e29b
lea edx, [ecx + eax*2 + 0x840]
mov eax, 1
xor edx, dword [esi*4 + 0xb57204]
mov ecx, edx
and cl, 7
movzx ebx, cl
shl eax, cl
xor cl, 7
mov dword [esp], ebx
mov ebx, 1
shl ebx, cl
movzx ecx, byte [edi + ebp - 1]
mov esi, dword [esp]
bt ecx, esi
jb 0x7f6b41
mov dword [esp + 0xc], eax
mov al, byte [edi + ebp - 1]
mov ecx, eax
or cl, bl
lock cmpxchg byte [edi + ebp - 1], cl
jne 0x7f6ac4
mov ecx, dword [esp + 0xc]
movzx eax, al
test ebx, eax
je 0x7f6ae6
movzx eax, byte [edi + ebp - 1]
test ecx, eax
je 0x7f6adb
jmp 0x7f6b41
movzx eax, byte [edi + ebp - 1]
test ecx, eax
jne 0x7f6b3b
lea ecx, [ebp - 4]
shr ecx, 2
je 0x7f6b33
xor eax, eax
mov esi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], esi
mov ecx, esi
mov esi, dword [esi]
mov dword [esp], edx
xor esi, edx
mov dword [ecx], esi
mov ecx, eax
not esi
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
shr edx, cl
mov ecx, dword [esp + 0x1c]
or edx, dword [esp]
imul edx, esi
mov esi, dword [esp + 8]
add esi, 4
cmp eax, ecx
jne 0x7f6aff
mov eax, dword [esp + 0xc]
or byte [edi + ebp - 1], al
not bl
and byte [edi + ebp - 1], bl
mov esi, dword [esp + 0x20]
inc esi
cmp esi, 4
jne 0x7f6a58
mov esi, dword [esp + 0x14]
lea eax, [esi + 0xb4]
push eax
push 0xbbc0d0
mov edi, dword [esp + 0x18]
push edi
call fcn.0078df10
add esp, 0xc
mov dword [esp], eax
mov ecx, edi
mov ebp, eax
mov ebx, dword [esp + 4]
mov edx, dword [ebx + 0x48]
call fcn.0078dee0
mov ebx, dword [ebx]
mov ecx, dword [edi + 0x10]
mov edx, eax
mov dword [esp + 8], eax
shl edx, 4
push dword [esi + 0x58]
push ebp
push ebx
push ebx
push 0xbbc0f0
push dword [ecx + edx]
push 0xbbc110
push esi
call fcn.00802190
add esp, 0x20
mov ecx, esi
call fcn.007f7590
mov ebx, dword [esp + 8]
mov ecx, esi
mov ebp, eax
mov edx, ebx
call fcn.00802260
mov ecx, ebp
mov edx, 0x9e
call fcn.007f75b0
push dword [esp]
mov eax, dword [esp + 8]
push dword [eax]
push 0xbbc170
push edi
call fcn.0078df10
add esp, 0x10
mov ecx, ebp
mov edx, ebx
push eax
call fcn.00802290
add esp, 4
mov edx, dword [esp]
mov ecx, edi
call fcn.00780810
mov edi, dword [esi + 0x2c]
mov eax, dword [esp + 4]
mov ecx, ebp
inc edi
mov dword [esi + 0x2c], edi
mov edx, edi
push dword [eax]
call fcn.007f7880
add esp, 4
mov ecx, ebp
mov edx, 0xa3
push edi
push ebx
call fcn.007d10d0
add esp, 0x2c
jmp 0x7f6c47
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
add ecx, 8
push edi
call fcn.007cb740
add esp, 4
test eax, eax
jne 0x7f6c4c
mov dword [esi + 0xe4], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebp
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0078a090