Function at 0x140001864
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov esi, r9d
mov dword [rsp + 0x30], r9d
mov r14, r8
mov qword [rsp + 0x38], r8
mov r12, rdx
mov qword [rsp + 0x40], rdx
mov rdi, rcx
cmp byte [rdx], 0x7c
jne 0x1400018d2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Pipe_syntax_in_dump_name_not_supported_n
call fcn.140001008
xor al, al
jmp 0x140001e20
mov ecx, 1
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r15b, byte [r12]
xor r13d, r13d
test r15b, r15b
je 0x140001e1e
movabs rdx, 0x7fffffffffffffff
movabs r8, 0x8000000000000027
cmp r15b, 0x25
je 0x140001a6f
mov r14, qword [rdi + 0x10]
mov r13, qword [rdi + 0x18]
mov rax, r13
sub rax, r14
cmp rax, 1
jb 0x14000194f
lea rax, [r14 + 1]
mov qword [rdi + 0x10], rax
mov rcx, rdi
cmp r13, 0x10
jb 0x140001937
mov rcx, qword [rdi]
movsx eax, r15b
movzx eax, al
mov byte [rcx + r14], al
xor r13d, r13d
mov byte [rcx + r14 + 1], r13b
jmp 0x140001e04
mov rax, rdx
sub rax, r14
cmp rax, 1
jb 0x140001eb3
lea r12, [r14 + 1]
mov rsi, r12
or rsi, 0xf
cmp rsi, rdx
ja 0x140001980
mov rcx, r13
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r13, rax
jbe 0x140001988
mov rsi, rdx
mov rcx, r8
jmp 0x1400019ac
lea rax, [rcx + r13]
cmp rsi, rax
cmovb rsi, rax
lea rax, [rsi + 1]
cmp rax, 0x1000
jb 0x1400019c8
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140001eb9
call fcn.140002614
test rax, rax
je 0x140001e43
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400019dc
test rax, rax
je 0x1400019da
mov rcx, rax
call fcn.140002614
mov rbx, rax
jmp 0x1400019dc
xor ebx, ebx
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], rsi
mov r8, r14
mov rcx, rbx
cmp r13, 0x10
jb 0x140001a4a
mov rsi, qword [rdi]
mov rdx, rsi
call fcn.140006840
movzx eax, r15b
mov byte [r14 + rbx], al
mov byte [r14 + rbx + 1], 0
lea rdx, [r13 + 1]
cmp rdx, 0x1000
jb 0x140001a32
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140001e43
mov rsi, rcx
mov rcx, rsi
call fcn.140002604
mov qword [rdi], rbx
mov r12, qword [rsp + 0x40]
xor r13d, r13d
jmp 0x140001dec
mov rdx, rdi
call fcn.140006840
movzx eax, r15b
mov byte [r14 + rbx], al
xor r13d, r13d
mov byte [r14 + rbx + 1], r13b
mov qword [rdi], rbx
mov r12, qword [rsp + 0x40]
jmp 0x140001dec
inc r12
movsx ebx, byte [r12]
cmp ebx, 0x65
jg 0x140001bee
je 0x140001b89
mov ecx, ebx
test ebx, ebx
je 0x140001e1e
sub ecx, 0x25
je 0x140001b28
sub ecx, 0x20
je 0x140001e91
sub ecx, 4
je 0x140001e91
sub ecx, 7
je 0x140001e91
sub ecx, 0x13
je 0x140001e91
cmp ecx, 1
jne 0x140001e91
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.140001640
nop
mov r9, rax
cmp qword [rax + 0x18], 0x10
jb 0x140001ae0
mov r9, qword [rax]
mov rsi, qword [rax + 0x10]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rsi, rax
ja 0x140001cf2
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001b0d
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call fcn.140006840
mov byte [rbx + rsi], r13b
jmp 0x140001d03
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rax, 1
jb 0x140001b63
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001b4e
mov rax, qword [rdi]
mov word [rax + rcx], 0x25
movabs rdx, 0x7fffffffffffffff
jmp 0x140001e09
mov byte [rsp + 0x20], 0x25
mov rcx, rdi
call fcn.140001f1c
movabs rdx, 0x7fffffffffffffff
movabs r8, 0x8000000000000027
jmp 0x140001e09
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [r14 + rsi], r13b
jne 0x140001b8d
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rsi, rax
ja 0x140001bd6
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001bbb
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140006840
mov byte [rbx + rsi], r13b
jmp 0x140001d50
mov qword [rsp + 0x20], rsi
mov r9, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400021bc
jmp 0x140001d50
mov ecx, ebx
sub ecx, 0x67
je 0x140001e91
sub ecx, 1
je 0x140001d59
sub ecx, 1
je 0x140001e91
sub ecx, 7
je 0x140001ac6
sub ecx, 3
je 0x140001e91
cmp ecx, 1
jne 0x140001e91
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14000174c
nop
mov r9, rax
cmp qword [rax + 0x18], 0x10
jb 0x140001c4e
mov r9, qword [rax]
mov rsi, qword [rax + 0x10]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rsi, rax
ja 0x140001c8f
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001c77
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call fcn.140006840
mov byte [rbx + rsi], r13b
jmp 0x140001ca0
mov qword [rsp + 0x20], rsi
mov rdx, rsi
mov rcx, rdi
call fcn.1400021bc
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140001cdd
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e4a
call fcn.140002604
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], r13b
jmp 0x140001d50
mov qword [rsp + 0x20], rsi
mov rdx, rsi
mov rcx, rdi
call fcn.1400021bc
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140001d3f
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e51
call fcn.140002604
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], r13b
mov esi, dword [rsp + 0x30]
jmp 0x140001b70
mov ecx, 0x401
call fcn.14000260c
mov r14, rax
mov qword [rsp + 0x48], rax
mov edx, 0x400
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140001e58
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [r14 + rsi], r13b
jne 0x140001d85
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rsi, rax
ja 0x140001dcb
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001db3
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140006840
mov byte [rbx + rsi], r13b
jmp 0x140001ddf
mov qword [rsp + 0x20], rsi
mov r9, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400021bc
nop
mov rcx, r14
call fcn.140002604
mov qword [rsp + 0x48], r13
mov esi, dword [rsp + 0x30]
movabs rdx, 0x7fffffffffffffff
movabs r8, 0x8000000000000027
mov r14, qword [rsp + 0x38]
inc r12
mov qword [rsp + 0x40], r12
mov r15b, byte [r12]
test r15b, r15b
jne 0x140001905
mov al, 1
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400025e0
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov ebx, eax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8d, ebx
lea rdx, str.Could_not_get_the_host_name_for_dump_name:__d_n
call fcn.140001008
nop
mov rcx, r14
call fcn.140002604
mov qword [rsp + 0x48], r13
jmp 0x1400018cb
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8d, ebx
lea rdx, str.Invalid_dump_name_format_char__c_n
call fcn.140001008
jmp 0x1400018cb
call fcn.14000162c
int3
call fcn.14000157c
int3