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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x78], 0x1f161463
mov dword [esp + 0x7c], 0x5c1c1b01
mov dword [esp + 0x80], 0x181c127a
mov dword [esp + 0x84], 0x317514c
mov dword [esp + 0x88], 0x13111202
mov dword [esp + 0x8c], 0xb0a1209
mov dword [esp + 0x90], 0x324f054f
mov dword [esp + 0x94], 0x222b2f24
mov dword [esp + 0x98], 0x988a9632
mov dword [esp + 0x9c], 0x8984
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x27
ja 0x409b1a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx edx, byte [esp + ecx + 0x78]
lea ecx, [eax + edx]
add ecx, 0x686178c5
add eax, 0x686178c5
and eax, edx
add eax, eax
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 0x9d
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x78], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x28
jb 0x409ad0
mov dword [esp + 8], 0x8b6a6670
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x409b92
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0x4ade936d]
lea esi, [eax + 0x6d]
xor esi, edx
and edx, ecx
and esi, ecx
add eax, ecx
add eax, 0x4ade936d
lea ecx, [esi + edx*2]
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 5
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x409b50
mov dword [esp + 0x18], 0xdcda9699
mov dword [esp + 0x1c], 0xd8d88a82
mov dword [esp + 0x20], 0xa7b0aa89
mov dword [esp + 0x24], 0xa0afa0b3
mov dword [esp + 0x28], 0xf8afbbb4
mov dword [esp + 0x2c], 0xbe89c7c5
mov dword [esp + 0x30], 0xbdb7a5a0
mov dword [esp + 0x34], 0xbc90faa6
mov dword [esp + 0x38], 0xaea9a9a3
mov dword [esp + 0x3c], 0xaeb7a9b1
mov dword [esp + 0x40], 0x85c0dbb0
mov dword [esp + 0x44], 0xc88b9793
mov dword [esp + 0x48], 0x889c8a82
mov dword [esp + 0x4c], 0x8c82cdd7
mov dword [esp + 0x50], 0xd1cf9681
mov dword [esp + 0x54], 0x90989e94
mov dword [esp + 0x58], 0x9dd8c4d4
mov dword [esp + 0x5c], 0x919b9191
mov dword [esp + 0x60], 0x3c676e9d
mov word [esp + 0x64], 0x520
mov dword [esp + 0x6a], 0
mov dword [esp + 0x66], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x55
ja 0x409cad
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + ecx]
add eax, 0xb7
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0xbbf924b7
mov dword [esp], edx
mov eax, dword [esp]
mov ecx, eax
or ecx, 0xfe
and eax, 0xfe
add eax, ecx
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x56
jb 0x409c60
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esp + 0x18]
mov edx, edi
test cl, cl
je 0x409cdb
lea esi, [esp + 0x19]
mov edx, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x409cd0
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x409cfb
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x409cf0
mov byte [edx], 0
movzx eax, byte [esp + 8]
test al, al
je 0x409d1b
lea ecx, [esp + 9]
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409d10
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx eax, byte [esp + 0x78]
test al, al
mov dword [esp + 0x70], edi
je 0x409d4b
lea ecx, [esp + 0x79]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409d40
mov byte [edx], 0
mov ecx, ebx
shr ecx, 2
mov eax, esi
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
mov ecx, esi
lea esi, [edx + eax]
add eax, ecx
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebx, eax
mov edi, esi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [ebp + 0x14]
test bl, 1
je 0x409d8d
mov ecx, ebx
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x18], 0xf4f7dbd1
mov dword [esp + 0x1c], 0xd0d48280
mov dword [esp + 0x20], 0x80d78682
mov dword [esp + 0x24], 0x8a85898a
mov dword [esp + 0x28], 0x81828e8d
mov dword [esp + 0x2c], 0xf5fbde8d
mov word [esp + 0x30], 0xf3f9
mov byte [esp + 0x32], 8
mov dword [esp + 0x33], 0
mov dword [esp + 0x37], 0
mov word [esp + 0x3b], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x24
mov edi, dword [esp + 0x70]
ja 0x409e49
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov eax, dword [esp + 8]
movzx esi, byte [esp + eax + 0x18]
add ecx, 0x3da23edb
mov eax, ecx
and eax, esi
xor ecx, esi
lea ecx, [ecx + eax*2]
add eax, eax
mov esi, ecx
xor esi, eax
not eax
and eax, ecx
add eax, eax
sub eax, esi
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
add al, 3
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x25
jb 0x409e00
add edx, ebx
movzx eax, byte [esp + 0x18]
test al, al
je 0x409e6b
lea ecx, [esp + 0x19]
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409e60
mov byte [edx], 0
sub edx, edi
mov eax, dword [esp + 0x74]
add dword [eax + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10