Function at 0x409e00
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, 0xe8
cmp dword [ecx + 0x20], 0
je 0x409e51
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x409e58
cmp al, 0x64
jb 0x409e67
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 + 0x43e528]
mov word [esp + 9], ax
mov ecx, 1
mov eax, edx
jmp 0x409e70
mov bl, 1
jmp 0x40a465
lea eax, [esp + 0xa]
mov dword [esp + 0xc], eax
mov byte [esp + 0xa], 0x30
jmp 0x409e9c
mov ecx, 3
cmp al, 9
ja 0x409e87
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 7
mov dword [esp + 0xc], edx
mov byte [esp + ecx + 7], al
jmp 0x409e9c
movzx eax, word [eax + eax + 0x43e528]
lea ecx, [esp + 9]
mov dword [esp + 0xc], ecx
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406c50
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x28], eax
lea ebx, [esp + 0xc3]
push ebx
call fcn.00434340
add esp, 4
mov dword [esp + 0x2c], edi
lea eax, [edi + 0x800]
push eax
call fcn.00408d40
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x27233624
mov byte [esp + 0x34], 0x88
mov dword [esp + 0x39], 0
mov dword [esp + 0x35], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x409f50
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x30]
mov edx, eax
and edx, 0xc5c05bea
xor eax, 0x45c05bea
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x9a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x30], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x409f10
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
push eax
push edi
call fcn.004096c0
mov dword [esp + 0x30], 0xb3d6c8c0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x409fcf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x30]
add eax, 0x497fbeb8
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
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
add al, 0xf8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x30], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x409f90
mov ecx, esi
push dword [esp + 0xc]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x14], edi
push edi
call fcn.004096c0
mov eax, dword [str.fuOLMb__palpatine]
mov dword [esp + 0x30], 0xb3282222
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 8
ja 0x40a070
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx - 0x167eea17]
lea edi, [ecx + 0xe9]
or edi, ebx
mov ebx, 0x167eea16
sub ebx, ecx
and edi, edx
or ebx, edx
add edx, ecx
add edx, 0xe98115e9
add ebx, ecx
lea ecx, [edi + ebx]
add ecx, 0xe98115ea
mov edi, ecx
xor edi, edx
not ecx
and ecx, edx
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0xa1
mov edx, dword [esp]
mov byte [esp + edx + 0x30], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 9
jb 0x40a010
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
mov edi, dword [esp + 0x14]
push edi
call fcn.004096c0
mov dword [esp + 0x30], 0xe7ece4eb
mov dword [esp + 0x34], 0xe4ebe0f3
mov dword [esp + 0x38], 0xeeedf0e3
mov byte [esp + 0x3c], 0x2c
mov dword [esp + 0x3d], 0
mov dword [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x13
ja 0x40a0fa
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0xd4]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0x5a618fd4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x34
mov ecx, dword [esp]
mov byte [esp + ecx + 0x30], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x14
jb 0x40a0c0
mov dword [esp + 0x10], 0x33a69291
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x40a17d
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
and edx, 0xf2342f08
xor eax, 0xf2342f08
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xc8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x40a130
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.004096c0
mov dword [esp + 0x30], 0x80888a8c
mov byte [esp + 0x34], 0x2a
mov dword [esp + 0x35], 0
mov byte [esp + 0x39], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x40a1fb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + ecx]
add eax, 0x85
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0xfaea2785
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x5d
mov ecx, dword [esp]
mov byte [esp + ecx + 0x30], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x40a1c0
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ebx
push edi
call fcn.004099a0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x4331411b
mov dword [esp + 0x34], 0x5fd05d34
mov dword [esp + 0x38], 0x5b2e5921
mov dword [esp + 0x3c], 0x576355d6
mov dword [esp + 0x40], 0x53db513a
mov dword [esp + 0x44], 0x6f136d22
mov dword [esp + 0x48], 0x6b486924
mov dword [esp + 0x4c], 0x67eb651d
mov dword [esp + 0x50], 0x63ec6112
mov dword [esp + 0x54], 0x7f0c7d19
mov dword [esp + 0x58], 0x7b0a791d
mov dword [esp + 0x5c], 0x774575f6
mov dword [esp + 0x60], 0x73017108
mov dword [esp + 0x64], 0x8ffb8d00
mov dword [esp + 0x68], 0x8bf489b9
mov dword [esp + 0x6c], 0x870885e9
mov dword [esp + 0x70], 0x83c581e5
mov dword [esp + 0x74], 0x9ffe9da2
mov dword [esp + 0x78], 0x9b1799ef
mov dword [esp + 0x7c], 0x97e895ec
mov dword [esp + 0x80], 0x93e291f5
mov dword [esp + 0x84], 0xafebad19
mov dword [esp + 0x88], 0xabd7a9cc
mov dword [esp + 0x8c], 0xa7eba5e2
mov dword [esp + 0x90], 0xa3dfa1da
mov dword [esp + 0x94], 0xbfc7bded
mov dword [esp + 0x98], 0xbbc4b9ce
mov dword [esp + 0x9c], 0xb7c9b5cb
mov dword [esp + 0xa0], 0xb3cfb1cd
mov dword [esp + 0xa4], 0xcfbecdc0
mov dword [esp + 0xa8], 0xcbfbc9b1
mov dword [esp + 0xac], 0xc7dec5dd
mov word [esp + 0xb0], 0xc1c6
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x89
ja 0x40a3b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x30]
lea edi, [ecx + edx]
add edi, 0xc776e44b
add ecx, 0xc776e44b
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
add cl, 0xf3
mov edx, dword [esp]
mov byte [esp + edx + 0x30], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x8a
jb 0x40a370
mov dword [esp + 0x10], 0xf393cd9f
mov dword [esp + 0x14], 0xf79ff160
mov word [esp + 0x18], 0xf5f4
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x15
ja 0x40a430
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
lea edi, [ecx + edx]
add edi, 0xe3cc5a5e
add ecx, 0xe3cc5a5e
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp], edi
mov ecx, dword [esp]
add cl, 0x6e
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x16
jb 0x40a3f0
push 0x493e0
push eax
mov edi, dword [esp + 0x14]
push edi
push 0
push 0
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.0040dc50
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408d50
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret