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

Disassembly:
mov edx, dword [0x434b8c]
sub esp, 0x10c
cmp eax, 5
lea ecx, [edx + 0x338]
push esi
mov esi, dword [ecx]
ja case.default.0x40fa9e
jmp dword [eax*4 + 0x40fbb8]
push 0x104
push esi
call fcn.004214b1
add esp, 8
push 0x5c
push esi
call fcn.0041f760
add esp, 8
mov eax, esi
pop esi
add esp, 0x10c
ret
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.0041f390
add esp, 0xc
push 0x5c
push esi
call fcn.0041f760
add esp, 8
mov eax, esi
pop esi
add esp, 0x10c
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5c
push esi
call fcn.0041f760
add esp, 8
mov eax, esi
pop esi
add esp, 0x10c
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
push esi
call fcn.0041f760
add esp, 8
mov eax, esi
pop esi
add esp, 0x10c
ret
mov edx, dword [edx + 0x368]
push edx
push ecx
call fcn.00409970
mov eax, dword [0x434b8c]
mov eax, dword [eax + 0x338]
add esp, 8
pop esi
add esp, 0x10c
ret
mov byte [esi], 0
mov eax, esi
pop esi
add esp, 0x10c
ret
test eax, 0x10000
je 0x40fb9e
push 0
and eax, 0xffff
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x5c
push esi
call fcn.0041f760
add esp, 8
mov eax, esi
pop esi
add esp, 0x10c
ret
push 0x4316c0
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 3
call fcn.00420070
lea ecx, [ecx]
movsd dword es:[edi], dword [esi]
cli
inc eax
add al, cl
cli
inc eax
add bh, bh
cli
inc eax
add byte [eax], ah
sti
inc eax
add byte [ecx - 5], al
inc eax
add byte [ebx + edi*8 + 0x40], ah
add byte [ecx + 0xccec], al
sub esp, 0xcc
push ebx
push ebp
mov ebx, eax
test bl, 0x10
mov eax, dword [0x434b8c]
mov ebp, dword [eax + 0x338]
push esi
mov esi, 4
mov dword [esp + 0xc], 0x104
je 0x40fc03
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x40fc2c
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
and ebx, 0xf
mov eax, dword [esp + ebx*4 + 0x38]
pop esi
mov dword [ebp], eax
pop ebp
mov eax, 4
pop ebx
add esp, 0xcc
ret
cmp ebx, 0x11
ja case.0x40fc3c.3
movzx ecx, byte [ebx + 0x40fd8c]
jmp dword [ecx*4 + 0x40fd74]
mov edx, dword [str.Windows]
mov dword [ebp], edx
mov eax, dword [0x42c530]
push edi
mov dword [ebp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, ebp
dec edi
test eax, eax
js 0x40fc80
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fc62
mov cx, word [0x42c528]
mov word [edi], cx
mov dl, byte [0x42c52a]
jmp 0x40fc98
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fc80
mov cx, word [0x42c524]
mov word [edi], cx
mov dl, byte [0x42c526]
movzx ecx, ah
push ecx
and eax, 0xff
push eax
mov byte [edi + 2], dl
lea edx, [esp + 0x64]
push str._ver_d._d
push edx
call fcn.0041fd74
lea eax, [esp + 0x6c]
add esp, 0x10
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fcc0
sub eax, edx
dec ebp
mov edi, ebp
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fcd0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 2
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, 2
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
lea ecx, [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, 2
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov edx, dword [esp + 0x2c]
mov eax, esi
pop esi
mov dword [ebp], edx
pop ebp
pop ebx
add esp, 0xcc
ret
mov eax, dword [esp + 0x28]
mov dword [ebp], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
push 0x4316c0
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 3
call fcn.00420070
lea ecx, [ecx]
inc ebx
cld
inc eax
add dl, bh
cld
inc eax
add byte [edi], dl
std
inc eax
add byte [edi*8 - 0x2b8ffc0], dh
inc eax
add byte [edx - 3], bl
inc eax
add byte [eax], al
add dword [edx], eax
add eax, 84215045
add eax, 84215045
add eax, 67306757
int3