Function at 0x180002580
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x180023008]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor eax, eax
mov r15, rdx
mov r12, rcx
mov r14d, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
cmp qword [rcx], rax
jne 0x18000284b
cmp dword [rdx], eax
jne 0x18000284b
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.18000344c
test eax, eax
je 0x180002839
imul r13d, dword [rsp + 0x20], 0x97
add r13d, 0x18c
mov ecx, r13d
call fcn.180003970
mov r8d, r13d
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1800055b0
xor edx, edx
mov r8d, 0x18c
mov rcx, rdi
call fcn.1800055b0
lea rcx, [rdi + 0x84]
call fcn.180002e88
test eax, eax
je 0x180002839
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov r8d, ebx
xor edx, edx
call fcn.1800055b0
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x180002839
mov ecx, dword [rsp + 0x30]
mov edx, 0x80
lea eax, [rcx + 1]
cmp eax, edx
ja 0x180002686
mov r9d, ecx
lea r8, [rsp + 0x40]
lea rcx, [rdi + 4]
call fcn.18000a8a8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
lea rbx, [rdi + 0x104]
call fcn.1800055b0
mov dword [rsp + 0x30], 0x104
test rbx, rbx
je 0x180002839
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x180002839
lea rdx, str.GetUserNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002839
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call rax
test eax, eax
je 0x180002839
lea r8, [rsp + 0x40]
mov edx, 0x80
mov rcx, rbx
call fcn.180009eb8
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x118
mov ebx, 0xe
call fcn.1800055b0
lea rcx, str.ntdll.dll
mov dword [rsp + 0x40], 0x11c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1800027fd
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800027fd
lea rcx, [rsp + 0x40]
call rax
test eax, eax
jne 0x1800027fd
mov eax, dword [rsp + 0x44]
cmp eax, 5
je 0x1800027fd
cmp eax, 6
jne 0x1800027d9
mov ecx, dword [rsp + 0x48]
mov eax, ecx
test ecx, ecx
je 0x1800027cb
sub eax, 1
je 0x1800027bd
sub eax, 1
je 0x180002792
sub eax, 1
je 0x180002792
cmp eax, 7
jmp 0x1800027dc
sub ecx, 2
je 0x1800027af
sub ecx, 1
je 0x1800027a1
cmp ecx, 1
jmp 0x1800027dc
xor ebx, ebx
cmp byte [rbp + 0x5a], 1
setne bl
add ebx, 9
jmp 0x1800027ea
xor ebx, ebx
cmp byte [rbp + 0x5a], 1
setne bl
add ebx, 7
jmp 0x1800027ea
xor ebx, ebx
cmp byte [rbp + 0x5a], 1
setne bl
add ebx, 5
jmp 0x1800027ea
xor ebx, ebx
cmp byte [rbp + 0x5a], 1
setne bl
add ebx, 3
jmp 0x1800027ea
cmp eax, 0xa
jne 0x1800027fd
xor ebx, ebx
cmp byte [rbp + 0x5a], 1
setne bl
add ebx, 0xb
cmp ebx, 0xc
jne 0x1800027fd
cmp dword [rsp + 0x4c], 0x4563
lea eax, [rbx + 1]
cmovae ebx, eax
mov dword [rdi + 0x184], ebx
test ebx, ebx
je 0x180002839
mov eax, dword [rsp + 0x20]
lea rcx, [rdi + 0x18c]
mov rdx, qword [rsp + 0x28]
imul r8, rax, 0x97
mov dword [rdi + 0x188], eax
call fcn.180007c90
mov dword [rdi], r13d
mov r14d, 1
mov qword [r12], rdi
mov dword [r15], r13d
cmp qword [rsp + 0x28], 0
je 0x18000284b
mov rcx, qword [rsp + 0x28]
call fcn.180003900
mov eax, r14d
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1800038e0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret