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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x98
mov edi, dword [esp + 0xac]
mov dword [esp + 0x68], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x6c], 0xccd9d926
mov dword [esp + 0x70], 0x1cfc4dc
mov dword [esp + 0x74], 0xd5cff729
mov dword [esp + 0x78], 0xc0d2123b
mov dword [esp + 0x7c], 0xf0d4d7c1
mov dword [esp + 0x80], 0xf8f5eff4
mov dword [esp + 0x84], 0xff32c632
mov dword [esp + 0x88], 0xe7e6f8e3
mov dword [esp + 0x8c], 0x455d5bf1
mov dword [esp + 0x90], 0x5a43
mov byte [esp + 0x94], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x28
ja 0x40a9de
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x6c]
add eax, 0x478af5cd
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x58
mov ecx, dword [esp]
mov byte [esp + ecx + 0x6c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x29
jb 0x40a9b0
mov dword [esp], 0xede0e48a
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x40aa31
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
add eax, 0x8a1202d9
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xcf
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x40aa00
mov dword [esp + 0x10], 0xa2a06c6f
mov dword [esp + 0x14], 0xaea2505c
mov dword [esp + 0x18], 0xa99aa05f
mov dword [esp + 0x1c], 0xd6a5aa9d
mov dword [esp + 0x20], 0x26d5e1e2
mov dword [esp + 0x24], 0xe8337d7b
mov dword [esp + 0x28], 0xd3ddefd6
mov dword [esp + 0x2c], 0xca3a10e8
mov dword [esp + 0x30], 0xf0f3f3f5
mov dword [esp + 0x34], 0xf8cdf3cf
mov dword [esp + 0x38], 0xcb0a31c6
mov dword [esp + 0x3c], 0x3ec1fdfd
mov dword [esp + 0x40], 0xf6c6f0f4
mov dword [esp + 0x44], 0xfaf83709
mov dword [esp + 0x48], 0x3f05fcf7
mov dword [esp + 0x4c], 0xe6f2f4fa
mov dword [esp + 0x50], 0xe3221e22
mov dword [esp + 0x54], 0xe7e1ebef
mov dword [esp + 0x58], 0x12ede4eb
mov word [esp + 0x5c], 0x4f2e
mov word [esp + 0x62], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x53
ja 0x40ab23
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0x8e7b6d31
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xcf
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x54
jb 0x40aaf0
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x10]
mov edx, edi
test cl, cl
je 0x40ab4b
lea esi, [esp + 0x11]
mov edx, edi
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40ab40
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40ab6b
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 0x40ab60
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40ab8b
lea ecx, [esp + 1]
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40ab80
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb4]
mov byte [edx], 0
movzx eax, byte [esp + 0x6c]
test al, al
mov dword [esp + 0x64], edi
je 0x40abbb
lea ecx, [esp + 0x6d]
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40abb0
mov byte [edx], 0
mov ecx, ebx
shr ecx, 2
mov eax, ebp
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
lea esi, [edx + eax]
add eax, ebp
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebp, eax
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test bl, 1
je 0x40abf8
mov ecx, ebx
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x10], 0xc9c6b8a4
mov dword [esp + 0x14], 0xc5c7131f
mov dword [esp + 0x18], 0x2dc61715
mov dword [esp + 0x1c], 0x23302a35
mov dword [esp + 0x20], 0x3e312f28
mov dword [esp + 0x24], 0x829aff20
mov word [esp + 0x28], 0x809c
mov byte [esp + 0x2a], 0x8b
mov word [esp + 0x2b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1c
mov esi, dword [esp + 0x64]
ja 0x40ac7e
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0x22ffb315
xor eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
add al, 0x5c
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x1d
jb 0x40ac50
add edx, ebx
movzx eax, byte [esp + 0x10]
test al, al
je 0x40ac9b
lea ecx, [esp + 0x11]
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40ac90
mov byte [edx], 0
sub edx, esi
mov eax, dword [esp + 0x68]
add dword [eax + 0x60], edx
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret 0x10