Function at 0x7eb160
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 0x7eb3c4
mov ebp, dword [ecx]
mov ebx, edx
mov esi, ecx
call fcn.00830320
mov dword [esi + 0xf4], 0
cmp dword [edi + 0x38], 0
jle 0x7eb3c4
cmp byte [ebp + 0xa5], 0
jne 0x7eb3a5
mov ecx, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 4], edi
call fcn.007f0b40
test ebx, ebx
je 0x7eb1c5
mov eax, dword [ebx]
sub eax, dword [esi + 0xb4]
add eax, dword [ebx + 4]
mov dword [esi + 0xb8], eax
mov eax, fcn.007cc8a0
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 + 0xb4eb84]
mov ebp, dword [esi*4 + 0xb4eb94]
mov dword [esp + 0x20], esi
xor ecx, fcn.007cc8a0
sete al
mov ecx, eax
xor ecx, 0x4080e29b
lea edx, [ecx + eax*2 + 0x840]
mov eax, 1
xor edx, dword [esi*4 + 0xb4eba4]
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 0x7eb2c1
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 0x7eb244
mov ecx, dword [esp + 0xc]
movzx eax, al
test ebx, eax
je 0x7eb266
movzx eax, byte [edi + ebp - 1]
test ecx, eax
je 0x7eb25b
jmp 0x7eb2c1
movzx eax, byte [edi + ebp - 1]
test ecx, eax
jne 0x7eb2bb
lea ecx, [ebp - 4]
shr ecx, 2
je 0x7eb2b3
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 0x7eb27f
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 0x7eb1d8
mov esi, dword [esp + 0x14]
lea eax, [esi + 0xb4]
push eax
push 0xbb4770
mov edi, dword [esp + 0x18]
push edi
call fcn.00782620
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.007825f0
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 0xbb4790
push dword [ecx + edx]
push 0xbb47b0
push esi
call fcn.007f6930
add esp, 0x20
mov ecx, esi
call fcn.007ebd10
mov ebx, dword [esp + 8]
mov ecx, esi
mov ebp, eax
mov edx, ebx
call fcn.007f6a00
mov ecx, ebp
mov edx, 0x9e
call fcn.007ebd30
push dword [esp]
mov eax, dword [esp + 8]
push dword [eax]
push 0xbb4810
push edi
call fcn.00782620
add esp, 0x10
mov ecx, ebp
mov edx, ebx
push eax
call fcn.007f6a30
add esp, 4
mov edx, dword [esp]
mov ecx, edi
call fcn.00774f10
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.007ec000
add esp, 4
mov ecx, ebp
mov edx, 0xa3
push edi
push ebx
call fcn.007c57e0
add esp, 0x2c
jmp 0x7eb3c7
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
add ecx, 8
push edi
call fcn.007bfe40
add esp, 4
test eax, eax
jne 0x7eb3cc
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.0077e7a0