Function at 0x409cb0
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, 0xfffffff0
sub esp, 0x100
cmp dword [ecx + 0x20], 0
je 0x40a368
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409d05
cmp al, 0x64
jb 0x409d14
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x43a7f8]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x409d1d
lea eax, [esp + 0xe]
mov dword [esp + 8], eax
mov byte [esp + 0xe], 0x30
jmp 0x409d49
mov ecx, 3
cmp al, 9
ja 0x409d34
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 8], edx
mov byte [esp + ecx + 0xb], al
jmp 0x409d49
movzx eax, word [eax + eax + 0x43a7f8]
lea ecx, [esp + 0xd]
mov dword [esp + 8], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406b00
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xdb]
push eax
call fcn.00431490
add esp, 4
mov dword [esp + 0xd4], edi
lea eax, [edi + 0x800]
push eax
call fcn.00408c10
add esp, 4
mov edi, eax
mov dword [esp + 0x34], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x5f53205e
mov byte [esp + 0x34], 0xba
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1c
ja 0x409e1d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x30]
add eax, 0x677c5367
mov edx, eax
and edx, ecx
mov ebx, eax
xor ebx, ecx
or eax, ecx
xor eax, ebx
lea ecx, [ebx + edx*2]
add eax, edx
sub ecx, eax
add cl, 0x2f
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x30], cl
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1d
jb 0x409de0
lea ebx, [esp + 0x30]
mov ecx, esi
lea eax, [esp + 0xdb]
push eax
push ebx
push edi
call fcn.004094e0
mov word [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x833c3a36
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1d
ja 0x409ec8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x30]
lea eax, [ecx + edx]
add eax, 0x8313b56b
add ecx, 0x8313b56b
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0x13
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e
jb 0x409e90
mov ecx, esi
push dword [esp + 8]
push ebx
mov dword [esp + 0x10], edi
push edi
call fcn.004094e0
mov eax, dword [str.LnGw8n__d3f]
mov dword [esp + 0x30], 0xa33c3a32
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xf
ja 0x409f50
nop
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + 0xda3573b]
lea edi, [ecx + 0x3b]
or ebx, edi
and edi, edx
and ebx, edx
add ebx, edi
add ecx, edx
add ecx, 0xda3573b
sub ecx, ebx
add cl, 0x63
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x10
jb 0x409f10
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push dword [esp + 0x10]
call fcn.004094e0
mov dword [esp + 0x30], 0xcfc6ce3b
mov dword [esp + 0x34], 0x42cbc2d3
mov dword [esp + 0x38], 0xb0b5b243
mov byte [esp + 0x3c], 0xca
mov dword [esp + 0x3d], 0
mov byte [esp + 0x41], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x11
ja 0x409fcf
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x39]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add al, 0xaa
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x12
jb 0x409fa0
mov word [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x73c6cacd
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x11
ja 0x40a046
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x1eb9318e]
mov edi, ecx
not edi
or edi, edx
and edx, ecx
add edx, edi
sub eax, edx
add al, 0xab
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x12
jb 0x40a010
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
mov edi, dword [esp + 0x10]
push edi
call fcn.004094e0
mov dword [esp + 0x34], 0
mov word [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0xc8f0f2cc
mov byte [esp + 0x34], 0x62
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1d
ja 0x40a0e3
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x30]
lea eax, [ecx + edx]
add eax, 0x11
add ecx, 0x11
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0x89
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e
jb 0x40a0b0
mov ecx, esi
push dword [esp + 0xd4]
push dword [esp + 0xd4]
push ebx
push edi
call fcn.004097e0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x5bed591b
mov dword [esp + 0x34], 0x57da55e2
mov dword [esp + 0x38], 0x53e451ed
mov dword [esp + 0x3c], 0xafdbad20
mov dword [esp + 0x40], 0xab23a904
mov dword [esp + 0x44], 0xa71ba514
mov dword [esp + 0x48], 0xa3c2a1ea
mov dword [esp + 0x4c], 0xbf33bd09
mov dword [esp + 0x50], 0xbb36b90c
mov dword [esp + 0x54], 0xb706b50d
mov dword [esp + 0x58], 0xb300b111
mov dword [esp + 0x5c], 0x8ff98d00
mov dword [esp + 0x60], 0x8b3d8936
mov dword [esp + 0x64], 0x87338536
mov dword [esp + 0x68], 0x833e81f5
mov dword [esp + 0x6c], 0x9f129d3d
mov dword [esp + 0x70], 0x9bd19939
mov dword [esp + 0x74], 0x973495f4
mov dword [esp + 0x78], 0x931f9127
mov dword [esp + 0x7c], 0xef52ed5a
mov dword [esp + 0x80], 0xeb58e949
mov dword [esp + 0x84], 0xe7a3e56d
mov dword [esp + 0x88], 0xe35fe142
mov dword [esp + 0x8c], 0xffb3fdb4
mov dword [esp + 0x90], 0xfb47f944
mov dword [esp + 0x94], 0xf74ff5b9
mov dword [esp + 0x98], 0xf34ef140
mov dword [esp + 0x9c], 0xcf6dcd7b
mov dword [esp + 0xa0], 0xcb77c971
mov dword [esp + 0xa4], 0xc774c576
mov dword [esp + 0xa8], 0xc3b3c17d
mov dword [esp + 0xac], 0xdfc4ddc9
mov word [esp + 0xb0], 0xd9d8
mov dword [esp + 0xbd], 0
mov dword [esp + 0xba], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
cmp ecx, 0x90
ja 0x40a2b3
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
movzx edx, byte [esp + edx + 0x30]
lea edi, [ecx + 0x674bb174]
lea ebx, [ecx + 0x74]
or edi, ebx
and edi, edx
and ebx, edx
add ebx, edi
add ecx, edx
add ecx, 0x674bb174
sub ecx, ebx
add cl, 0xd4
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x91
jb 0x40a270
mov dword [esp + 0x10], 0xf3538ddf
mov dword [esp + 0x14], 0xf75ff160
mov word [esp + 0x18], 0xf5f4
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov dword [esp + 0x29], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x1c
ja 0x40a337
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
add cl, 0x3e
xor cl, byte [esp + edx + 0x10]
add cl, 0x4e
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x1d
jb 0x40a310
push 0x493e0
push eax
mov edi, dword [esp + 0x10]
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040ebe0
add esp, 0x1c
push edi
call fcn.00408c20
add esp, 4
mov dword [esi + 0x60], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret