Function at 0x140008ac0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov eax, 0x10a30
call fcn.14006bba0
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x4100
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10a58]
mov rax, qword [0x14009f088]
xor rax, rbp
mov qword [rbp + 0x109f8], rax
lea rcx, [0x1401a4196]
call fcn.14006b9e0
mov rax, qword [rbp + 0x10a20]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x10a20]
add rax, 0x20
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x100e8], 0
mov byte [rbp + 0x10124], 0
mov dword [rbp + 0x10144], 0
lea rdx, [0x140072dc4]
mov rcx, qword [rbp + 0x10a28]
call sub.ucrtbased.dll_strcmp
test eax, eax
jne 0x140008b7d
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov qword [rbp + 0x100e8], rax
mov dword [rbp + 0x10104], 0
jmp 0x140008bc9
lea r8, [0x1400715d4]
mov rdx, qword [rbp + 0x10a28]
lea rcx, [rbp + 0x100e8]
call qword [sym.imp.ucrtbased.dll_fopen_s]
mov dword [rbp + 0x10104], eax
cmp dword [rbp + 0x10104], 0
jne 0x140008bb1
cmp qword [rbp + 0x100e8], 0
jne 0x140008bc9
mov rcx, qword [rbp + 0x10a28]
call qword [sym.imp.ucrtbased.dll_perror]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
lea rcx, [rbp + 0x50]
call fcn.1400074b0
movzx eax, byte [rbp + 0x10124]
test eax, eax
jne 0x140008ded
mov r9, qword [rbp + 0x100e8]
mov r8d, 0x10000
mov edx, 1
lea rcx, [rbp + 0xd0]
call qword [sym.imp.ucrtbased.dll_fread]
mov qword [rbp + 0x101a8], rax
cmp qword [rbp + 0x101a8], 0
ja 0x140008c16
jmp 0x140008ded
mov qword [rbp + 0x101c8], 0
mov rax, qword [rbp + 0x101a8]
cmp qword [rbp + 0x101c8], rax
jae 0x140008de8
lea rax, [rbp + 0x10204]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x101e4]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x101a8]
lea r8, [rbp + 0x101c8]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x50]
call fcn.140007510
mov dword [rbp + 0x10104], eax
mov eax, dword [rbp + 0x10104]
mov dword [rbp + 0x109f4], eax
cmp dword [rbp + 0x109f4], 0
je 0x140008cab
cmp dword [rbp + 0x109f4], 1
je 0x140008cda
cmp dword [rbp + 0x109f4], 2
je 0x140008d4b
cmp dword [rbp + 0x109f4], 3
je 0x140008d71
jmp 0x140008cda
mov rax, qword [rbp + 0x101a8]
cmp qword [rbp + 0x101c8], rax
jae 0x140008cd5
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.____rangeparse_next__:_unknown_coding_failure_n
mov rcx, rax
call fcn.140001b10
jmp 0x140008de3
lea r8, [rbp + 0x10188]
lea rdx, [rbp + 0x10168]
lea rcx, [rbp + 0x50]
call fcn.140007160
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, qword [rbp + 0x10168]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x10188]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp + 0x10168]
mov r8, qword [rbp + 0x10a28]
lea rdx, str._____s:_llu:_llu:_invalid_IP_address_on_line__llu_n
mov rcx, rax
call fcn.140001b10
mov byte [rbp + 0x10124], 1
mov rax, qword [rbp + 0x101c8]
mov qword [rbp + 0x101a8], rax
jmp 0x140008de3
mov r8d, dword [rbp + 0x10204]
mov edx, dword [rbp + 0x101e4]
mov rcx, qword [rbp + 8]
call fcn.14000ae30
mov eax, dword [rbp + 0x10144]
inc eax
mov dword [rbp + 0x10144], eax
jmp 0x140008de3
lea r8, [rbp + 0x10258]
lea rdx, [rbp + 0x10228]
lea rcx, [rbp + 0x50]
call fcn.140007440
lea rax, [rbp + 0x10980]
lea rcx, [rbp + 0x10258]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x10950]
lea rcx, [rbp + 0x10228]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r8, [rbp + 0x10980]
lea rdx, [rbp + 0x10950]
mov rcx, qword [rbp + 0x28]
call fcn.14000e040
mov eax, dword [rbp + 0x10144]
inc eax
mov dword [rbp + 0x10144], eax
jmp 0x140008c21
jmp 0x140008bd2
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
cmp qword [rbp + 0x100e8], rax
je 0x140008e15
cmp qword [rbp + 0x100e8], 0
je 0x140008e15
mov rcx, qword [rbp + 0x100e8]
call qword [sym.imp.ucrtbased.dll_fclose]
movzx eax, byte [rbp + 0x10124]
test eax, eax
jne 0x140008fa0
mov qword [rbp + 0x10288], 0
lea rax, [rbp + 0x102c4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x102a4]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rbp + 0x10288]
lea rdx, [0x14007026c]
lea rcx, [rbp + 0x50]
call fcn.140007510
mov dword [rbp + 0x10104], eax
mov eax, dword [rbp + 0x10104]
mov dword [rbp + 0x109f4], eax
cmp dword [rbp + 0x109f4], 0
je 0x140008ea0
cmp dword [rbp + 0x109f4], 1
je 0x140008ea5
cmp dword [rbp + 0x109f4], 2
je 0x140008f08
cmp dword [rbp + 0x109f4], 3
je 0x140008f2e
jmp 0x140008ea5
jmp 0x140008fa0
lea r8, [rbp + 0x10188]
lea rdx, [rbp + 0x10168]
lea rcx, [rbp + 0x50]
call fcn.140007160
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, qword [rbp + 0x10168]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x10188]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp + 0x10168]
mov r8, qword [rbp + 0x10a28]
lea rdx, str._____s:_llu:_llu:_invalid_IP_address_on_line__llu_n
mov rcx, rax
call fcn.140001b10
mov byte [rbp + 0x10124], 1
jmp 0x140008fa0
mov r8d, dword [rbp + 0x102c4]
mov edx, dword [rbp + 0x102a4]
mov rcx, qword [rbp + 8]
call fcn.14000ae30
mov eax, dword [rbp + 0x10144]
inc eax
mov dword [rbp + 0x10144], eax
jmp 0x140008fa0
lea r8, [rbp + 0x10318]
lea rdx, [rbp + 0x102e8]
lea rcx, [rbp + 0x50]
call fcn.140007440
lea rax, [rbp + 0x109e0]
lea rcx, [rbp + 0x10318]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x109b0]
lea rcx, [rbp + 0x102e8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r8, [rbp + 0x109e0]
lea rdx, [rbp + 0x109b0]
mov rcx, qword [rbp + 0x28]
call fcn.14000e040
mov eax, dword [rbp + 0x10144]
inc eax
mov dword [rbp + 0x10144], eax
mov r9d, dword [rbp + 0x10144]
mov r8, qword [rbp + 0x10a28]
lea rdx, str.____s:__u_addresses_read_n
mov ecx, 1
call fcn.14002f7e0
mov rcx, qword [rbp + 8]
call fcn.14000c1d0
movzx eax, byte [rbp + 0x10124]
test eax, eax
je 0x140008fdc
mov eax, 0xffffffff
jmp 0x140008fde
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140072450]
call fcn.14006b950
mov rax, rdi
mov rcx, qword [rbp + 0x109f8]
xor rcx, rbp
call fcn.14006bb70
lea rsp, [rbp + 0x10a00]
pop rdi
pop rsi
pop rbp
ret