Function at 0x140005960
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r12, qword [rbp + 0x3f8]
lea rbx, [rdx + 0xf0]
mov r13, r8
mov qword [rsp + 0x48], r8
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rcx + 0x5a8]
lea r8, str.PADDING
lea rdx, str.Settings
xor r9d, r9d
mov esi, 0xf0
call fcn.140019450
mov rcx, qword [r14 + 0x5a8]
lea r8, str.OBEYPARAMREQLIST
xor r9d, r9d
mov dword [rsp + 0x34], eax
lea rdx, str.Settings
call fcn.140019450
movups xmm0, xmmword [r13]
lea rcx, [r13 + 0x80]
mov dword [rsp + 0x30], eax
lea rdx, [rdi + 0x80]
mov r15d, eax
movups xmmword [rdi], xmm0
movups xmm1, xmmword [r13 + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [r13 + 0x20]
movups xmmword [rdi + 0x20], xmm0
movups xmm1, xmmword [r13 + 0x30]
movups xmmword [rdi + 0x30], xmm1
movups xmm0, xmmword [r13 + 0x40]
movups xmmword [rdi + 0x40], xmm0
movups xmm1, xmmword [r13 + 0x50]
movups xmmword [rdi + 0x50], xmm1
movups xmm0, xmmword [r13 + 0x60]
movups xmmword [rdi + 0x60], xmm0
movups xmm0, xmmword [r13 + 0x70]
xor r13d, r13d
movups xmmword [rdx - 0x10], xmm0
movups xmm1, xmmword [rcx]
movups xmmword [rdx], xmm1
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm0
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm1
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm0
movups xmm1, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm1
movups xmm0, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm0
movups xmm1, xmmword [rcx + 0x60]
lea rcx, [r12 + 0x1b1]
movups xmmword [rdx + 0x60], xmm1
mov byte [rdi], 2
mov dword [rdi + 0xc], r13d
mov word [rdi + 8], r13w
cmp byte [rcx], r13b
jne 0x140005abb
cmp byte [rbp + 0x3f0], r13b
jne 0x140005b47
lea rcx, [r14 + 0x568]
call fcn.140011110
mov rcx, r12
mov dword [rdi + 0x14], eax
call fcn.140011110
lea rdx, [rsp + 0x60]
mov dword [rdi + 0x10], eax
lea rcx, [rbp + 0x280]
mov dword [rsp + 0x60], 0x100
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rcx, qword [r14 + 0x5a8]
lea rax, [rdi + 0x2c]
mov dword [rsp + 0x28], 0x40
lea r9, [rbp + 0x280]
lea r8, str.SERVERNAME
mov qword [rsp + 0x20], rax
lea rdx, str.Settings
call fcn.140019080
lea r8, [r12 + 0x1c9]
mov edx, 0x80
lea rcx, [rdi + 0x6c]
call fcn.1400270dc
movzx eax, byte [rbp + 0x3f0]
test al, al
jne 0x140005b4f
mov dword [rdi + 0xec], 0x63538263
jmp 0x140005b97
mov eax, r13d
jmp 0x140005ac0
mov word [rbx], 0x135
mov esi, 0xf3
mov byte [rbx + 2], al
add rbx, 3
cmp dword [rsp + 0x34], r13d
je 0x140005b72
mov byte [rbx], r13b
mov esi, 0xf4
inc rbx
cmp dword [0x14005d898], r13d
je 0x140005b97
mov rcx, qword [r14 + 0x5a8]
lea rdx, str.______option__d__message_type_:__d_r_n
mov r9d, eax
mov r8d, gethostname
call fcn.140019c40
test r15d, r15d
je 0x140005ba9
mov rax, qword [rbp + 0x400]
cmp byte [rax + 1], r13b
je 0x140005bf0
lea rcx, [r12 + 0x18]
call fcn.140011110
mov dword [rbx + 2], eax
add esi, 6
mov word [rbx], 0x401
add rbx, 6
cmp dword [0x14005d898], r13d
je 0x140005be9
mov rcx, qword [r14 + 0x5a8]
lea r9, [r12 + 0x18]
mov r8d, 1
lea rdx, str.______option__d__subnet_mask_:__s_r_n
call fcn.140019c40
mov rax, qword [rbp + 0x400]
mov r15, 0xffffffffffffffff
mov ecx, dword [rsp + 0x30]
cmp byte [r12 + 0x30], r13b
je 0x140005c87
test ecx, ecx
je 0x140005c10
cmp byte [rax + 0xf], r13b
je 0x140005c87
mov rdi, r15
inc rdi
cmp byte [r12 + rdi + 0x30], r13b
jne 0x140005c13
inc dil
mov byte [rbx], reloc.WS2_32.dll_ntohs
movzx r8d, dil
lea rcx, [rbx + 2]
lea rdx, [r12 + 0x30]
mov byte [rbx + 1], dil
call fcn.140045d50
movzx edx, dil
add esi, 2
add esi, edx
lea ecx, [rdx + 2]
add rbx, rcx
cmp dword [rsp + 0x34], r13d
je 0x140005c5c
test dl, 1
je 0x140005c5c
mov byte [rbx], r13b
inc rbx
inc esi
cmp dword [0x14005d898], r13d
je 0x140005c83
mov rcx, qword [r14 + 0x5a8]
lea r9, [r12 + 0x30]
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.______option__d__domain_name_:__s_r_n
call fcn.140019c40
mov ecx, dword [rsp + 0x30]
cmp byte [r12 + 0xb1], r13b
je 0x140005d2a
test ecx, ecx
je 0x140005caa
mov rax, qword [rbp + 0x400]
cmp byte [rax + 0xc], r13b
je 0x140005d2a
mov rdi, r15
nop dword [rax]
inc rdi
cmp byte [r12 + rdi + 0xb1], r13b
jne 0x140005cb0
inc dil
mov byte [rbx], ntohl
movzx r8d, dil
lea rcx, [rbx + 2]
lea rdx, [r12 + 0xb1]
mov byte [rbx + 1], dil
call fcn.140045d50
movzx edx, dil
add esi, 2
add esi, edx
lea ecx, [rdx + 2]
add rbx, rcx
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x140005d00
test dl, 1
je 0x140005d00
mov byte [rbx], r13b
inc rbx
inc esi
cmp dword [0x14005d898], r13d
je 0x140005d2e
mov rcx, qword [r14 + 0x5a8]
lea r9, [r12 + 0xb1]
mov r8d, recvfrom
lea rdx, str.______option__d__hostname_:__s_r_n
call fcn.140019c40
mov ecx, dword [rsp + 0x34]
mov edi, dword [rsp + 0x30]
cmp dword [r12 + 0x24c], r13d
jle 0x140005e62
test edi, edi
je 0x140005d55
mov r14, qword [rbp + 0x400]
cmp byte [r14 + 3], r13b
je 0x140005e69
xor edx, edx
mov byte [rsp + 0x70], r13b
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.140045990
mov byte [rbx], 3
add esi, 2
movzx eax, byte [r12 + 0x24c]
mov edi, r13d
shl al, 2
mov byte [rbx + 1], al
add rbx, 2
cmp dword [r12 + 0x24c], r13d
jle 0x140005e0e
lea r15, [0x1400501f0]
nop dword [rax]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea r14, [r12 + rcx*8]
lea rcx, [r14 + 0x250]
call fcn.140011110
mov dword [rbx], eax
add esi, 4
add rbx, 4
cmp dword [0x14005d898], r13d
je 0x140005dfb
test edi, edi
lea r8, [0x14005092c]
mov edx, 0x100
lea rcx, [rsp + 0x70]
cmove r8, r15
call fcn.14002dcb0
lea r8, [r14 + 0x250]
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14002dcb0
inc edi
cmp edi, dword [r12 + 0x24c]
jl 0x140005da0
mov r15, 0xffffffffffffffff
cmp dword [0x14005d898], r13d
je 0x140005e3a
mov rax, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov r8d, 3
lea rdx, str.______option__d__router_:__s_r_n
mov rcx, qword [rax + 0x5a8]
call fcn.140019c40
mov ecx, dword [rsp + 0x34]
mov edi, dword [rsp + 0x30]
test ecx, ecx
je 0x140005e62
mov r14, qword [rbp + 0x400]
movzx eax, bl
sub al, byte [rsp + 0x50]
test al, 1
je 0x140005e69
mov byte [rbx], r13b
inc rbx
inc esi
jmp 0x140005e69
mov r14, qword [rbp + 0x400]
cmp dword [r12 + 0x434], r13d
jle 0x140005f85
test edi, edi
je 0x140005e85
cmp byte [r14 + 0x2c], r13b
je 0x140005f90
xor edx, edx
mov byte [rsp + 0x70], r13b
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.140045990
mov byte [rbx], 0x2c
add esi, 2
movzx eax, byte [r12 + 0x434]
mov edi, r13d
shl al, 2
mov byte [rbx + 1], al
add rbx, 2
cmp dword [r12 + 0x434], r13d
jle 0x140005f3a
lea r15, [0x1400501f0]
nop dword [rax]
movsxd rax, edi
add rax, 0x2d
lea rax, [rax + rax*2]
lea r14, [r12 + rax*8]
mov rcx, r14
call fcn.140011110
mov dword [rbx], eax
add esi, 4
add rbx, 4
cmp dword [0x14005d898], r13d
je 0x140005f27
test edi, edi
lea r8, [0x14005092c]
mov edx, 0x100
lea rcx, [rsp + 0x70]
cmove r8, r15
call fcn.14002dcb0
mov r8, r14
lea rcx, [rsp + 0x70]
mov edx, 0x100
call fcn.14002dcb0
inc edi
cmp edi, dword [r12 + 0x434]
jl 0x140005ed0
mov r15, 0xffffffffffffffff
cmp dword [0x14005d898], r13d
je 0x140005f66
mov rax, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov r8d, 0x2c
lea rdx, str.______option__d__WINS_NBNS_server_:__s_r_n
mov rcx, qword [rax + 0x5a8]
call fcn.140019c40
mov ecx, dword [rsp + 0x34]
mov edi, dword [rsp + 0x30]
test ecx, ecx
je 0x140005f85
movzx eax, bl
sub al, byte [rsp + 0x50]
test al, 1
je 0x140005f85
mov byte [rbx], r13b
inc rbx
inc esi
mov r14, qword [rbp + 0x400]
test edi, edi
je 0x140005f96
cmp byte [r14 + 0x2e], r13b
je 0x140005fea
movzx eax, byte [r12 + 0x528]
add esi, 3
mov byte [rbx + 2], al
mov word [rbx], 0x12e
add rbx, 3
test ecx, ecx
je 0x140005fba
mov byte [rbx], r13b
inc rbx
inc esi
cmp dword [0x14005d898], r13d
je 0x140005fea
mov rax, qword [rsp + 0x38]
lea rdx, str.______option__d__WINS_NBT_node_:__d_r_n
movzx r9d, byte [r12 + 0x528]
mov r8d, 0x2e
mov rcx, qword [rax + 0x5a8]
call fcn.140019c40
cmp dword [r12 + 0x340], r13d
jle 0x140006104
test edi, edi
je 0x140006006
cmp byte [r14 + 6], r13b
je 0x140006104
xor edx, edx
mov byte [rsp + 0x70], r13b
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.140045990
mov byte [rbx], 6
add esi, 2
movzx eax, byte [r12 + 0x340]
mov edi, r13d
shl al, 2
mov byte [rbx + 1], al
add rbx, 2
cmp dword [r12 + 0x340], r13d
jle 0x1400060be
lea r15, [0x1400501f0]
nop word [rax + rax]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea r14, [r12 + rcx*8]
lea rcx, [r14 + 0x344]
call fcn.140011110
mov dword [rbx], eax
add esi, 4
add rbx, 4
cmp dword [0x14005d898], r13d
je 0x1400060ab
test edi, edi
lea r8, [0x14005092c]
mov edx, 0x100
lea rcx, [rsp + 0x70]
cmove r8, r15
call fcn.14002dcb0
lea r8, [r14 + 0x344]
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14002dcb0
inc edi
cmp edi, dword [r12 + 0x340]
jl 0x140006050
mov r15, 0xffffffffffffffff
cmp dword [0x14005d898], r13d
je 0x1400060ea
mov rax, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov r8d, 6
lea rdx, str.______option__d__DNS_server_:__s_r_n
mov rcx, qword [rax + 0x5a8]
call fcn.140019c40
cmp dword [rsp + 0x34], r13d
je 0x140006104
movzx eax, bl
sub al, byte [rsp + 0x50]
test al, 1
je 0x140006104
mov byte [rbx], r13b
inc rbx
inc esi
cmp byte [rbp + 0x3f0], 8
je 0x14000616f
cmp dword [rsp + 0x30], r13d
je 0x140006121
mov rax, qword [rbp + 0x400]
cmp byte [rax + 0x33], r13b
je 0x14000616f
mov ecx, dword [r12 + 0x52c]
call qword [sym.imp.WS2_32.dll_htonl]
mov r14, qword [rsp + 0x38]
add esi, 6
mov dword [rbx + 2], eax
mov word [rbx], 0x433
add rbx, 6
cmp dword [0x14005d898], r13d
je 0x140006174
mov r9d, dword [r12 + 0x52c]
lea rdx, str.______option__d__lease_time_:__u_r_n
mov rcx, qword [r14 + 0x5a8]
mov r8d, 0x33
call fcn.140019c40
jmp 0x140006174
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rdi, 0xf0
movzx eax, byte [rdi]
cmp al, 0xff
je 0x1400061ab
test al, al
jne 0x140006190
inc rdi
jmp 0x1400061a4
cmp byte [rdi], 0x52
je 0x1400062f1
movzx eax, byte [rdi + 1]
add rdi, 2
add rdi, rax
movzx eax, byte [rdi]
cmp al, 0xff
jne 0x140006187
lea rcx, [r14 + 0x568]
call fcn.140011110
mov r14d, eax
mov rdi, qword [rsp + 0x38]
cmp dword [rsp + 0x30], r13d
je 0x1400061d3
mov rax, qword [rbp + 0x400]
cmp byte [rax + 0x36], r13b
je 0x140006232
mov word [rbx], 0x436
add esi, 6
mov dword [rbx + 2], r14d
add rbx, 6
cmp dword [0x14005d898], r13d
je 0x140006232
xorps xmm0, xmm0
lea r8, [0x14005e860]
movups xmmword [rsp + 0x50], xmm0
mov r9d, 0x20
mov dword [rsp + 0x54], r14d
lea rdx, [rsp + 0x54]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rcx, qword [rdi + 0x5a8]
lea rdx, str.______option__d__own_IP_addr_:__s_r_n
mov r9, rax
mov r8d, gethostname
call fcn.140019c40
mov eax, dword [rsp + 0x30]
cmp byte [r12 + 0x530], r13b
je 0x1400063ab
test eax, eax
je 0x140006260
mov rdx, qword [rbp + 0x400]
cmp byte [rdx + 0xfc], r13b
je 0x1400063b2
nop dword [rax]
inc r15
cmp byte [r12 + r15 + 0x530], r13b
jne 0x140006260
inc r15b
mov byte [rbx], 0xfc
movzx r8d, r15b
lea rcx, [rbx + 2]
lea rdx, [r12 + 0x530]
mov byte [rbx + 1], r15b
call fcn.140045d50
mov r14d, dword [rsp + 0x34]
add esi, 2
movzx edx, r15b
add esi, edx
lea ecx, [rdx + 2]
add rbx, rcx
test r14d, r14d
je 0x1400062b2
test dl, 1
je 0x1400062b2
mov byte [rbx], r13b
inc rbx
inc esi
cmp dword [0x14005d898], r13d
je 0x1400062e1
mov rax, qword [rsp + 0x38]
lea r9, [r12 + 0x530]
mov r8d, 0xfc
lea rdx, str.______option__d__WPAD_:__s_r_n
mov rcx, qword [rax + 0x5a8]
call fcn.140019c40
mov rdx, qword [rbp + 0x400]
mov eax, dword [rsp + 0x30]
jmp 0x1400063b7
lea rcx, [r14 + 0x568]
call fcn.140011110
mov r14d, eax
test rdi, rdi
je 0x1400061ba
cmp byte [rdi + 1], r13b
jbe 0x1400061ba
movzx ecx, byte [rdi + 2]
add rdi, 2
cmp cl, 0xff
je 0x1400061ba
test cl, cl
jne 0x14000632d
inc rdi
jmp 0x14000633d
cmp byte [rdi], 0xb
je 0x14000634a
movzx eax, byte [rdi + 1]
add rdi, 2
add rdi, rax
movzx ecx, byte [rdi]
cmp cl, 0xff
jne 0x140006324
jmp 0x1400061ba
test rdi, rdi
je 0x1400061ba
cmp byte [rdi + 1], 4
jne 0x1400061ba
mov r14d, dword [rdi + 2]
lea r8, [0x14005e860]
xorps xmm0, xmm0
lea rdx, [rsp + 0x54]
movups xmmword [rsp + 0x50], xmm0
mov r9d, 0x20
mov dword [rsp + 0x54], r14d
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rdi, qword [rsp + 0x38]
lea rdx, str.override_server_identifier_with_option_82__suboption_11:__s_r_n
mov r8, rax
mov rcx, qword [rdi + 0x5a8]
call fcn.140019c40
jmp 0x1400061bf
mov rdx, qword [rbp + 0x400]
mov r14d, dword [rsp + 0x34]
mov dword [rsp + 0x44], r13d
cmp dword [r12 + 0x630], r13d
jle 0x1400064f9
lea rdi, [r12 + 0x639]
test eax, eax
je 0x1400063e4
movzx eax, byte [rdi - 1]
cmp byte [rax + rdx], r13b
je 0x1400064d4
movzx eax, byte [rdi - 1]
lea rcx, [rbx + 2]
mov byte [rbx], al
movzx eax, byte [rdi]
mov byte [rbx + 1], al
movzx r8d, byte [rdi]
mov rdx, qword [rdi + 7]
call fcn.140045d50
movzx edx, byte [rdi]
add esi, 2
add esi, edx
lea ecx, [rdx + 2]
add rbx, rcx
test r14d, r14d
je 0x140006421
test dl, 1
je 0x140006421
mov byte [rbx], r13b
inc rbx
inc esi
cmp dword [0x14005d898], r13d
je 0x1400064cd
xor edx, edx
mov byte [rsp + 0x70], r13b
mov r8d, 0x300
lea rcx, [rsp + 0x71]
call fcn.140045990
movzx eax, byte [rdi]
mov r14d, r13d
mov r15, r13
test al, al
je 0x1400064a2
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 7]
lea r8, str.__02X
mov edx, 5
lea rcx, [rsp + 0x50]
movzx r9d, byte [rax + r15]
call fcn.1400110e0
lea r8, [rsp + 0x50]
mov edx, 0x300
lea rcx, [rsp + 0x70]
call fcn.14002dcb0
movzx eax, byte [rdi]
lea r15, [r15 + 1]
inc r14d
cmp r14d, eax
jl 0x140006460
movzx r8d, byte [rdi - 1]
lea rdx, str.______custom_option__d__len_u_:_s_r_n
movzx r9d, al
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x5a8]
call fcn.140019c40
mov rdx, qword [rbp + 0x400]
mov eax, dword [rsp + 0x44]
add rdi, 0x10
mov r14d, dword [rsp + 0x34]
inc eax
cmp eax, dword [r12 + 0x630]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x30]
jl 0x1400063d2
mov rcx, qword [rsp + 0x48]
add rcx, 0xf0
movzx eax, byte [rcx]
cmp al, 0xff
je 0x140006613
test al, al
jne 0x140006519
inc rcx
jmp 0x140006529
cmp byte [rcx], 0x52
je 0x140006535
movzx eax, byte [rcx + 1]
add rcx, 2
add rcx, rax
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x140006510
jmp 0x140006613
test rcx, rcx
je 0x140006613
movzx r15d, byte [rcx + 1]
lea r14, [rcx + 2]
movzx eax, byte [rcx]
mov r8d, r15d
mov rdx, r14
mov byte [rsp + 0x40], al
lea rcx, [rbx + 2]
mov byte [rbx], al
mov byte [rbx + 1], r15b
call fcn.140045d50
add rbx, 2
add esi, 2
add rbx, r15
add esi, r15d
mov r12d, r15d
cmp dword [rsp + 0x34], r13d
je 0x140006588
test r12b, 1
je 0x140006588
mov byte [rbx], r13b
inc rbx
inc esi
cmp dword [0x14005d898], r13d
je 0x140006613
xor edx, edx
mov byte [rsp + 0x70], r13b
mov r8d, 0x300
lea rcx, [rsp + 0x71]
call fcn.140045990
test r15b, r15b
je 0x1400065e8
movzx r9d, byte [r14 + r13]
lea r8, str.__02X
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.1400110e0
lea r8, [rsp + 0x50]
mov edx, 0x300
lea rcx, [rsp + 0x70]
call fcn.14002dcb0
inc r13
cmp r13, r12
jl 0x1400065b1
movzx r8d, byte [rsp + 0x40]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, str.______relay_agent_info__d__len_u_:_s_r_n
mov rax, qword [rsp + 0x38]
mov r9d, r15d
mov rcx, qword [rax + 0x5a8]
call fcn.140019c40
mov byte [rbx], 0xff
lea eax, [rsi + 1]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140020e70
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret