Function at 0x7eac90
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.00800830
add esp, 4
test eax, eax
jne 0x7eacc9
xor ebp, ebp
jmp 0x7eb138
mov ecx, edi
mov edx, eax
mov dword [esp + 0x20], ebp
mov ebp, eax
call fcn.0082f410
test eax, eax
je 0x7eace3
xor ebp, ebp
jmp 0x7eb138
mov ecx, edi
mov edx, ebp
call fcn.0082fdf0
test eax, eax
je 0x7eacf7
xor ebp, ebp
jmp 0x7eb138
mov edx, dword [ebp + 0x48]
mov ecx, ebx
call fcn.007825f0
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.007f4a50
add esp, 0xc
test eax, eax
je 0x7ead34
xor ebp, ebp
jmp 0x7eb138
mov dword [esp + 0x10], ebp
mov ecx, ebx
mov edx, dword [esp + 4]
call fcn.007d8f60
test eax, eax
mov ebp, 0
je 0x7eb138
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 0x7ead6d
xor esi, esi
jmp 0x7ead89
mov edi, dword [eax + 4]
xor esi, esi
lea eax, [esi + esi*4]
mov edx, ebp
mov ecx, dword [edi + eax*4]
call fcn.00777e20
test eax, eax
je 0x7ead89
inc esi
cmp esi, dword [esp]
jl 0x7ead72
cmp esi, dword [esp]
jne 0x7eaf66
mov edx, fcn.008174f0
xor eax, eax
movzx esi, byte [0xbb456b]
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 0x7eaf4b
mov al, byte [0xbb456b]
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 [0xbb456b], ah
jne 0x7eadcc
mov ecx, fcn.008174f0
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 0x7eae3f
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 [0xbb456b]
bt edx, eax
jae 0x7eae1e
jmp 0x7eaf4b
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb456b]
mov ebx, esi
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7eaf1f
mov eax, fcn.008174f0
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 [0xbb4550]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4550], eax
not eax
imul edx, eax
mov eax, dword [0xbb4554]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4554], eax
or esi, edx
not eax
mov edx, dword [0xbb4558]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4558], edx
or esi, eax
not edx
mov eax, dword [0xbb455c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb455c], eax
or esi, edx
not eax
mov edx, dword [0xbb4560]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb4560], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb4564], edx
mov dl, 1
shl dl, cl
or byte [0xbb456b], dl
mov eax, fcn.008174f0
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 [0xbb456b], al
mov esi, dword [esp + 8]
push ebp
push 0xbb4550
push edi
call fcn.00782570
add esp, 0xc
mov dword [esp], 0
jmp 0x7eb138
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.007f0b40
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.007d8f60
mov dword [esp], eax
xor ecx, ecx
test eax, eax
mov esi, dword [esp + 8]
jne 0x7eaf99
mov dword [esp], 0
jmp 0x7eb138
mov edx, fcn.007f31f0
mov eax, fcn.007f31f0
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 + 0xb4eb54]
mov esi, dword [ecx*4 + 0xb4eb64]
mov dword [esp + 0x38], ecx
mov eax, 1
mov edx, 1
sete bl
xor ebx, 0xe230d08f
or ebx, 0xc20
xor ebx, dword [ecx*4 + 0xb4eb74]
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 0x7eb092
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 0x7eb012
mov ecx, dword [esp + 0x1c]
movzx eax, al
test edx, eax
je 0x7eb034
movzx eax, byte [ebp + esi - 1]
test ecx, eax
je 0x7eb029
jmp 0x7eb092
movzx eax, byte [ebp + esi - 1]
test ecx, eax
jne 0x7eb08c
lea ecx, [esi - 4]
shr ecx, 2
je 0x7eb084
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 0x7eb04d
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 0x7eafb4
mov eax, dword [esp + 0x20]
xor edx, edx
mov eax, dword [eax]
movzx eax, byte [eax]
movzx esi, byte [eax + 0xb436b8]
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 0xbb4570
push edi
push 0xbb4590
mov ebx, dword [esp + 0x34]
push ebx
call fcn.007f6930
add esp, 0x2c
push esi
push ebp
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push dword [eax]
push edi
push 0xbb4670
push 0xbb4690
push ebx
call fcn.007f6930
add esp, 0x20
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.0082f7e0
mov ecx, ebx
mov edx, edi
push dword [esp + 4]
call fcn.0082f820
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.007c0320
mov ecx, ebx
mov edx, ebp
call fcn.00774f10
mov edx, dword [esp]
mov ecx, ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00774f10