Function at 0x7d5a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [0xbcbae0]
xor eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], 0
mov ebx, dword [ecx]
cmp word [ecx + 0xc4], 0
jle 0x7d5c5d
mov eax, fcn.00798140
mov edx, 3
movzx ecx, byte [0xbb1f8b]
sub edx, eax
mov eax, edx
xor eax, fcn.00798140
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7d5c4a
mov al, byte [0xbb1f8b]
mov ecx, edx
mov ah, 1
xor ecx, fcn.00798140
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1f8b], ah
jne 0x7d5a6b
mov edx, fcn.00798140
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.00798140
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d5ad4
mov eax, ecx
movzx edx, byte [0xbb1f8b]
xor eax, fcn.00798140
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7d5ab4
jmp 0x7d5c4a
xor ecx, fcn.00798140
movzx ecx, byte [0xbb1f8b]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7d5c25
mov eax, fcn.00798140
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [0xbb1f60]
xor edx, fcn.00798140
sete cl
or ecx, 0x943df11e
add ecx, 0xd40
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb1f60], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb1f64]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1f64], eax
or esi, edx
not eax
mov edx, dword [0xbb1f68]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1f68], edx
or esi, eax
not edx
mov eax, dword [0xbb1f6c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb1f6c], eax
or esi, edx
not eax
mov edx, dword [0xbb1f70]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb1f70], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1f74]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb1f74], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1f78]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb1f78], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1f7c]
mov esi, edx
shl esi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb1f7c], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1f80]
mov esi, eax
shl esi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb1f80], edx
or eax, esi
not edx
mov esi, dword [ebp + 0x10]
imul edx, eax
xor dword [0xbb1f84], edx
mov dl, 1
shl dl, cl
or byte [0xbb1f8b], dl
mov eax, fcn.00798140
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.00798140
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb1f8b], al
push 0xbb1f60
push edi
call fcn.00782570
add esp, 8
jmp 0x7d5eb1
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov ecx, edi
push dword [ebp + 0x1c]
push 0
push 1
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.007cc8a0
add esp, 0x14
mov eax, dword [edi + 0xe4]
test eax, eax
je 0x7d5eb1
cmp dword [edi + 0x24], 0
jne 0x7d5eb1
mov edx, fcn.00834670
mov esi, fcn.00834670
mov dword [esp], eax
or edx, 2
xor esi, 2
movzx ecx, byte [0xbb1f97]
mov eax, edx
add eax, esi
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7d5db2
mov al, byte [0xbb1f97]
mov ecx, edx
mov ah, 1
add ecx, esi
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1f97], ah
jne 0x7d5cc7
mov ecx, fcn.00834670
mov edx, fcn.00834670
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete ah
or ah, 2
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x7d5d29
mov eax, ecx
movzx esi, byte [0xbb1f97]
add eax, edx
sete al
or al, 2
movzx eax, al
bt esi, eax
jae 0x7d5d0c
jmp 0x7d5db2
add ecx, edx
movzx ecx, byte [0xbb1f97]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7d5d8d
mov eax, fcn.00834670
mov edx, fcn.00834670
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb1f8c]
sete cl
or ecx, 0xf96f95ea
add ecx, 0x408
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb1f8c], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb1f90], edx
mov dl, 1
shl dl, cl
or byte [0xbb1f97], dl
mov eax, fcn.00834670
mov ecx, fcn.00834670
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb1f97], al
mov edx, dword [ebp + 8]
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 0xc]
call fcn.007f4ea0
add esp, 8
mov eax, dword [esp]
mov ecx, ebx
mov edx, dword [eax + 0x48]
call fcn.007825f0
lea esi, [esp + 0x10]
mov edx, edi
mov ecx, esi
push dword [esp + 0xc]
push 0xbb1f8c
push eax
call fcn.00804340
add esp, 0xc
mov ecx, esi
mov esi, dword [ebp + 0x14]
mov edx, esi
call fcn.00804a80
test eax, eax
je 0x7d5e06
mov esi, dword [ebp + 0x10]
jmp 0x7d5eb1
or byte [esi + 6], 0x20
cmp byte [edi + 0xc8], 1
jbe 0x7d5e1f
mov eax, esi
mov dword [esp + 8], 0
jmp 0x7d5e2d
mov ecx, ebx
mov edx, esi
push 1
call fcn.007f3ec0
add esp, 4
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp]
mov dword [ecx + 0xc], eax
mov ecx, ebx
mov edx, esi
push 1
call fcn.007f4030
add esp, 4
mov ecx, dword [esp]
mov dword [ecx + 0x18], eax
cmp byte [ebx + 0x51], 0
jne 0x7d5eb1
mov eax, dword [edi + 0xbc]
mov ecx, dword [edi + 0xc0]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
cmp byte [eax], 0x3b
je 0x7d5e6f
add eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x2c], 0
mov ecx, dword [ecx]
sub eax, ecx
movzx edx, byte [ecx + eax - 1]
dec eax
test byte [edx + 0xb436b8], 1
jne 0x7d5e7f
add ecx, eax
lea eax, [esp + 0x28]
xor edx, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 1
mov ecx, edi
push 0
push 0
push eax
call fcn.007cdd30
add esp, 0xc
mov edx, dword [esp + 8]
mov ecx, ebx
call fcn.007c0190
cmp byte [edi + 0xc8], 2
jb 0x7d5ece
mov ecx, edi
mov edx, esi
call fcn.00803b60
mov ecx, ebx
mov edx, esi
call fcn.007c00f0
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00980459
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret