Function at 0x402e32
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x90]
mov edi, ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.00403073
cmp dword [esp + 0x6c], 8
lea edx, [esp + 0x58]
push dword [esp + 0x68]
cmovae edx, dword [esp + 0x5c]
call fcn.00402daa
xor ebx, ebx
lea ecx, [esp + 0x58]
push ebx
push 1
mov esi, eax
call fcn.00401720
xor edx, edx
mov ecx, 0x98967f
mov eax, esi
div ecx
inc edx
mov dword [0x47e784], edx
call fcn.00402d77
cmp dword [esp + 0x8c], 8
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x88]
cmovae ecx, dword [esp + 0x78]
push 0xf
pop edx
push dword [esp + 0x78]
lea eax, [ecx + eax*2]
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x3c], ebx
cmovae ecx, dword [esp + 0x7c]
push eax
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x34], bl
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00403365
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
sub ecx, eax
lea eax, [esp + 0x58]
push ecx
push ecx
push eax
push ebx
push ecx
lea ecx, [esp + 0x3c]
call fcn.00403164
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.004015bf
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0x58]
cmovae eax, dword [esp + 0x28]
push eax
call fcn.0040142c
lea edx, [esp + 0x58]
lea ecx, [esp + 0x40]
call fcn.00401314
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.004015bf
push dword [esp + 0x50]
call fcn.0040b7ff
pop ecx
mov ebp, eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x402f71
cmp dword [esp + 0x54], 0x10
lea esi, [esp + 0x40]
cmovae esi, dword [esp + 0x40]
call fcn.00402d77
xor al, byte [esi + ebx]
mov byte [ebx + ebp], al
inc ebx
mov ecx, dword [esp + 0x50]
cmp ebx, ecx
jb 0x402f4f
push dword [esp + 0x78]
lea eax, [ecx + ebp]
mov dword [esp + 0x28], 0xf
push eax
xor ebx, ebx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004030c3
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea ecx, [esp + 0x10]
mov word [edi], ax
lea edx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x20]
cmovae ecx, dword [esp + 0x10]
add eax, ecx
cmp dword [esp + 0x24], 0x10
cmovae edx, dword [esp + 0x10]
cmp dword [edi + 0x14], 8
jb 0x402fd0
mov esi, dword [edi]
jmp 0x402fd2
mov esi, edi
cmp dword [edi + 0x14], 8
lea ebx, [esi + ebx*2]
jb 0x402fdf
mov esi, dword [edi]
jmp 0x402fe1
mov esi, edi
push eax
push edx
lea ecx, [esp + 0x60]
call fcn.0040333a
cmp dword [edi + 0x14], 8
jb 0x402ff6
mov eax, dword [edi]
jmp 0x402ff8
mov eax, edi
test ebx, ebx
je 0x403000
sub ebx, esi
sar ebx, 1
test esi, esi
je 0x403008
sub esi, eax
sar esi, 1
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push ebx
push esi
call fcn.004020fa
xor ebx, ebx
lea ecx, [esp + 0x58]
xor ebp, ebp
push ebx
inc ebp
push ebp
call fcn.00401720
push ebx
push ebp
lea ecx, [esp + 0x18]
call fcn.004015bf
push ebx
push ebp
lea ecx, [esp + 0x48]
call fcn.004015bf
push ebx
push ebp
lea ecx, [esp + 0x30]
call fcn.004015bf
push ebx
push ebp
lea ecx, [esp + 0x80]
call fcn.00401720
push ebx
push ebp
lea ecx, [esp + 0x98]
call fcn.00401720
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x30