Function at 0x140008a50
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.140068ce0
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 [0x14009ad80]
xor rax, rbp
mov qword [rbp + 0x109f8], rax
lea rcx, [0x1401a0190]
call fcn.140068b20
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 r8, [0x14006e5e4]
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 0x140008b0f
cmp qword [rbp + 0x100e8], 0
jne 0x140008b27
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.140007440
movzx eax, byte [rbp + 0x10124]
test eax, eax
jne 0x140008d4b
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 0x140008b74
jmp 0x140008d4b
mov qword [rbp + 0x101c8], 0
mov rax, qword [rbp + 0x101a8]
cmp qword [rbp + 0x101c8], rax
jae 0x140008d46
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.1400074a0
mov dword [rbp + 0x10104], eax
mov eax, dword [rbp + 0x10104]
mov dword [rbp + 0x109f4], eax
cmp dword [rbp + 0x109f4], 0
je 0x140008c09
cmp dword [rbp + 0x109f4], 1
je 0x140008c38
cmp dword [rbp + 0x109f4], 2
je 0x140008ca9
cmp dword [rbp + 0x109f4], 3
je 0x140008ccf
jmp 0x140008c38
mov rax, qword [rbp + 0x101a8]
cmp qword [rbp + 0x101c8], rax
jae 0x140008c33
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 0x140008d41
lea r8, [rbp + 0x10188]
lea rdx, [rbp + 0x10168]
lea rcx, [rbp + 0x50]
call fcn.1400070f0
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 0x140008d41
mov r8d, dword [rbp + 0x10204]
mov edx, dword [rbp + 0x101e4]
mov rcx, qword [rbp + 8]
call fcn.14000aff0
mov eax, dword [rbp + 0x10144]
inc eax
mov dword [rbp + 0x10144], eax
jmp 0x140008d41
lea r8, [rbp + 0x10258]
lea rdx, [rbp + 0x10228]
lea rcx, [rbp + 0x50]
call fcn.1400073d0
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.14000e200
mov eax, dword [rbp + 0x10144]
inc eax
mov dword [rbp + 0x10144], eax
jmp 0x140008b7f
jmp 0x140008b30
mov rcx, qword [rbp + 0x100e8]
call qword [sym.imp.ucrtbased.dll_fclose]
movzx eax, byte [rbp + 0x10124]
test eax, eax
jne 0x140008ee3
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, [0x14006d26c]
lea rcx, [rbp + 0x50]
call fcn.1400074a0
mov dword [rbp + 0x10104], eax
mov eax, dword [rbp + 0x10104]
mov dword [rbp + 0x109f4], eax
cmp dword [rbp + 0x109f4], 0
je 0x140008de3
cmp dword [rbp + 0x109f4], 1
je 0x140008de8
cmp dword [rbp + 0x109f4], 2
je 0x140008e4b
cmp dword [rbp + 0x109f4], 3
je 0x140008e71
jmp 0x140008de8
jmp 0x140008ee3
lea r8, [rbp + 0x10188]
lea rdx, [rbp + 0x10168]
lea rcx, [rbp + 0x50]
call fcn.1400070f0
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 0x140008ee3
mov r8d, dword [rbp + 0x102c4]
mov edx, dword [rbp + 0x102a4]
mov rcx, qword [rbp + 8]
call fcn.14000aff0
mov eax, dword [rbp + 0x10144]
inc eax
mov dword [rbp + 0x10144], eax
jmp 0x140008ee3
lea r8, [rbp + 0x10318]
lea rdx, [rbp + 0x102e8]
lea rcx, [rbp + 0x50]
call fcn.1400073d0
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.14000e200
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.14002ddd0
mov rcx, qword [rbp + 8]
call fcn.14000c390
movzx eax, byte [rbp + 0x10124]
test eax, eax
je 0x140008f1f
mov eax, 0xffffffff
jmp 0x140008f21
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14006f420]
call fcn.140068a90
mov rax, rdi
mov rcx, qword [rbp + 0x109f8]
xor rcx, rbp
call fcn.140068cb0
lea rsp, [rbp + 0x10a00]
pop rdi
pop rsi
pop rbp
ret