Function at 0x409320
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf8
mov edx, dword [esp + 0x100]
mov eax, dword [esp + 0xfc]
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov word [esp + 0x2a], si
xor edi, edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov ebx, edx
lea ecx, [ecx]
mov ecx, dword [eax]
add dword [esp + ecx*4 + 0x4c], 1
lea ecx, [esp + ecx*4 + 0x4c]
add eax, 4
sub ebx, 1
jne 0x4093a0
cmp dword [esp + 0x4c], edx
jne 0x4093d2
mov eax, dword [esp + 0x120]
mov dword [eax], esi
mov dword [ebp], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf8
ret
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
mov ecx, 1
mov edi, edi
cmp dword [esp + ecx*4 + 0x4c], esi
jne 0x4093ee
add ecx, 1
cmp ecx, 0xf
jbe 0x4093e0
cmp eax, ecx
mov edx, ecx
mov dword [esp + 0x14], edx
jae 0x4093fe
mov dword [esp + 0x10], ecx
mov eax, ecx
mov ebx, 0xf
cmp dword [esp + ebx*4 + 0x4c], esi
jne 0x40940e
sub ebx, 1
jne 0x409403
cmp eax, ebx
mov dword [esp + 0x34], ebx
jbe 0x40941c
mov dword [esp + 0x10], ebx
mov eax, ebx
mov dword [ebp], eax
mov ebp, 1
shl ebp, cl
cmp ecx, ebx
jae 0x409443
lea ebx, [ebx]
sub ebp, dword [esp + ecx*4 + 0x4c]
js 0x409566
add ecx, 1
add ebp, ebp
cmp ecx, ebx
jb 0x409430
lea ecx, [ebx*4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + ecx + 0x4c]
sub ebp, ecx
mov dword [esp + 0x48], ebp
js 0x409566
add ecx, ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + ebp + 0x4c], ecx
xor ecx, ecx
sub ebx, 1
mov dword [esp + 0x90], esi
je 0x409493
xor ebp, ebp
jmp 0x409480
add ecx, dword [esp + ebp + 0x50]
add ebp, 4
sub ebx, 1
mov dword [esp + ebp + 0x90], ecx
jne 0x409480
mov ebp, dword [esp + 0x10c]
xor ebx, ebx
lea esp, [esp]
mov ecx, dword [ebp]
add ebp, 4
cmp ecx, esi
mov dword [esp + 0x24], ebp
je 0x4094d4
mov edx, dword [esp + ecx*4 + 0x8c]
mov ebp, dword [esp + 0x130]
lea ecx, [esp + ecx*4 + 0x8c]
mov dword [ebp + edx*4], ebx
mov ebp, dword [esp + 0x24]
add edx, 1
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
add ebx, 1
cmp ebx, dword [esp + 0x110]
jb 0x4094a0
mov ecx, dword [esp + 0x18]
mov ecx, dword [esp + ecx + 0x8c]
mov ebx, eax
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x130]
or ebp, 0xffffffff
neg ebx
cmp edx, dword [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0xcc], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], esi
jg 0x4097c1
lea ecx, [edx - 1]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + edx*4 + 0x4c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x4097a6
lea esp, [esp]
sub dword [esp + 0x20], 1
lea ecx, [ebx + eax]
cmp edx, ecx
jle 0x409685
mov edx, ebx
sub edx, eax
jmp 0x40957e
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0xf8
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
add edx, eax
add ebx, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x34]
add ecx, eax
mov eax, dword [esp + 0x10]
add ebp, 1
sub edx, ebx
cmp edx, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x44], ecx
jbe 0x4095a3
mov edx, eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
sub ecx, ebx
mov eax, 1
shl eax, cl
add esi, 1
cmp eax, esi
jbe 0x4095ec
mov ebp, dword [esp + 0x18]
or esi, 0xffffffff
sub esi, dword [esp + 0x20]
add eax, esi
cmp ecx, edx
jae 0x4095e8
add ecx, 1
cmp ecx, edx
jae 0x4095e8
mov esi, dword [ebp + 4]
add ebp, 4
add eax, eax
cmp eax, esi
jbe 0x4095e8
add ecx, 1
sub eax, esi
cmp ecx, edx
jb 0x4095d3
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x12c]
mov eax, dword [eax]
mov edx, 1
shl edx, cl
mov dword [esp + 0x38], edx
add edx, eax
cmp edx, 0x5a0
ja 0x409566
test ebp, ebp
mov esi, dword [esp + 0x128]
lea eax, [esi + eax*8]
mov esi, dword [esp + 0x12c]
mov dword [esi], edx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + ebp*4 + 0xcc], eax
je 0x40966e
mov edi, dword [esp + 0x1c]
mov dl, byte [esp + 0x10]
mov byte [esp + 0x28], cl
mov ecx, dword [esp + 0x40]
mov eax, esi
shr eax, cl
mov ecx, dword [esp + ebp*4 + 0xc8]
sub edi, ecx
mov byte [esp + 0x29], dl
mov edx, dword [esp + 0x28]
sar edi, 3
sub edi, eax
mov dword [ecx + eax*8], edx
mov dword [esp + ebp*4 + 0x8c], esi
mov dword [ecx + eax*8 + 4], edi
jmp 0x409677
mov ecx, dword [esp + 0x120]
mov dword [ecx], eax
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x14], ecx
jg 0x409576
mov dl, byte [esp + 0x14]
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 0x130]
sub dl, bl
mov byte [esp + 0x29], dl
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jb 0x4096af
mov byte [esp + 0x28], 0xc0
jmp 0x4096f9
mov eax, dword [ecx]
mov edx, dword [esp + 0x114]
cmp eax, edx
jae 0x4096d1
cmp eax, 0x100
sbb dl, dl
and dl, 0xa0
add dl, 0x60
mov byte [esp + 0x28], dl
mov edi, eax
jmp 0x4096f2
sub eax, edx
mov edx, dword [esp + 0x11c]
add eax, eax
add eax, eax
mov dl, byte [eax + edx]
add dl, 0x50
mov byte [esp + 0x28], dl
mov edx, dword [esp + 0x118]
mov edi, dword [eax + edx]
add ecx, 4
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, ebx
shr eax, cl
cmp eax, dword [esp + 0x38]
jae 0x40973e
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + eax*8]
lea esp, [esp]
mov esi, dword [esp + 0x28]
mov dword [ecx], esi
lea esi, [edx*8]
mov dword [ecx + 4], edi
add eax, edx
add ecx, esi
cmp eax, dword [esp + 0x38]
jb 0x409720
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
mov eax, 1
shl eax, cl
test esi, eax
je 0x409758
lea ecx, [ecx]
xor esi, eax
shr eax, 1
test esi, eax
jne 0x409750
mov edx, 1
mov ecx, ebx
shl edx, cl
xor esi, eax
mov dword [esp + 0x30], esi
sub edx, 1
and edx, esi
cmp edx, dword [esp + ebp*4 + 0x8c]
je 0x409793
sub ebx, dword [esp + 0x10]
mov eax, 1
mov ecx, ebx
shl eax, cl
sub ebp, 1
sub eax, 1
and eax, esi
cmp eax, dword [esp + ebp*4 + 0x8c]
jne 0x409775
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jne 0x409550
add dword [esp + 0x18], 4
add dword [esp + 0x3c], 1
add edx, 1
cmp edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
jle 0x409537
cmp dword [esp + 0x48], 0
je 0x4093c5
cmp dword [esp + 0x34], 1
je 0x4093c5
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0xf8
ret