Function at 0x409a50
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 0x40a190
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409aa5
cmp al, 0x64
jb 0x409ab4
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 + 0x4397f8]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x409abd
lea eax, [esp + 0xe]
mov dword [esp + 8], eax
mov byte [esp + 0xe], 0x30
jmp 0x409aff
mov ecx, 3
cmp al, 9
ja 0x409ad4
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 0x409aff
mov ecx, eax
and ecx, 0x7d
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
xor edx, 2
imul edx, ecx
movzx eax, word [edx + eax + 0x4397f8]
lea ecx, [esp + 0xd]
mov dword [esp + 8], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406710
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xd0], eax
lea ebx, [esp + 0xdb]
push ebx
call fcn.0042ffd0
add esp, 4
mov dword [esp + 0xd4], edi
lea eax, [edi + 0x800]
push eax
call fcn.00431ad0
add esp, 4
mov edi, eax
mov dword [esp + 0x34], 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], 0xd7cbc6c8
mov byte [esp + 0x34], 0x34
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1b
ja 0x409be6
nop
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, 0x124e5278
add ecx, 0x124e5278
and ecx, edx
add ecx, ecx
sub eax, ecx
mov ecx, eax
xor ecx, 0xb7
and eax, 0x37
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1c
jb 0x409ba0
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409290
mov dword [esp + 0x47], 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], 0x33a8a2a6
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1a
ja 0x409c80
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x30]
lea eax, [ecx + 0x3dabefa9]
add ecx, 0xa9
and ecx, edx
or eax, edx
sub eax, ecx
mov ecx, eax
or ecx, 0x60
and eax, 0x60
add eax, ecx
inc al
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1b
jb 0x409c40
mov ecx, esi
push dword [esp + 8]
push ebx
mov dword [esp + 0x10], edi
push edi
call fcn.00409290
mov eax, dword [str.LnGw8n__vlad]
mov dword [esp + 0x30], 0x6306080c
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 0x409d0a
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + 0x39936c70]
lea edi, [ecx + 0x70]
or edi, ebx
and ebx, edx
and edi, edx
add edi, ebx
add ecx, edx
sub ecx, edi
add cl, 0x60
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x10
jb 0x409cd0
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
mov edi, dword [esp + 0x10]
push edi
call fcn.00409290
mov dword [esp + 0x30], 0xbfb6beab
mov dword [esp + 0x34], 0x52434ac3
mov dword [esp + 0x38], 0x44413a53
mov byte [esp + 0x3c], 0xda
mov dword [esp + 0x3d], 0
mov dword [esp + 0x41], 0
mov dword [esp + 0x45], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1b
ja 0x409dc1
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + ecx]
add edx, 0x5121c87b
add eax, 0x5121c87b
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov ecx, eax
or ecx, 0xa2
and eax, 0xa2
add eax, ecx
inc al
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1c
jb 0x409d70
mov dword [esp + 0x1f], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xb3c6d2d1
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x12
ja 0x409e33
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edx, byte [esp + eax + 0x10]
lea eax, [ecx + edx]
add eax, 0x38
add ecx, 0x38
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0x78
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x13
jb 0x409e00
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409290
mov dword [esp + 0x34], 0
mov word [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x80888a8c
mov byte [esp + 0x34], 0x2a
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x15
ja 0x409edf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x85]
mov edi, 0xa35ea7a
sub edi, eax
and edx, ecx
or edi, ecx
add edi, eax
add edi, 0xf5ca1586
mov ebx, edi
and ebx, edx
xor edx, edi
add eax, ecx
add eax, 0x85
lea ecx, [edx + ebx*2]
sub eax, ecx
add al, 0x5d
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x16
jb 0x409e90
mov ecx, esi
push dword [esp + 0xd4]
push dword [esp + 0xd4]
lea ebx, [esp + 0x38]
push ebx
push dword [esp + 0x14]
call fcn.00409570
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x73016d2b
mov dword [esp + 0x34], 0x77027102
mov dword [esp + 0x38], 0x7b087511
mov dword [esp + 0x3c], 0x7f53790c
mov dword [esp + 0x40], 0x83fb7d28
mov dword [esp + 0x44], 0x87e381f0
mov dword [esp + 0x48], 0x8baa85ba
mov dword [esp + 0x4c], 0x8ffb89e5
mov dword [esp + 0x50], 0x93e68de0
mov dword [esp + 0x54], 0x97e691f9
mov dword [esp + 0x58], 0x9bec95f5
mov dword [esp + 0x5c], 0x9fad99ec
mov dword [esp + 0x60], 0xa3d19df6
mov dword [esp + 0x64], 0xa7cba1d6
mov dword [esp + 0x68], 0xabcea589
mov dword [esp + 0x6c], 0xafdaa9c9
mov dword [esp + 0x70], 0xb38dadcd
mov dword [esp + 0x74], 0xb7d0b190
mov dword [esp + 0x78], 0xbbcfb5c7
mov dword [esp + 0x7c], 0xbfdab9ca
mov dword [esp + 0x80], 0xc3b4bddd
mov dword [esp + 0x84], 0xc7fbc1b9
mov dword [esp + 0x88], 0xcbafc5a2
mov dword [esp + 0x8c], 0xcffbc9f0
mov dword [esp + 0x90], 0xd3b7cda8
mov dword [esp + 0x94], 0xd7bfd1e5
mov dword [esp + 0x98], 0xdbbed5a4
mov dword [esp + 0x9c], 0xdfb9d9ab
mov dword [esp + 0xa0], 0xe387ddb5
mov dword [esp + 0xa4], 0xe790e196
mov dword [esp + 0xa8], 0xebdbe581
mov dword [esp + 0xac], 0xefe0e9e5
mov word [esp + 0xb0], 0xedec
mov word [esp + 0xce], 0
mov dword [esp + 0xca], 0
mov dword [esp + 0xc6], 0
mov dword [esp + 0xc2], 0
mov dword [esp + 0xbe], 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, 0x9f
ja 0x40a0d5
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov edi, ecx
and edi, 0x6e
xor ecx, 0xee
lea ecx, [ecx + edi*2]
xor cl, byte [esp + edx + 0x30]
add cl, 0x7e
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0xa0
jb 0x40a0a0
mov dword [esp + 0x10], 0xfb5bf9d7
mov dword [esp + 0x14], 0xff67fd6a
mov word [esp + 0x18], 0xf1fe
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov word [esp + 0x22], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x13
ja 0x40a163
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edi, byte [esp + ecx + 0x10]
lea ecx, [edx + edi]
add ecx, 0x3f
add edx, 0x3f
and edx, edi
add edx, edx
sub ecx, edx
add cl, 0x47
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
mov ecx, dword [esp + 4]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
cmp ecx, 0x14
jb 0x40a120
push 0x493e0
push eax
mov edi, dword [esp + 0x10]
push edi
push 0
push 0
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.0040e130
add esp, 0x1c
push edi
call fcn.00408840
add esp, 4
mov dword [esi + 0x60], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret