Function at 0x5eba54
Capabilities:
Check os version
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x47
push 0
push 0
dec ecx
jne 0x5eba5c
push ebx
push esi
mov ebx, edx
xor eax, eax
push ebp
push 0x5ebebc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x13c], 0x114
lea eax, [ebp - 0x13c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5ebbb5
mov eax, dword [ebp - 0x138]
xor edx, edx
push edx
push eax
lea eax, [ebp - 4]
call fcn.0041ea44
mov eax, dword [ebp - 0x134]
xor edx, edx
push edx
push eax
lea eax, [ebp - 8]
call fcn.0041ea44
mov eax, dword [ebp - 0x12c]
dec eax
je 0x5ebac8
dec eax
je 0x5ebb0e
jmp 0x5ebb90
mov eax, dword [ebp - 0x134]
cmp eax, 0x5a
jb 0x5ebae5
lea eax, [ebp - 0xc]
mov edx, 0x5ebed8
call fcn.004072d4
jmp 0x5ebb90
cmp eax, 0xa
jb 0x5ebafc
lea eax, [ebp - 0xc]
mov edx, 0x5ebefc
call fcn.004072d4
jmp 0x5ebb90
lea eax, [ebp - 0xc]
mov edx, 0x5ebf20
call fcn.004072d4
jmp 0x5ebb90
mov eax, dword [ebp - 0x138]
cmp eax, 3
jne 0x5ebb28
lea eax, [ebp - 0xc]
mov edx, 0x5ebf44
call fcn.004072d4
jmp 0x5ebb90
cmp eax, 4
jne 0x5ebb3c
lea eax, [ebp - 0xc]
mov edx, 0x5ebf70
call fcn.004072d4
jmp 0x5ebb90
cmp eax, 5
jne 0x5ebb7e
mov eax, dword [ebp - 0x134]
cmp eax, 2
jb 0x5ebb5b
lea eax, [ebp - 0xc]
mov edx, 0x5ebf9c
call fcn.004072d4
jmp 0x5ebb90
cmp eax, 1
jb 0x5ebb6f
lea eax, [ebp - 0xc]
mov edx, 0x5ebfc4
call fcn.004072d4
jmp 0x5ebb90
lea eax, [ebp - 0xc]
mov edx, 0x5ebfe8
call fcn.004072d4
jmp 0x5ebb90
cmp eax, 6
jne 0x5ebb90
lea eax, [ebp - 0xc]
mov edx, 0x5ec010
call fcn.004072d4
mov eax, dword [ebp - 0x130]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
call fcn.0041ea44
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x128]
mov ecx, 0x80
call fcn.00407e40
lea eax, [ebp - 0x204]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5ec030
call fcn.00407ff0
mov edx, dword [ebp - 0x204]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x208]
mov ecx, dword [ebp - 4]
mov edx, 0x5ec050
call fcn.00407ff0
mov edx, dword [ebp - 0x208]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x20c]
mov ecx, dword [ebp - 8]
mov edx, 0x5ec07c
call fcn.00407ff0
mov edx, dword [ebp - 0x20c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x210]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5ec0a8
call fcn.00407ff0
mov edx, dword [ebp - 0x210]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x214]
mov ecx, dword [ebp - 0x14]
mov edx, 0x5ec0d0
call fcn.00407ff0
mov edx, dword [ebp - 0x214]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5ec0f4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dword [ebp - 0x24], 0x20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x15c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x5ebc8f
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x15c]
mov ecx, 0x10
call fcn.00407e40
mov dword [ebp - 0x24], 0xa2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1fe]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x5ebcbd
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x1fe]
mov ecx, 0x51
call fcn.00407e40
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x18]
mov edx, 0x5ec104
call fcn.00407ff0
mov edx, dword [ebp - 0x218]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x21c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x5ec130
call fcn.00407ff0
mov edx, dword [ebp - 0x21c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5ec0f4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
call sub.user32.dll_GetSystemMetrics
lea edx, [ebp - 0x224]
call fcn.0041e8c8
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
mov edx, 0x5ec154
call fcn.00407ff0
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 1
call sub.user32.dll_GetSystemMetrics
lea edx, [ebp - 0x22c]
call fcn.0041e8c8
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov edx, 0x5ec17c
call fcn.00407ff0
mov edx, dword [ebp - 0x228]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x5ebe8a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5a
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov esi, eax
lea edx, [ebp - 0x234]
mov eax, esi
call fcn.0041e8c8
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
mov edx, 0x5ec1a8
call fcn.00407ff0
mov edx, dword [ebp - 0x230]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp esi, 0x60
jne 0x5ebddb
mov edx, 0x5ec1d8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5ebde7
mov edx, 0x5ec208
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0xc
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_GetDeviceCaps
sub eax, 8
je 0x5ebe08
sub eax, 8
je 0x5ebe17
sub eax, 8
je 0x5ebe26
sub eax, 8
je 0x5ebe35
jmp 0x5ebe44
lea eax, [ebp - 0x20]
mov edx, 0x5ec238
call fcn.004072d4
jmp 0x5ebe51
lea eax, [ebp - 0x20]
mov edx, 0x5ec25c
call fcn.004072d4
jmp 0x5ebe51
lea eax, [ebp - 0x20]
mov edx, 0x5ec290
call fcn.004072d4
jmp 0x5ebe51
lea eax, [ebp - 0x20]
mov edx, 0x5ec2c4
call fcn.004072d4
jmp 0x5ebe51
lea eax, [ebp - 0x20]
mov edx, 0x5ec2f8
call fcn.004072d4
lea eax, [ebp - 0x238]
mov ecx, dword [ebp - 0x20]
mov edx, 0x5ec314
call fcn.00407ff0
mov edx, dword [ebp - 0x238]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ebe91
mov eax, dword [ebp - 0x28]
push eax
push 0
call sub.user32.dll_ReleaseDC
ret