Function at 0x14002a490
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x230
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
lea rcx, [0x1401a09e7]
call fcn.140068b20
mov rax, qword [rbp + 0x220]
mov rax, qword [rax + 0x48]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x78]
mov dword [rbp + 0x1f4], eax
cmp dword [rbp + 0x1f4], 0
je 0x14002a52c
cmp dword [rbp + 0x1f4], 1
je 0x14002a623
cmp dword [rbp + 0x1f4], 2
je 0x14002a88d
cmp dword [rbp + 0x1f4], 3
je 0x14002ab4a
jmp 0x14002ab7d
mov rax, qword [rbp + 0x228]
movzx eax, word [rax + 0x32]
lea rcx, str.scripting
mov rdx, qword [rbp + 8]
cmp qword [rdx + rax*8 + 0x38], rcx
jne 0x14002a54e
jmp 0x14002a61e
cmp dword [rbp + 0x230], 0
je 0x14002a579
mov eax, dword [0x1400990cc]
add eax, 0x15
mov r8d, eax
lea rdx, str.C:UsersAdministratorDownloadsmasscan_1.3.2_srcproto_tcp.c
lea rcx, str.action__APP_CONNECTED
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
lea rdx, str.timeout
mov rcx, qword [rbp + 0x228]
call fcn.14002a3e0
mov rax, qword [rbp + 0x220]
mov eax, dword [rax + 0x1c]
mov ecx, dword [rbp + 0x248]
add ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x4000
mov qword [rbp + 0x1f8], rax
mov ecx, dword [rbp + 0x250]
xor edx, edx
mov eax, ecx
mov ecx, 0x4000
div rcx
mov rcx, qword [rbp + 0x1f8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x228]
add rcx, 0x50
mov r9, rax
mov r8d, 0x50
mov rdx, rcx
mov rax, qword [rbp + 0x220]
mov rcx, qword [rax + 0x30]
call fcn.140002600
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x74]
and eax, 0xfffffff0
or eax, 2
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x74], eax
mov rax, qword [rbp + 0x228]
mov dword [rax + 0x78], 1
jmp 0x14002ab96
cmp dword [rbp + 0x230], 1
jne 0x14002a876
mov rax, qword [rbp + 0x228]
movzx eax, word [rax + 0x32]
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + rax*8 + 0x38]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14002a7fe
lea rax, [rbp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov dword [rbp + 0x74], 0
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x48], 0
je 0x14002a686
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
call qword [rax + 0x48]
jmp 0x14002a6c5
mov rax, qword [rbp + 0x228]
movzx eax, word [rax + 0x32]
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + rax*8 + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0x228]
movzx eax, word [rax + 0x32]
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + rax*8 + 0x38]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0x54]
and eax, 0xfffffffe
mov dword [rbp + 0x54], eax
mov rax, qword [rbp + 0x228]
movzx eax, word [rax + 0x32]
lea rcx, [0x140099060]
mov rdx, qword [rbp + 8]
cmp qword [rdx + rax*8 + 0x38], rcx
jne 0x14002a6ff
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x184]
or eax, 1
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x184], eax
mov rax, qword [rbp + 0x220]
mov rax, qword [rax + 0x48]
mov eax, dword [rax + 0x30]
shr eax, 5
and eax, 1
test eax, eax
je 0x14002a71e
mov dword [rbp + 0x74], 1
mov rax, qword [rbp + 0x228]
movzx eax, word [rax + 0x32]
lea rcx, [rbp + 0x190]
mov rdx, qword [rbp + 0x228]
mov rdi, rcx
lea rsi, [rdx + 0x18]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rbp + 0x50]
mov dword [rsp + 0x20], ecx
lea r9, str.sending_payload__u_bytes_n
mov r8d, eax
lea rdx, [rbp + 0x190]
mov ecx, 4
call fcn.14002dea0
lea rdx, str.peer_payload_
mov rcx, qword [rbp + 0x228]
call fcn.14002a3e0
mov eax, dword [rbp + 0x50]
mov ecx, dword [rbp + 0x74]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x48]
mov r8d, 0x18
mov rdx, qword [rbp + 0x228]
mov rcx, qword [rbp + 0x220]
call fcn.14002d100
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x34]
add eax, dword [rbp + 0x50]
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x34], eax
mov eax, dword [rbp + 0x54]
and eax, 1
and eax, 1
shl eax, 6
mov rcx, qword [rbp + 0x228]
mov ecx, dword [rcx + 0x74]
and ecx, 0xffffffbf
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x74], eax
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x74]
and eax, 0xfffffff0
or eax, 1
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x74], eax
lea rdx, str.timeout
mov rcx, qword [rbp + 0x228]
call fcn.14002a3e0
mov eax, dword [rbp + 0x248]
inc eax
mov eax, eax
imul rax, rax, 0x4000
mov qword [rbp + 0x1f8], rax
mov ecx, dword [rbp + 0x250]
xor edx, edx
mov eax, ecx
mov ecx, 0x4000
div rcx
mov rcx, qword [rbp + 0x1f8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x228]
add rcx, 0x50
mov r9, rax
mov r8d, 0x50
mov rdx, rcx
mov rax, qword [rbp + 0x220]
mov rcx, qword [rax + 0x30]
call fcn.140002600
jmp 0x14002ab96
cmp dword [rbp + 0x230], 2
jne 0x14002a88d
mov rax, qword [rbp + 0x228]
mov dword [rax + 0x78], 2
cmp dword [rbp + 0x230], 2
jne 0x14002ab48
lea rax, [rbp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x240]
mov r8, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x228]
mov rcx, qword [rbp + 0x220]
call fcn.14002af90
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x38]
add eax, dword [rbp + 0x240]
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x38], eax
cmp dword [rbp + 0xa0], 0
je 0x14002aa14
lea rdx, str.peer_ACK_
mov rcx, qword [rbp + 0x228]
call fcn.14002a3e0
lea rdx, str.peer_payload_
mov rcx, qword [rbp + 0x228]
call fcn.14002a3e0
mov eax, dword [rbp + 0xa0]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x98]
mov r8d, 0x18
mov rdx, qword [rbp + 0x228]
mov rcx, qword [rbp + 0x220]
call fcn.14002d100
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x34]
add eax, dword [rbp + 0xa0]
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x34], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
and eax, 1
shl eax, 6
mov rcx, qword [rbp + 0x228]
mov ecx, dword [rcx + 0x74]
and ecx, 0xffffffbf
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x74], eax
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x74]
and eax, 0xfffffff0
or eax, 1
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x74], eax
mov rax, qword [rbp + 0x228]
mov dword [rax + 0x78], 3
mov rax, qword [rbp + 0x228]
movzx eax, word [rax + 0x32]
lea rcx, [rbp + 0x1d0]
mov rdx, qword [rbp + 0x228]
mov rdi, rcx
lea rsi, [rdx + 0x18]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rbp + 0xa0]
mov dword [rsp + 0x20], ecx
lea r9, str.sending_payload__u_bytes_n
mov r8d, eax
lea rdx, [rbp + 0x1d0]
mov ecx, 4
call fcn.14002dea0
jmp 0x14002aa54
lea rdx, str.peer_ACK_
mov rcx, qword [rbp + 0x228]
call fcn.14002a3e0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_recv
mov rdx, qword [rbp + 0x228]
mov rcx, qword [rbp + 0x220]
call fcn.14002d100
mov eax, dword [rbp + 0xa4]
shr eax, 1
and eax, 1
test eax, eax
je 0x14002ab48
lea rdx, str.peer_FIN_
mov rcx, qword [rbp + 0x228]
call fcn.14002a3e0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, send
mov rdx, qword [rbp + 0x228]
mov rcx, qword [rbp + 0x220]
call fcn.14002d100
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x34]
inc eax
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x34], eax
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x74]
and eax, 0xfffffff0
or eax, 4
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x74], eax
lea rdx, str.timeout
mov rcx, qword [rbp + 0x228]
call fcn.14002a3e0
mov eax, dword [rbp + 0x248]
inc eax
mov eax, eax
imul rax, rax, 0x4000
mov qword [rbp + 0x1f8], rax
mov ecx, dword [rbp + 0x250]
xor edx, edx
mov eax, ecx
mov ecx, 0x4000
div rcx
mov rcx, qword [rbp + 0x1f8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x228]
add rcx, 0x50
mov r9, rax
mov r8d, 0x50
mov rdx, rcx
mov rax, qword [rbp + 0x220]
mov rcx, qword [rax + 0x30]
call fcn.140002600
jmp 0x14002ab96
cmp dword [rbp + 0x230], 3
jne 0x14002ab7b
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 0x74]
and eax, 0xfffffff0
or eax, 2
mov rcx, qword [rbp + 0x228]
mov dword [rcx + 0x74], eax
mov rax, qword [rbp + 0x228]
mov dword [rax + 0x78], 2
jmp 0x14002ab96
lea rdx, str.TCP_state_error_n
xor ecx, ecx
call fcn.14002ddd0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
lea rcx, [rbp - 0x30]
lea rdx, [0x14007f6e0]
call fcn.140068a90
lea rsp, [rbp + 0x200]
pop rdi
pop rsi
pop rbp
ret