Function at 0x412490
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0x104
push esi
mov esi, 4
test bl, 0x10
je 0x4124b9
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x4124df
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp + 0x10]
and ebx, 0xf
mov ecx, dword [ebp + ebx*4 - 0x48]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x11
ja case.0x4124ef.4
movzx eax, byte [ebx + 0x4126b8]
jmp dword [eax*4 + 0x41269c]
mov ebx, dword [ebp + 0x10]
mov eax, dword [str.Windows]
mov dword [ebx], eax
mov eax, dword [0x445700]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
lea ecx, [ebx - 1]
test edx, edx
js 0x412531
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x412517
mov ax, word [0x445704]
mov word [ecx], ax
mov al, byte [0x445706]
jmp 0x412549
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x412531
mov ax, word [0x445708]
mov word [ecx], ax
mov al, byte [0x44570a]
mov byte [ecx + 2], al
mov eax, edx
shr eax, 8
movzx eax, al
push eax
movzx eax, dl
push eax
lea eax, [ebp - 0xc8]
push str._ver_d._d
push eax
call fcn.00401b80
lea edx, [ebp - 0xc8]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x412575
push edi
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412582
mov ecx, edx
lea eax, [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.004228d0
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, ecx
pop edi
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4125b0
sub esi, edx
cmp ebx, ecx
je 0x4125cc
push esi
push ecx
push ebx
call fcn.00424030
add esp, 0xc
mov byte [esi + ebx], 0
lea eax, [ebp + 8]
push eax
call fcn.004229f0
mov ecx, dword [ebp + 0xc]
add esp, 4
mov esi, 2
mov eax, ebx
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.004228d0
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x412610
jmp 0x4125b7
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.004228d0
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x412640
jmp 0x4125b7
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x458b18]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x37c]
mov dword [ebx], eax
mov eax, ebx
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, ebx
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret