Function at 0x40a220
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 + 0x6c], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x70], 0xdfd6d403
mov dword [esp + 0x74], 0x1cdcdbe1
mov dword [esp + 0x78], 0x18dcd2fa
mov dword [esp + 0x7c], 0x2317d1ec
mov dword [esp + 0x80], 0x13111222
mov dword [esp + 0x84], 0x2b2a1229
mov dword [esp + 0x88], 0x32ef25ef
mov dword [esp + 0x8c], 0x20b0f04
mov dword [esp + 0x90], 0xd8aad632
mov word [esp + 0x94], 0xa9a4
mov dword [esp + 0x96], 0
mov dword [esp + 0x9a], 0
mov byte [esp + 0x9e], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x2e
ja 0x40a310
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x70]
lea edx, [eax + ecx]
add edx, 0x7abc3375
add eax, 0x7abc3375
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
add al, 0xcd
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x70], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x2f
jb 0x40a2d0
mov dword [esp + 8], 0x33020668
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40a376
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 + 0x60cf4329]
add eax, 0x29
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
add al, 0xe1
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40a340
mov dword [esp + 0x18], 0x16106c6d
mov dword [esp + 0x1c], 0x1212607c
mov dword [esp + 0x20], 0xf3a307d
mov dword [esp + 0x24], 0xa370e33
mov dword [esp + 0x28], 0x72073332
mov dword [esp + 0x2c], 0x38655f59
mov dword [esp + 0x30], 0x53f0d06
mov dword [esp + 0x34], 0x65a4008
mov dword [esp + 0x38], 0xd0103
mov dword [esp + 0x3c], 0x80f010d
mov dword [esp + 0x40], 0x2d6a4316
mov dword [esp + 0x44], 0x52131f13
mov dword [esp + 0x48], 0x22162024
mov dword [esp + 0x4c], 0x2618654f
mov dword [esp + 0x50], 0x99b7dce5
mov dword [esp + 0x54], 0xdae2e4da
mov dword [esp + 0x58], 0xd592ba92
mov dword [esp + 0x5c], 0xe9d3e9ed
mov dword [esp + 0x60], 0xa6cff4c9
mov dword [esp + 0x64], 0x6d8e
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x4f
ja 0x40a475
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 + 0x48]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x18f8b348
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, eax
xor ecx, 7
and eax, 7
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x50
jb 0x40a430
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esp + 0x18]
mov edx, edi
test cl, cl
je 0x40a49b
lea esi, [esp + 0x19]
mov edx, edi
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40a490
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40a4bb
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 0x40a4b0
mov byte [edx], 0
movzx eax, byte [esp + 8]
test al, al
je 0x40a4db
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 0x40a4d0
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx eax, byte [esp + 0x70]
test al, al
mov dword [esp + 0x68], edi
je 0x40a50b
lea ecx, [esp + 0x71]
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 0x40a500
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 0x40a54d
mov ecx, ebx
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x18], 0x5e5f6361
mov dword [esp + 0x1c], 0x424e1416
mov dword [esp + 0x20], 0x124f1010
mov dword [esp + 0x24], 0x180d1d08
mov dword [esp + 0x28], 0xf5f41815
mov dword [esp + 0x2c], 0x898bb0e5
mov word [esp + 0x30], 0x8b89
mov byte [esp + 0x32], 0x8a
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 + 0x68]
ja 0x40a619
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx esi, byte [esp + ecx + 0x18]
lea ecx, [eax + esi]
add ecx, 0xe66f6cee
add eax, 0xee
and eax, esi
add eax, eax
mov esi, ecx
not esi
and esi, eax
not eax
and eax, ecx
sub eax, esi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
add al, 0x7e
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x18], al
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp eax, 0x25
jb 0x40a5c0
add edx, ebx
movzx eax, byte [esp + 0x18]
test al, al
je 0x40a63b
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 0x40a630
mov byte [edx], 0
sub edx, edi
mov eax, dword [esp + 0x6c]
add dword [eax + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10