Function at 0x180014440
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r13
push r15
lea rbp, [rsp - 0xda0]
sub rsp, 0xea0
mov rax, qword [0x1800a2008]
xor rax, rsp
mov qword [rbp + 0xd90], rax
mov r12, rcx
xor esi, esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x7c]
call fcn.1800327d0
movups xmm0, xmmword [0x1800a75e0]
movaps xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], 0x1000001
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x28]
lea edx, [rsi + 0x64]
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x1800144d4
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + 0x18]
mov byte [rbp - 0x7f], al
movzx eax, byte [rcx + 0x1c]
mov byte [rbp - 0x7e], al
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov edx, 0x40
lea rcx, [rbp - 0x74]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp - 0x74]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], sil
jne 0x1800144f1
mov byte [rbp - 0x7c], al
mov dword [rsp + 0x20], 0x40
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x34]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
movzx eax, byte [rsp + 0x20]
dec al
add al, al
mov byte [rbp - 0x7b], al
mov r8d, 0x400
lea rdx, [rbp + 0x590]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
lea rax, [rbp + 0x590]
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180014560
lea rcx, [rsp + 0x50]
cmp rdx, 7
ja 0x180014594
mov qword [rsp + 0x60], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x590]
call fcn.18003fb70
mov word [rsp + rbx + 0x50], si
jmp 0x1800145a1
lea r9, [rbp + 0x590]
call fcn.180009d80
nop
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
setae r15b
cmovae rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x1800146a1
mov r13d, 0x100
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x190]
call fcn.1800327d0
lea rcx, [0x18008ea08]
lea rdx, [0x18008ea0a]
nop dword [rax]
movzx eax, word [rcx]
cmp ax, r13w
jae 0x18001463e
movzx eax, al
mov byte [rbp + rax + 0x190], 1
add rcx, 2
cmp rcx, rdx
jne 0x1800145f0
lea rcx, [rsi - 1]
mov rax, rdi
cmp rcx, rdi
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop
movzx eax, word [rcx]
cmp ax, r13w
jae 0x180014633
cmp byte [rbp + rax + 0x190], 0
jne 0x180014699
cmp rcx, rbx
je 0x1800146a1
sub rcx, 2
jmp 0x180014620
lea rcx, [rsi - 1]
mov rax, rdi
cmp rcx, rdi
cmovb rax, rcx
lea rcx, [rbx + rax*2]
mov r9d, 0x5c
nop word [rax + rax]
mov eax, 1
movzx r8d, word [rcx]
lea rdx, [0x18008ea08]
cmp r9w, r8w
je 0x180014699
cmp rax, 1
je 0x18001468e
dec rax
add rdx, 2
cmp word [rdx], r8w
jne 0x180014676
test rdx, rdx
jne 0x180014699
cmp rcx, rbx
je 0x1800146a1
sub rcx, 2
jmp 0x180014660
sub rcx, rbx
sar rcx, 1
jmp 0x1800146a4
mov rcx, rdi
inc rcx
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
cmp rsi, rcx
jb 0x180014917
sub rsi, rcx
cmp rsi, 0xffffffffffffffff
cmovb rdi, rsi
lea rax, [rsp + 0x50]
test r15b, r15b
cmovne rax, qword [rsp + 0x50]
lea r9, [rax + rcx*2]
lea rcx, [rsp + 0x30]
cmp rdi, 7
ja 0x18001470a
mov qword [rsp + 0x40], rdi
lea rbx, [rdi + rdi]
mov r8, rbx
mov rdx, r9
call fcn.18003fb70
mov word [rsp + rbx + 0x30], r13w
jmp 0x180014712
mov rdx, rdi
call fcn.180009d80
mov ebx, dword [rsp + 0x40]
mov eax, 0x3f
cmp qword [rsp + 0x40], rax
cmova ebx, eax
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea r8d, [rbx*2 + 2]
lea rcx, [rbp + 0x4c]
call fcn.18003fb70
add bl, bl
mov byte [rbp - 0x7a], bl
mov edx, 0x400
lea rcx, [rbp + 0x190]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x1800147b8
lea rcx, [rbp + 0x190]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r10, rax
test rax, rax
je 0x1800147b8
mov edx, r13d
mov rcx, qword [rax + 0x18]
cmp qword [rcx], rdx
je 0x1800147bb
mov r8, r13
mov r9, r13
nop dword [rax]
mov rax, qword [r9 + rcx]
mov ecx, dword [rax]
mov dword [rbp + r8*4 + 0x14c], ecx
inc edx
mov rcx, qword [r10 + 0x18]
mov r8d, edx
lea r9, [rdx*8]
cmp qword [r9 + rcx], 0
jne 0x180014790
jmp 0x1800147bb
mov edx, r13d
mov byte [rbp - 0x79], dl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x78], eax
mov rcx, r12
lea rdx, [rsp + 0x70]
mov eax, 4
nop dword [rax]
nop dword [rax + rax]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
sub rax, 1
jne 0x1800147e0
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18001488b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180014886
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180014886
call qword [0x18008f290]
int3
call fcn.18002e10c
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1800148e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800148df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800148df
call qword [0x18008f290]
int3
call fcn.18002e10c
mov rax, r12
mov rcx, qword [rbp + 0xd90]
xor rcx, rsp
call fcn.18002e0b0
lea r11, [rsp + 0xea0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
call fcn.180015520
nop
int3