Function at 0x40d3e0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xcb8
mov eax, dword [0x4448e4]
mov dword [esp + 0xc0], 0xc28072b5
mov dword [esp + 0xc4], 0
mov dword [esp + 0x1c0], 0
mov ecx, dword [esp + 0x1c0]
cmp ecx, 7
ja 0x40d480
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x1c0]
mov edx, dword [esp + 0x1c0]
movzx edx, byte [esp + edx + 0xc0]
add ecx, 0x526ab365
xor ecx, edx
mov dword [esp + 0x2a8], ecx
mov ecx, dword [esp + 0x2a8]
add cl, 0x56
mov edx, dword [esp + 0x1c0]
mov byte [esp + edx + 0xc0], cl
inc dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1c0]
cmp ecx, 8
jb 0x40d430
mov edx, dword [str.WpM2Co__SUSELL]
mov dword [esp + 0x2a8], 0x8405071
mov dword [esp + 0x2ac], 0x5055565c
mov dword [esp + 0x2b0], 0x50655a44
mov dword [esp + 0x2b4], 0x604d4c59
mov dword [esp + 0x2b8], 0x3162225b
mov dword [esp + 0x2bc], 0x777f2b21
mov dword [esp + 0x2c0], 0x236a656c
mov dword [esp + 0x2c4], 0xb3772d2d
mov word [esp + 0x2c8], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x21
ja 0x40d541
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x24]
movzx esi, byte [esp + esi + 0x2a8]
add ecx, 0xec07502f
xor ecx, esi
mov dword [esp + 0x1c0], ecx
mov ecx, dword [esp + 0x1c0]
add cl, 3
mov esi, dword [esp + 0x24]
mov byte [esp + esi + 0x2a8], cl
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x22
jb 0x40d500
movzx ebx, byte [esp + 0x2a8]
lea ecx, [esp + 0x1c0]
test bl, bl
je 0x40d56b
lea esi, [esp + 0x2a9]
nop
nop
nop
nop
nop
mov byte [ecx], bl
inc ecx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40d560
mov byte [ecx], 0
movzx ebx, byte [edx]
test bl, bl
je 0x40d58b
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 0x40d580
mov byte [ecx], 0
movzx edx, byte [esp + 0xc0]
test dl, dl
je 0x40d5bb
lea esi, [esp + 0xc1]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ecx], dl
inc ecx
movzx edx, byte [esi]
inc esi
test dl, dl
jne 0x40d5b0
mov byte [ecx], 0
movzx edx, byte [eax]
test dl, dl
je 0x40d5db
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ecx], dl
inc ecx
movzx edx, byte [eax]
inc eax
test dl, dl
jne 0x40d5d0
mov byte [ecx], 0
mov esi, ecx
not esi
lea eax, [esp + 0x1c0]
mov edx, eax
not edx
and edx, ecx
mov dword [esp + 0x2a8], 0x61f363d9
mov dword [esp + 0x2ac], 0x5dd25ff2
mov dword [esp + 0x2b0], 0x59c85bc7
mov dword [esp + 0x2b4], 0x558557d4
mov dword [esp + 0x2b8], 0x51d553f8
mov dword [esp + 0x2bc], 0x4dd54fc0
mov dword [esp + 0x2c0], 0x49aa4b8a
mov dword [esp + 0x2c4], 0x45d647d7
mov dword [esp + 0x2c8], 0x41d643d4
mov dword [esp + 0x2cc], 0x3da33fd7
mov dword [esp + 0x2d0], 0x39b63ba3
mov dword [esp + 0x2d4], 0x35a737af
mov dword [esp + 0x2d8], 0x31e333a6
mov dword [esp + 0x2dc], 0x2dfd2fb8
mov dword [esp + 0x2e0], 0x29a32ba5
mov dword [esp + 0x2e4], 0x25f527a1
mov dword [esp + 0x2e8], 0x21b323be
mov dword [esp + 0x2ec], 0x1d8d1fae
mov dword [esp + 0x2f0], 0x19911bcf
mov dword [esp + 0x2f4], 0x15821796
mov dword [esp + 0x2f8], 0x1180138f
mov dword [esp + 0x2fc], 0xd9f0f8d
mov dword [esp + 0x300], 0x9910b90
mov dword [esp + 0x304], 0x5f50794
mov dword [esp + 0x308], 0x10203f2
mov byte [esp + 0x30e], 0
mov word [esp + 0x30c], 0
and esi, eax
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x66
ja 0x40d771
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x24]
movzx edi, byte [esp + edi + 0x2a8]
add ecx, 0xfca0921b
xor ecx, edi
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0xc0]
add cl, 0x81
mov edi, dword [esp + 0x24]
mov byte [esp + edi + 0x2a8], cl
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x67
jb 0x40d730
sub edx, esi
mov dword [esp + 0xc0], 0xc3a3c1ef
mov dword [esp + 0xc4], 0xc7afc5b4
mov dword [esp + 0xc8], 0xc9c8
mov dword [esp + 0x240], 0
mov ecx, dword [esp + 0x240]
cmp ecx, 0xb
ja 0x40d7f7
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x240]
mov esi, dword [esp + 0x240]
movzx esi, byte [esp + esi + 0xc0]
add ecx, 0x6d490c0
xor ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x240]
mov byte [esp + esi + 0xc0], cl
inc dword [esp + 0x240]
mov ecx, dword [esp + 0x240]
cmp ecx, 0xc
jb 0x40d7b0
lea ecx, [esp + 0xb0]
lea esi, [esp + 0x20]
lea edi, [esp + 0x2a8]
lea ebx, [esp + 0xc0]
push ecx
push esi
push edx
push eax
push edi
push ebx
push 0x449884
call fcn.0040c440
add esp, 0x1c
movzx eax, al
xor esi, esi
jmp dword [eax*4 + 0x445234]
jmp dword [0x445240]
xor eax, eax
test esi, esi
sete al
jmp dword [eax*4 + 0x44524c]
jmp dword [0x445254]
push esi
call fcn.00402970
add esp, 4
nop
nop
nop
nop
nop
nop
nop
nop
push esi
call fcn.00402970
add esp, 4
jmp dword [0x445260]
jmp dword [0x445264]
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0xb0]
mov edi, dword [esp + 0x20]
mov edx, ecx
and edx, 0xfffffffc
mov esi, ecx
and esi, 3
mov eax, ecx
or eax, 3
imul eax, esi
xor esi, 3
imul esi, edx
add eax, esi
shr eax, 2
movzx edx, byte [edi + ecx - 1]
cmp edx, 0x3d
je 0x40e688
cmp edx, 0x2e
jne 0x40e689
dec eax
movzx ecx, byte [edi + ecx - 2]
cmp ecx, 0x3d
je 0x40e698
cmp ecx, 0x2e
jne 0x40e699
dec eax
push eax
call fcn.00409a50
add esp, 4
mov esi, eax
push eax
push edi
call fcn.00437a30
add esp, 8
push dword [esp + 0x20]
call fcn.0043aed0
add esp, 4
lea edi, [esp + 0x2a8]
jmp dword [0x445248]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0x20]
mov edx, ecx
and edx, 0xfffffffc
mov edi, ecx
and edi, 3
mov eax, ecx
or eax, 3
imul eax, edi
xor edi, 3
imul edi, edx
add eax, edi
shr eax, 2
movzx edx, byte [esi + ecx - 1]
cmp edx, 0x3d
je 0x40e70a
cmp edx, 0x2e
jne 0x40e70b
dec eax
movzx ecx, byte [esi + ecx - 2]
cmp ecx, 0x3d
lea edi, [esp + 0x2a8]
je 0x40e721
cmp ecx, 0x2e
jne 0x40e722
dec eax
push eax
call fcn.00409a50
add esp, 4
push eax
push esi
call fcn.00437a30
add esp, 8
push dword [esp + 0x20]
call fcn.0043aed0
add esp, 4
jmp case.0x40d828.3