Function at 0x402dde
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.00401613
cmp dword [esp + 0x6c], 8
lea edx, [esp + 0x58]
push dword [esp + 0x68]
cmovae edx, dword [esp + 0x5c]
call fcn.00402d56
xor ebx, ebx
lea ecx, [esp + 0x58]
push ebx
push 1
mov esi, eax
call fcn.0040199b
xor edx, edx
mov ecx, 0x98967f
mov eax, esi
div ecx
inc edx
mov dword [0x44bea8], edx
call fcn.00402d23
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.004035cc
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.004030eb
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.0040176d
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0x58]
cmovae eax, dword [esp + 0x28]
push eax
call fcn.00401593
lea edx, [esp + 0x58]
lea ecx, [esp + 0x40]
call fcn.0040147b
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.0040176d
push dword [esp + 0x50]
call fcn.0040d548
pop ecx
mov ebp, eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x402f1d
cmp dword [esp + 0x54], 0x10
lea esi, [esp + 0x40]
cmovae esi, dword [esp + 0x40]
call fcn.00402d23
xor al, byte [esi + ebx]
mov byte [ebx + ebp], al
inc ebx
mov ecx, dword [esp + 0x50]
cmp ebx, ecx
jb 0x402efb
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.0040304a
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 0x402f7c
mov esi, dword [edi]
jmp 0x402f7e
mov esi, edi
cmp dword [edi + 0x14], 8
lea ebx, [esi + ebx*2]
jb 0x402f8b
mov esi, dword [edi]
jmp 0x402f8d
mov esi, edi
push eax
push edx
lea ecx, [esp + 0x60]
call fcn.004035a1
cmp dword [edi + 0x14], 8
jb 0x402fa2
mov eax, dword [edi]
jmp 0x402fa4
mov eax, edi
test ebx, ebx
je 0x402fac
sub ebx, esi
sar ebx, 1
test esi, esi
je 0x402fb4
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.004032c1
xor ebx, ebx
lea ecx, [esp + 0x58]
xor ebp, ebp
push ebx
inc ebp
push ebp
call fcn.0040199b
push ebx
push ebp
lea ecx, [esp + 0x18]
call fcn.0040176d
push ebx
push ebp
lea ecx, [esp + 0x48]
call fcn.0040176d
push ebx
push ebp
lea ecx, [esp + 0x30]
call fcn.0040176d
push ebx
push ebp
lea ecx, [esp + 0x80]
call fcn.0040199b
push ebx
push ebp
lea ecx, [esp + 0x98]
call fcn.0040199b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x30