Function at 0x43a640
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 0x43a669
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x43a68f
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.0x43a69f.4
movzx eax, byte [ebx + 0x43a868]
jmp dword [eax*4 + 0x43a84c]
mov ebx, dword [ebp + 0x10]
mov eax, dword [str.Windows]
mov dword [ebx], eax
mov eax, dword [0x47a504]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
lea ecx, [ebx - 1]
test edx, edx
js 0x43a6e1
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x43a6c7
mov ax, word [0x47a508]
mov word [ecx], ax
mov al, byte [0x47a50a]
jmp 0x43a6f9
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x43a6e1
mov ax, word [0x47a50c]
mov word [ecx], ax
mov al, byte [0x47a50e]
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.0042e310
lea edx, [ebp - 0xc8]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x43a725
push edi
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43a732
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.0043b030
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 0x43a760
sub esi, edx
cmp ebx, ecx
je 0x43a77c
push esi
push ecx
push ebx
call fcn.004586b0
add esp, 0xc
mov byte [esi + ebx], 0
lea eax, [ebp + 8]
push eax
call fcn.0043b150
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.0043b030
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 0x43a7c0
jmp 0x43a767
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.0043b030
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 0x43a7f0
jmp 0x43a767
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x49c560]
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