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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
cmp dword [ecx + 0x20], 0
je 0x409ec7
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.00406090
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc], eax
movzx eax, byte [esi]
imul ecx, eax, 0xcd
shr ecx, 0xa
and ecx, 0xfffffffe
lea ecx, [ecx + ecx*4]
sub al, cl
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esp + 2], al
mov byte [esp + 3], 0
mov dword [esp + 0x10], edx
lea eax, [edx + 0x400]
push eax
call fcn.004081b0
add esp, 4
mov ebx, eax
mov dword [esp + 0x74], 0x4d45724c
mov byte [esp + 0x78], 0xe8
mov dword [esp + 0x79], 0
mov dword [esp + 0x7c], 0
mov eax, 0x57
mov ecx, 0xa8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 0x1d]
mov edx, ecx
xor edx, eax
and edx, edi
xor edx, eax
add dl, 0x4d
mov byte [esp + eax + 0x1d], dl
inc eax
dec ecx
cmp eax, 0x63
jne 0x409a30
lea edi, [esp + 0x74]
mov ecx, esi
push 0x4482c8
push edi
push ebx
call fcn.00409240
mov dword [esp + 0x74], 0x13aea8a0
mov dword [esp + 0x78], 0
xor ecx, ecx
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x7c
xor dl, byte [esp + ecx + 0x74]
add dl, 0x94
mov byte [esp + ecx + 0x74], dl
mov edx, ecx
xor eax, 1
add eax, ecx
and ecx, 1
and edx, 6
add eax, ecx
sub eax, edx
mov ecx, eax
cmp eax, 8
jb 0x409a80
lea eax, [esp + 2]
mov ecx, esi
push eax
push edi
mov dword [esp + 0xc], ebx
push ebx
call fcn.00409240
mov eax, dword [str.tLYMe5__111]
mov dword [esp + 8], eax
mov dword [esp + 0x74], 0x812a2c30
mov byte [esp + 0x78], 0
mov ecx, 0x4dd0cfa1
mov edi, 0x322f305e
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ecx - 0x4dd0cf2d]
mov edx, edi
or edx, ebx
lea ebp, [ecx - 0x4dd0cf00]
mov eax, ebx
not eax
or eax, ebp
and edx, ecx
and edx, eax
mov eax, edx
and eax, 2
mov ebp, edx
or edx, 2
imul edx, eax
xor eax, 2
and ebp, 0xad
imul ebp, eax
add edx, ebp
lea eax, [edi - 0x322f3000]
and eax, edx
xor edx, ecx
add eax, eax
sub edx, eax
add dl, bl
add dl, 0xdb
mov byte [esp + ecx - 0x4dd0cf2d], dl
inc ecx
dec edi
cmp ecx, 0x4dd0cfa6
jne 0x409ae0
mov ecx, esi
push dword [esp + 8]
lea eax, [esp + 0x78]
push eax
push dword [esp + 0xc]
call fcn.00409240
mov dword [esp + 0x74], 0x5d686091
mov dword [esp + 0x78], 0x68656c59
mov dword [esp + 0x7c], 0x6a6b5469
mov byte [esp + 0x80], 0xf0
mov dword [esp + 0x81], 0
mov word [esp + 0x85], 0
mov eax, 0x8ee2d4ff
mov ecx, 0x711d2b00
nop
nop
movzx edx, byte [esp + eax + 0x711d2b75]
mov ebp, eax
xor ebp, edx
or ebp, ecx
mov edi, ebp
not edi
mov ebx, edi
and ebx, 0x1fd
and ebp, 2
imul ebp, ebx
mov ebx, edi
and ebx, 2
or edi, 2
imul edi, ebx
add edi, ebp
mov ebx, edi
not ebx
and ebx, eax
and edi, ecx
not edi
add edi, edx
lea edx, [ebx + edi]
add edx, 0x3591d705
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
mov byte [esp + eax + 0x711d2b75], dl
inc eax
dec ecx
cmp eax, 0x8ee2d512
jne 0x409b90
mov dword [esp + 0x14], 0xd7aaa6a9
mov eax, 0xce
mov ecx, 0x31
nop
movzx edi, byte [esp + eax - 0xba]
mov edx, ecx
xor edx, eax
and edx, edi
xor edx, eax
add dl, 0xfa
mov byte [esp + eax - 0xba], dl
inc eax
dec ecx
cmp eax, 0xd2
jne 0x409c00
lea eax, [esp + 0x14]
mov ecx, esi
lea edi, [esp + 0x74]
push edi
push eax
mov ebp, dword [esp + 0xc]
push ebp
call fcn.00409240
mov dword [esp + 0x74], 0x126e6c16
mov byte [esp + 0x78], 0xf8
mov dword [esp + 0x79], 0
mov word [esp + 0x7d], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x2b
xor cl, byte [esp + eax + 0x74]
add cl, 0x29
mov byte [esp + eax + 0x74], cl
inc eax
cmp eax, 0xb
jne 0x409c60
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + 0x10]
push edi
push ebp
call fcn.00409510
mov dword [esp + 0x14], 0x99eb9bd1
mov dword [esp + 0x18], 0xa5daa7ea
mov dword [esp + 0x1c], 0xa1d0a3cf
mov dword [esp + 0x20], 0xad9dafdc
mov dword [esp + 0x24], 0xa92dabf0
mov dword [esp + 0x28], 0xb5ddb7d8
mov dword [esp + 0x2c], 0xb192b3f2
mov dword [esp + 0x30], 0xbdc5bfc3
mov dword [esp + 0x34], 0xb9c6bbc8
mov dword [esp + 0x38], 0xc5b6c7cf
mov dword [esp + 0x3c], 0xc1bcc3ab
mov dword [esp + 0x40], 0xcdffcfbc
mov dword [esp + 0x44], 0xc9bbcba6
mov dword [esp + 0x48], 0xd5a5d7b6
mov dword [esp + 0x4c], 0xd1bed3e7
mov dword [esp + 0x50], 0xdda2dfbf
mov dword [esp + 0x54], 0xd99fdbb3
mov dword [esp + 0x58], 0xe588e7f8
mov dword [esp + 0x5c], 0xe199e395
mov dword [esp + 0x60], 0xed82ef92
mov dword [esp + 0x64], 0xe994eb83
mov dword [esp + 0x68], 0xf5b5f76f
mov word [esp + 0x6c], 0xf3f4
mov word [esp + 0x72], 0
mov dword [esp + 0x6e], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x14]
mov edi, eax
and edi, 0x36
mov ebx, ecx
xor ebx, 0xade2f9b
add ebx, edi
xor ebx, edx
mov edx, ebx
and edx, 1
xor ebx, 1
lea edx, [ebx + edx*2]
add dl, 0xf8
mov byte [esp + ecx + 0x14], dl
inc ecx
add eax, 2
cmp ecx, 0x60
jne 0x409d60
movzx eax, word [esp + 0x14]
test ax, ax
lea edx, [esp + 0x74]
je 0x409dc1
lea ecx, [esp + 0x16]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edx], ax
add edx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409db0
mov word [edx], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 0xffffffff
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [esi + ecx + 0x61], 0
lea ecx, [ecx + 1]
jne 0x409de0
cmp eax, ecx
jae 0x409dfc
movsx ecx, byte [esi + eax + 0x60]
mov word [edx], cx
add edx, 2
inc eax
jmp 0x409dd0
mov dword [edx], 0xa000d
mov word [edx + 4], 0
mov eax, dword [esi + 0x80]
mov dword [esp + 0x14], 0xb9ddbbd5
mov dword [esp + 0x18], 0xbd21bf28
mov word [esp + 0x1c], 0xb3bc
mov dword [esp + 0x1e], 0
mov byte [esp + 0x22], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx + 0x14]
mov edx, ecx
xor edx, 0xc650be9f
lea edx, [edx + ecx*2]
xor edx, edi
lea edi, [edx + edx]
and edi, 0x800dc8
xor edx, 0xdf93b91b
sub edx, edi
lea edi, [edx*2 + 2]
inc edx
sub edx, edi
inc dl
mov byte [esp + ecx + 0x14], dl
mov edx, 7
sub edx, ecx
add ecx, 0x38
and edx, 0x37
and ecx, 0x48
sub ecx, edx
cmp ecx, 0xf
jb 0x409e40
lea ecx, [esp + 0x74]
push 0x493e0
push eax
push ebp
push 0
push 0
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0040c960
add esp, 0x1c
mov ebx, eax
push ebp
call fcn.004081c0
add esp, 4
mov eax, dword [esi + 0x80]
add dword [esi + 4], eax
mov dword [esi + 0x80], 0
jmp 0x409ec9
mov bl, 1
mov eax, ebx
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret