Function at 0x40d370
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, 0x168
mov esi, esp
push eax
sub esp, 8
mov dword [esi + 0x1c], esp
sub esp, 0x208
mov dword [esi + 0xc], esp
sub esp, 8
mov dword [esi + 8], esp
push eax
mov dword [esi + 0xdc], esp
sub esp, 8
mov dword [esi + 0xcc], esp
sub esp, 0x68
mov eax, esp
and eax, 0xfffffff8
mov dword [esi + 0x54], eax
mov esp, eax
push eax
sub esp, 0x64
mov eax, esp
and eax, 0xfffffff8
mov dword [esi + 0x50], eax
mov esp, eax
push eax
sub esp, 0x64
mov eax, esp
and eax, 0xfffffff8
mov dword [esi + 0x4c], eax
mov esp, eax
push eax
sub esp, 0x64
mov eax, esp
and eax, 0xfffffff8
mov dword [esi + 0x48], eax
mov esp, eax
push eax
sub esp, 0x64
mov eax, esp
and eax, 0xfffffff8
mov dword [esi + 0x44], eax
mov esp, eax
push eax
sub esp, 0x64
mov eax, esp
and eax, 0xfffffff8
mov dword [esi + 0x40], eax
mov esp, eax
push eax
sub esp, 0xfc
mov dword [esi + 0x10], esp
sub esp, 8
mov dword [esi + 0x38], esp
sub esp, 8
mov dword [esi + 0x34], esp
sub esp, 0x24
mov dword [esi + 0x20], esp
push eax
mov dword [esi + 0x30], esp
push eax
mov ebx, esp
sub esp, 0x68
mov dword [esi + 0x3c], esp
sub esp, 0x10
mov dword [esi + 0xd0], esp
sub esp, 8
mov dword [esi + 0x24], esp
sub esp, 0x68
mov eax, esp
and eax, 0xfffffff8
mov dword [esi + 0x28], eax
mov esp, eax
push eax
sub esp, 0xc
mov dword [esi + 0xc8], esp
sub esp, 0x800
mov dword [esi + 0x18], esp
sub esp, 0x80
mov edi, esp
sub esp, 0x44
mov dword [esi + 0xc4], esp
sub esp, 0x10
mov dword [esi + 0xd8], esp
mov edx, dword [str.15f7911c5c73e2c263a9b433eb55ff31]
mov dword [esi + 4], 0x79b9d59e
mov dword [esi + 0x58], 0
mov eax, dword [esi + 0x58]
cmp eax, 3
ja 0x40d4c2
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x58]
movzx ecx, byte [esi + ecx + 4]
add eax, 0x9fd4b287
xor eax, ecx
mov dword [esi + 0xe0], eax
mov eax, dword [esi + 0xe0]
add al, 0xd
mov ecx, dword [esi + 0x58]
mov byte [esi + ecx + 4], al
inc dword [esi + 0x58]
mov eax, dword [esi + 0x58]
cmp eax, 4
jb 0x40d490
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xd4], edi
mov edi, dword [str.xAeOdp__mainteam]
mov dword [esi + 0x58], 0x2fd1c3ce
mov dword [esi + 0x5c], 0xdfc6c5d5
mov dword [esi + 0x60], 0xc7d6d9cd
mov dword [esi + 0x64], 0xdfcecfde
mov dword [esi + 0x68], 0xc017d1d4
mov dword [esi + 0x6c], 0x3a3cc6d6
mov dword [esi + 0x70], 0xf62f3435
mov dword [esi + 0x74], 0x4e04ecea
mov dword [esi], 0
mov eax, dword [esi]
cmp eax, 0x1f
ja 0x40d54d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi]
mov ecx, dword [esi]
movzx ecx, byte [esi + ecx + 0x58]
add eax, 0x3583c549
xor eax, ecx
mov dword [esi + 0xe0], eax
mov eax, dword [esi + 0xe0]
add al, 0xda
mov ecx, dword [esi]
mov byte [esi + ecx + 0x58], al
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x20
jb 0x40d520
movzx ebx, byte [esi + 0x58]
lea ecx, [esi + 0xe0]
test bl, bl
je 0x40d56b
lea eax, [esi + 0x59]
nop
nop
mov byte [ecx], bl
inc ecx
movzx ebx, byte [eax]
inc eax
test bl, bl
jne 0x40d560
mov byte [ecx], 0
movzx ebx, byte [edi]
test bl, bl
je 0x40d58b
inc edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ecx], bl
inc ecx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40d580
mov byte [ecx], 0
movzx ebx, byte [esi + 4]
test bl, bl
je 0x40d5ab
lea eax, [esi + 5]
nop
nop
nop
nop
nop
nop
nop
mov byte [ecx], bl
inc ecx
movzx ebx, byte [eax]
inc eax
test bl, bl
jne 0x40d5a0
mov byte [ecx], 0
movzx ebx, byte [edx]
test bl, bl
je 0x40d5cb
inc edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ecx], bl
inc ecx
movzx ebx, byte [edx]
inc edx
test bl, bl
jne 0x40d5c0
mov byte [ecx], 0
mov dword [esi + 0x58], 0xc454c206
mov dword [esi + 0x5c], 0xc85dc629
mov dword [esi + 0x60], 0xcc23ca2c
mov dword [esi + 0x64], 0xf0dece5b
mov dword [esi + 0x68], 0xf46ef207
mov dword [esi + 0x6c], 0xf81ef667
mov dword [esi + 0x70], 0xfcddfa21
mov dword [esi + 0x74], 0xe071fe1c
mov dword [esi + 0x78], 0xe409e273
mov dword [esi + 0x7c], 0xe80ce60c
mov dword [esi + 0x80], 0xec79ea08
mov dword [esi + 0x84], 0x9000ee04
mov dword [esi + 0x88], 0x9444927d
mov dword [esi + 0x8c], 0x98b6960f
mov dword [esi + 0x90], 0x9c049a02
mov dword [esi + 0x94], 0x80ae9e06
mov dword [esi + 0x98], 0x84148265
mov dword [esi + 0x9c], 0x88668615
mov dword [esi + 0xa0], 0x8c1a8aa4
mov dword [esi + 0xa4], 0xb05d8e1d
mov dword [esi + 0xa8], 0xb45bb254
mov dword [esi + 0xac], 0xb828b652
mov dword [esi + 0xb0], 0xbc5aba5f
mov dword [esi + 0xb4], 0xa0aebe5b
mov dword [esi + 0xb8], 0xa4a5a2a9
mov word [esi + 0xbc], 0
lea edx, [esi + 0xe0]
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
cmp eax, 0x65
ja 0x40d707
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 4]
mov edi, dword [esi + 4]
movzx ebx, byte [esi + edi + 0x58]
lea edi, [eax + ebx]
add eax, 0x92
and eax, ebx
add eax, eax
sub edi, eax
add edi, 0x8a04d992
mov dword [esi], edi
mov eax, dword [esi]
add al, 0xaf
mov edi, dword [esi + 4]
mov byte [esi + edi + 0x58], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
cmp eax, 0x66
jb 0x40d6d0
sub ecx, edx
mov ebx, dword [esi + 0x1c]
mov dword [ebx], 0x86e484d4
mov dword [ebx + 4], 0x82188011
mov dword [ebx + 8], 0xbcbd
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
cmp eax, 0xb
ja 0x40d758
nop
mov eax, dword [esi + 4]
mov edi, dword [esi + 4]
movzx edi, byte [ebx + edi]
add eax, 0xec049098
xor eax, edi
mov dword [esi], eax
mov eax, dword [esi]
add al, 0xe3
mov edi, dword [esi + 4]
mov byte [ebx + edi], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
cmp eax, 0xc
jb 0x40d730
lea eax, [esi + 0xc0]
lea edi, [esi + 0x14]
lea edx, [esi + 0x58]
push eax
push edi
push ecx
lea eax, [esi + 0xe0]
push eax
push edx
push ebx
push 0x448a20
call fcn.0040c1a0
add esp, 0x1c
movzx eax, al
xor edi, edi
jmp dword [eax*4 + 0x4443c8]
xor eax, eax
test edi, edi
sete al
jmp dword [eax*4 + 0x4443f0]
push edi
call fcn.00402990
add esp, 4
mov ebx, eax
jmp dword [0x4443f8]
jmp dword [0x4443d4]
push 0x104
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esi + 0xc0]
mov edi, dword [esi + 0x14]
lea eax, [ecx + ecx*2]
shr eax, 2
movzx edx, byte [edi + ecx - 1]
cmp edx, 0x3d
je 0x40dc02
cmp edx, 0x2e
jne 0x40dc03
dec eax
movzx ecx, byte [edi + ecx - 2]
cmp ecx, 0x3d
je 0x40dc12
cmp ecx, 0x2e
jne 0x40dc13
dec eax
push eax
call fcn.00409630
add esp, 4
push eax
push edi
call fcn.004374b0
add esp, 8
push dword [esi + 0x14]
call fcn.0043a100
add esp, 4
jmp case.0x40d782.3
dec eax
push eax
call fcn.00409630
add esp, 4
mov edi, eax
push eax
push ebx
call fcn.004374b0
add esp, 8
push dword [esi + 0x14]
call fcn.0043a100
add esp, 4
jmp dword [0x4443dc]
push 0x104
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esi + 0xc0]
mov ebx, dword [esi + 0x14]
lea eax, [ecx + ecx*2]
shr eax, 2
movzx edx, byte [ebx + ecx - 1]
cmp edx, 0x3d
je 0x40dc93
cmp edx, 0x2e
jne 0x40dc94
dec eax
movzx ecx, byte [ebx + ecx - 2]
cmp ecx, 0x3d
je 0x40dc40
cmp ecx, 0x2e
je 0x40dc40
jmp 0x40dc41
xor eax, eax
jmp 0x40e3fc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xlatb
inc eax
add al, dl
fild dword [eax]
salc
fild dword [eax]
fadd qword [bx + si]
fadd qword [bx + si]
mov edi, edx
inc eax
add byte [ecx], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [ecx + 0x10040d7], cl
add byte [eax], al
add byte [edi + 0x230040d7], dl
jecxz 0x444437
add byte [eax - 0x4effbf29], ch
xlatb
inc eax
add byte [ecx], dl
fadd dword [eax]
and al, bl
inc eax
add byte [ebx], dh
fadd dword [eax]
and al, bl
inc eax
add byte [eax - 0x28], dl
inc eax
add byte [ecx - 0x28], al
inc eax
add byte [eax - 0x28], dl
inc eax
add byte [eax], bl
jecxz 0x44445f
add byte [0xfc0040da], al
fld dword [eax]
outsd dx, dword [esi]
fiadd word [eax]
mov esp, 0x40de
fild word [eax]
add bh, bl
inc eax
add byte [edx], al
fild word [eax]
add bh, bl
inc eax
add byte [ecx], ch
fild word [eax]
sbb esi, 0x40
add byte [ebp - 1644150562], dl
fiadd word [eax]
xor bl, bh
inc eax
add byte [eax - 0x5fffbf21], ah
fild word [eax]
out 0xdf, eax
inc eax
add byte [eax - 0x4ffbf20], ah
fild word [eax]
mov al, byte [0xa00040e0]
loopne 0x4444af
add byte [eax - 0x59ffbf20], ah
loopne 0x4444b7
add dl, cl
jecxz 0x4444bb
add byte [eax - 0x1c35ffc0], bh
inc eax
add ah, dl
loopne 0x4444c7
add byte [ebx], dl
jecxz 0x4444cb
add byte [edx], ch
jecxz 0x4444cf
add byte [esp + ecx + 0x41], dl
add byte [ecx + 0x5400410c], dh
or al, 0x41
add byte [edi - 0x48ffbef2], ah
push cs
inc ecx
add byte [edi], dl
adc byte [ecx], al
dec eax
or al, 0x41
add byte [esp + 0x40], ah
add byte [eax + 0xc], dl
inc ecx
add byte [eax + 0xc], dl
inc ecx
add byte [edi], dl
adc byte [ecx], al
push eax
or al, 0x41
add byte [eax + 0xc], dl
inc ecx
add bh, bl
in al, 0x40
add byte [eax - 0x1c], al
inc eax
add byte [eax - 0x1b], dh
inc eax
add al, ah
out 0x40, al
add byte [edi - 0x1b], bh
inc eax
add bl, bh
jmp 0xe484451a