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 0x140001dbe
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 0x140001dbc
movabs rdx, 0x7fffffffffffffff
movabs r8, 0x8000000000000027
cmp r15b, 0x25
je 0x140001a86
mov r14, qword [rdi + 0x10]
mov r13, qword [rdi + 0x18]
mov rax, r13
sub rax, r14
cmp rax, 1
jb 0x140001954
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
mov r14, qword [rsp + 0x38]
jmp 0x140001da7
mov rax, rdx
sub rax, r14
cmp rax, 1
jb 0x140001e51
lea r12, [r14 + 1]
mov rsi, r12
or rsi, 0xf
cmp rsi, rdx
ja 0x140001985
mov rcx, r13
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r13, rax
jbe 0x14000198d
mov rsi, rdx
mov rcx, r8
jmp 0x1400019b1
lea rax, [rcx + r13]
cmp rsi, rax
cmovb rsi, rax
lea rax, [rsi + 1]
cmp rax, 0x1000
jb 0x1400019cd
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140001e57
call fcn.1400025b4
test rax, rax
je 0x140001de1
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400019e1
test rax, rax
je 0x1400019df
mov rcx, rax
call fcn.1400025b4
mov rbx, rax
jmp 0x1400019e1
xor ebx, ebx
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], rsi
mov r8, r14
mov rcx, rbx
cmp r13, 0x10
jb 0x140001a58
mov rsi, qword [rdi]
mov rdx, rsi
call fcn.1400067f0
movzx eax, r15b
mov byte [r14 + rbx], al
mov byte [r14 + rbx + 1], 0
lea rdx, [r13 + 1]
cmp rdx, 0x1000
jb 0x140001a37
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140001de1
mov rsi, rcx
mov rcx, rsi
call fcn.1400025a4
mov qword [rdi], rbx
mov r12, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
mov esi, dword [rsp + 0x30]
xor r13d, r13d
jmp 0x140001d93
mov rdx, rdi
call fcn.1400067f0
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]
mov r14, qword [rsp + 0x38]
mov esi, dword [rsp + 0x30]
jmp 0x140001d93
inc r12
movsx ebx, byte [r12]
mov ecx, ebx
test ebx, ebx
je 0x140001dbc
sub ecx, 0x25
je 0x140001d58
sub ecx, 0x3f
je 0x140001c9a
sub ecx, 1
je 0x140001c35
sub ecx, 3
je 0x140001b9d
sub ecx, 8
je 0x140001c9a
cmp ecx, 4
jne 0x140001def
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 0x140001af6
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 0x140001b37
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001b1f
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call fcn.1400067f0
mov byte [rbx + rsi], r13b
jmp 0x140001b48
mov qword [rsp + 0x20], rsi
mov rdx, rsi
mov rcx, rdi
call fcn.14000215c
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140001b85
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001de8
call fcn.1400025a4
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], r13b
jmp 0x140001a7d
mov ecx, 0x401
call fcn.1400025ac
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 0x140001e11
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [r14 + rsi], r13b
jne 0x140001bc9
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rsi, rax
ja 0x140001c0f
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001bf7
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.1400067f0
mov byte [rbx + rsi], r13b
jmp 0x140001c23
mov qword [rsp + 0x20], rsi
mov r9, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14000215c
nop
mov rcx, r14
call fcn.1400025a4
mov qword [rsp + 0x48], r13
jmp 0x140001a78
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [r14 + rsi], r13b
jne 0x140001c39
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rsi, rax
ja 0x140001c82
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001c67
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.1400067f0
mov byte [rbx + rsi], r13b
jmp 0x140001a7d
mov qword [rsp + 0x20], rsi
mov r9, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14000215c
jmp 0x140001a7d
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.140001640
nop
mov r9, rax
cmp qword [rax + 0x18], 0x10
jb 0x140001cb4
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 0x140001cf5
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001cdd
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call fcn.1400067f0
mov byte [rbx + rsi], r13b
jmp 0x140001d06
mov qword [rsp + 0x20], rsi
mov rdx, rsi
mov rcx, rdi
call fcn.14000215c
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140001d42
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e4a
call fcn.1400025a4
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], r13b
jmp 0x140001a7d
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rcx
cmp rax, 1
jb 0x140001d86
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001d7e
mov rax, qword [rdi]
mov word [rax + rcx], 0x25
jmp 0x140001d9d
mov byte [rsp + 0x20], 0x25
mov rcx, rdi
call fcn.140001ebc
movabs r8, 0x8000000000000027
movabs rdx, 0x7fffffffffffffff
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.140002580
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
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 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.1400025a4
mov qword [rsp + 0x48], r13
jmp 0x1400018cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000162c
int3
call fcn.14000157c
int3