Function at 0x140112f10
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8e0]
sub rsp, 0xb40
mov rax, qword [0x1403c6da0]
xor rax, rsp
mov qword [rbp + 0x8d0], rax
mov rbx, rcx
mov qword [rbp - 0x28], rcx
movzx r12d, dl
mov byte [rbp - 0x80], dl
lea rsi, [0x1403448de]
lea rcx, [rbp + 0x4c1]
xor edx, edx
mov r8d, 0x400
mov byte [rbp + 0x4c0], 0
mov qword [rbp - 0x58], rsi
call fcn.14025e980
or rcx, 0xffffffffffffffff
xor r8d, r8d
xor eax, eax
lea rdi, [rbp + 0x4c0]
repne scasb al, byte [rdi]
mov rdi, qword [rbx]
mov r15d, r8d
not rcx
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x78], r8
dec rcx
mov rdx, rcx
mov qword [rbp - 0x70], rcx
test r12b, r12b
je 0x140112fcb
mov rax, qword [rbx + 0xf8]
mov rcx, qword [rbx + 0x100]
lea r13, [rbx + 0x218]
lea r14, [rbx + 0x2c8]
add rdi, 0x8728
jmp 0x140112fee
mov rax, qword [rbx + 0xe8]
mov rcx, qword [rbx + 0xf0]
lea r13, [rbx + 0x230]
lea r14, [rbx + 0x2b8]
add rdi, 0x8718
test rax, rax
mov r12, rsi
mov byte [rdi + 0xc], r8b
cmovne r12, rax
test rcx, rcx
mov rax, rsi
cmovne rax, rcx
mov ecx, dword [r14]
mov qword [rbp - 0x60], rdi
sub ecx, 2
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x50], rax
je 0x140113187
dec ecx
je 0x140113169
mov qword [rsp + 0xe0], rsi
mov rax, rdx
xor r9d, r9d
shr rax, 8
movzx ecx, al
movzx eax, dl
lea rdx, [rbp + 0x4c0]
mov qword [rsp + 0xd8], rdx
mov qword [rsp + 0xd0], r8
mov qword [rsp + 0xc8], r8
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xb8], r8
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x48], 8
mov dword [rsp + 0x40], 0x82
mov dword [rsp + 0x38], 6
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r8
lea r8, str.NTLMSSP_c
lea rcx, [rbp + 0xc0]
mov edx, 0x400
call fcn.1400f3910
mov r8, qword [rbp - 0x70]
lea r9, [rbp - 0x78]
lea rdx, [rbp + 0xc0]
add r8, 0x20
xor ecx, ecx
call fcn.1401151b0
test rax, rax
je 0x1401135f5
mov rcx, qword [r13]
call fcn.1400f52e0
cmp byte [rbp - 0x80], r15b
mov r8, qword [rbp - 0x78]
lea rax, str.Proxy_
lea rcx, str._sAuthorization:_NTLM__s_r_n
cmovne rsi, rax
mov rdx, rsi
call fcn.1400f4370
mov rcx, qword [rbp - 0x78]
mov qword [r13], rax
call qword [fcn.14025db40]
xor eax, eax
jmp 0x1401135fa
mov rcx, qword [r13]
test rcx, rcx
je 0x14011317c
call qword [fcn.14025db40]
mov qword [r13], r15
mov byte [rdi + 0xc], 1
xor eax, eax
jmp 0x1401135fa
mov edx, 0x5c
mov rcx, r12
call fcn.140262a68
mov rdx, rax
test rax, rax
jne 0x1401131b4
lea edx, [rax + 0x2f]
mov rcx, r12
call fcn.140262a68
mov rdx, rax
test rax, rax
jne 0x1401131b4
mov rdx, r12
jmp 0x1401131c5
mov r15, rdx
mov qword [rbp - 0x58], r12
sub r15, r12
inc rdx
mov qword [rbp - 0x30], r15
or rcx, 0xffffffffffffffff
mov rdi, rdx
xor eax, eax
repne scasb al, byte [rdi]
mov qword [rbp - 0x70], rdx
mov edx, 0x400
not rcx
dec rcx
mov r13, rcx
mov qword [rbp - 0x38], rcx
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x14011320f
mov rcx, qword [rbx]
lea rdx, str.gethostname___failed__continuing_without_
call fcn.1400fe360
xor r12d, r12d
mov qword [rbp - 0x48], r12
jmp 0x140113244
lea rcx, [rbp + 0x4c0]
mov edx, reloc.WLDAP32.dll_Ordinal_46
call fcn.140262a68
test rax, rax
je 0x140113228
mov byte [rax], 0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x4c0]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r12, rcx
mov qword [rbp - 0x48], rcx
test dword [r14 + 4], 0x80000
je 0x1401132df
mov rcx, qword [rbx]
call fcn.1400ff680
lea rcx, [rbp + 0x58]
mov edx, 8
call fcn.140001130
mov rdx, qword [rbp + 0x58]
xor eax, eax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov rax, qword [r14 + 8]
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x60], rax
call fcn.14001d620
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x20]
mov r8d, reloc.WSOCK32.dll_recv
call fcn.14001de20
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0xa8]
call fcn.14001df50
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp + 0x90]
call fcn.140112e40
cmp eax, 0x1b
je 0x1401135f5
lea r8, [rbp + 0x78]
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x90]
jmp 0x140113327
mov rbx, qword [rbp - 0x50]
lea rdx, [rbp + 0x90]
mov rcx, rbx
call fcn.140112e40
cmp eax, 0x1b
je 0x1401135f5
lea r8, [rbp + 0x78]
lea rdx, [r14 + 8]
lea rcx, [rbp + 0x90]
call fcn.140112c50
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.140112d00
lea r8, [rbp + 0x40]
lea rdx, [r14 + 8]
lea rcx, [rbp + 0x60]
call fcn.140112c50
and dword [r14 + 4], 0xfffffffe
movzx r14d, byte [rbp - 0x38]
lea rbx, [r15 + 0x70]
mov rax, r12
movzx r12d, r12b
shr rax, 8
lea r9, [rbx + r13]
movzx esi, al
mov rax, r13
shr rax, 8
movzx r13d, al
mov rax, r15
shr rax, 8
movzx r15d, al
mov rax, qword [rbp - 0x68]
movzx ecx, byte [rax + 4]
movzx edx, byte [rax + 7]
movzx edi, byte [rax + 6]
mov dword [rsp + 0x1d0], edx
mov dword [rsp + 0x1c8], edi
movzx r8d, byte [rax + 5]
mov dword [rsp + 0x1c0], r8d
mov dword [rsp + 0x1b8], ecx
mov rax, r9
shr rax, 8
movzx r9d, r9b
movzx r10d, al
mov rax, rbx
shr rax, 8
xor ecx, ecx
mov qword [rsp + 0x1b0], rcx
mov qword [rsp + 0x1a8], rcx
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x198], rcx
mov qword [rsp + 0x190], rcx
mov qword [rsp + 0x188], rcx
mov qword [rsp + 0x180], rcx
mov qword [rsp + 0x178], rcx
mov qword [rsp + 0x170], rcx
mov qword [rsp + 0x168], rcx
mov qword [rsp + 0x160], r10
mov qword [rsp + 0x158], r9
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x148], r12
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x138], r12
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x128], rcx
movzx r11d, al
movzx eax, bl
mov rbx, qword [rbp - 0x30]
mov qword [rsp + 0x120], r11
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x110], r13
mov qword [rsp + 0x108], r14
mov qword [rsp + 0x100], r13
mov qword [rsp + 0xf8], r14
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xd8], reloc.WSOCK32.dll_WSASetLastError
mov qword [rsp + 0xd0], r15
movzx eax, bl
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xa8], rcx
mov dword [rsp + 0xa0], ecx
mov dword [rsp + 0x98], 0x58
mov qword [rsp + 0x90], rcx
mov dword [rsp + 0x88], Ordinal_30
mov qword [rsp + 0x80], rcx
mov dword [rsp + 0x78], Ordinal_30
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], Ordinal_30
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], Ordinal_30
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
lea r8, [0x1402df740]
lea rcx, [rbp + 0xc0]
xor r9d, r9d
mov edx, 0x400
call fcn.1400f3910
movsxd rdi, eax
cmp rdi, 0x3e8
jae 0x1401135c8
mov rax, qword [rbp + 0x40]
add rdi, 0x18
mov qword [rbp + rdi + 0xa8], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + rdi + 0xb0], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + rdi + 0xb8], rax
cmp rdi, 0x3e8
jae 0x1401135c8
mov rax, qword [rbp + 0x78]
add rdi, 0x18
mov qword [rbp + rdi + 0xa8], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + rdi + 0xb0], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + rdi + 0xb8], rax
mov r12, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x48]
lea rax, [r12 + rdi]
add rax, rsi
add rax, rbx
cmp rax, 0x400
jb 0x140113624
mov rcx, qword [rbp - 0x28]
lea rdx, str.user__domain__host_name_too_big
mov rcx, qword [rcx]
call fcn.1400fe410
mov eax, reloc.WLDAP32.dll_Ordinal_27
mov rcx, qword [rbp + 0x8d0]
xor rcx, rsp
call fcn.14025db20
mov rbx, qword [rsp + 0xb90]
add rsp, 0xb40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp + rdi + 0xc0]
mov r8, rbx
call fcn.14025ccd0
mov rdx, qword [rbp - 0x70]
add rdi, rbx
lea rcx, [rbp + rdi + 0xc0]
mov r8, r12
call fcn.14025ccd0
add rdi, r12
lea rdx, [rbp + 0x4c0]
lea rcx, [rbp + rdi + 0xc0]
mov r8, rsi
call fcn.14025ccd0
lea r8, [rdi + rsi]
lea r9, [rbp - 0x78]
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call fcn.1401151b0
test rax, rax
je 0x1401135f5
mov rdi, qword [rbp - 0x40]
mov rcx, qword [rdi]
call fcn.1400f52e0
cmp byte [rbp - 0x80], 0
mov r8, qword [rbp - 0x78]
lea rax, str.Proxy_
lea rdx, [0x1403448de]
lea rcx, str._sAuthorization:_NTLM__s_r_n
cmovne rdx, rax
call fcn.1400f4370
mov rcx, qword [rbp - 0x78]
mov qword [rdi], rax
call qword [fcn.14025db40]
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov dword [rdx], 3
mov byte [rax + 0xc], 1
xor eax, eax
jmp 0x1401135fa