Function at 0x1401661c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
lea rdi, [rsp + 0x50]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100]
mov eax, dword [rsp + 0x108]
add eax, 2
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x74], 0
cmp qword [rsp + 0x118], 0
jne 0x14016622a
mov eax, dword [rsp + 0x110]
jmp 0x140166b2c
mov rax, qword [rsp + 0x118]
mov rcx, qword [rax + 0x3d8]
call fcn.14013a810
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140166263
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x90], 0
jne 0x14016627c
mov rcx, qword [rsp + 0x118]
call fcn.140162040
mov eax, dword [rsp + 0x110]
jmp 0x140166b2c
cmp dword [rsp + 0x110], 2
jge 0x140166292
mov eax, dword [rsp + 0x108]
jmp 0x140166b2c
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
mov rax, qword [rax + rcx]
mov qword [rsp + 0x90], rax
movsxd rax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov ecx, 2
imul rcx, rcx, 0
movzx ecx, word [rax + rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x5c], ax
movzx eax, word [rsp + 0x5c]
and eax, 0x8000
test eax, eax
je 0x1401662fb
mov dword [rsp + 0xb4], 1
jmp 0x140166306
mov dword [rsp + 0xb4], 0
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x68], eax
movzx eax, word [rsp + 0x5c]
and eax, 0xf00
sar eax, 8
mov byte [rsp + 0x6c], al
movzx eax, word [rsp + 0x5c]
and eax, 0x7f
movzx eax, al
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x7e
jne 0x14016638e
cmp dword [rsp + 0x110], 4
jge 0x14016634e
mov eax, dword [rsp + 0x108]
jmp 0x140166b2c
movsxd rax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov ecx, 2
imul rcx, rcx, 1
movzx ecx, word [rax + rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x54]
add eax, 2
mov dword [rsp + 0x54], eax
jmp 0x140166430
cmp dword [rsp + 0x58], 0x7f
jne 0x140166430
cmp dword [rsp + 0x110], 0xa
jge 0x1401663b1
mov eax, dword [rsp + 0x108]
jmp 0x140166b2c
movsxd rax, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
lea rax, [rcx + rax + 2]
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1404105c0
mov rcx, qword [rsp + 0xa8]
call fcn.1401391b0
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0x7fffffff
jbe 0x14016641a
mov rcx, qword [rsp + 0x118]
call fcn.140162040
mov eax, dword [rsp + 0x110]
jmp 0x140166b2c
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x54]
add eax, 8
mov dword [rsp + 0x54], eax
movzx eax, word [rsp + 0x5c]
and eax, 0x80
movzx eax, al
test eax, eax
je 0x14016644e
mov dword [rsp + 0xb8], 4
jmp 0x140166459
mov dword [rsp + 0xb8], 0
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
add eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x110], eax
jge 0x140166481
mov eax, dword [rsp + 0x108]
jmp 0x140166b2c
movzx eax, word [rsp + 0x5c]
and eax, 0x80
movzx eax, al
test eax, eax
jne 0x1401664a0
mov qword [rsp + 0xc0], 0
jmp 0x1401664bb
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14016655f
mov eax, dword [rsp + 0x54]
add eax, 4
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], 0
jmp 0x1401664f3
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x50], eax
jge 0x14016655f
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x100]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0x50]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
cdqe
mov rcx, qword [rsp + 0x60]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0xc8]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x54]
add edx, ecx
mov ecx, edx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x100]
mov byte [rdx + rcx], al
jmp 0x1401664e9
movzx eax, byte [rsp + 0x6c]
cmp eax, 8
jge 0x140166a52
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x20], 0
jne 0x140166645
movzx eax, byte [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 8], eax
mov dword [rsp + 0x74], 0
cmp dword [rsp + 0x68], 0
jne 0x1401665ab
mov dword [rsp + 0xcc], 0xa
jmp 0x1401665b6
mov dword [rsp + 0xcc], ntohs
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x58]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x38], rcx
mov ecx, dword [rsp + 0xcc]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x118]
mov r8, qword [rax + 0x3b0]
xor edx, edx
mov rcx, qword [rsp + 0x118]
mov rax, qword [rsp + 0x88]
call qword [rax + 0x90]
nop
jmp 0x140166a4d
movzx eax, byte [rsp + 0x6c]
test eax, eax
je 0x14016665e
movzx eax, byte [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 8], eax
cmp dword [rsp + 0x68], 0
je 0x140166723
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x18], 0
jne 0x140166723
mov rax, qword [rsp + 0x90]
movsx eax, byte [rax + 0x24]
test eax, eax
jne 0x140166723
mov dword [rsp + 0x74], 0
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x58]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x118]
mov r8, qword [rax + 0x3b0]
xor edx, edx
mov rcx, qword [rsp + 0x118]
mov rax, qword [rsp + 0x88]
call qword [rax + 0x90]
nop
jmp 0x140166a4d
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x18]
add eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
cmp eax, dword [rcx + 0x1c]
jl 0x1401668f4
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x20]
cmp dword [rax + 0x1c], ecx
jne 0x14016680a
mov rax, qword [rsp + 0x90]
mov byte [rax + 0x24], 1
mov dword [rsp + 0x74], 0
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xa
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x90]
mov r9, qword [rax + 0x10]
mov rax, qword [rsp + 0x118]
mov r8, qword [rax + 0x3b0]
xor edx, edx
mov rcx, qword [rsp + 0x118]
mov rax, qword [rsp + 0x88]
call qword [rax + 0x90]
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x18], 0
jmp 0x1401668f4
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x1c]
shl eax, 1
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x20]
cmp dword [rax + 0x1c], ecx
jle 0x140166850
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x20]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x1c]
mov dword [rsp + 0x20], 0x59e
lea r9, [0x140561c00]
mov r8d, 1
mov rdx, rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x10]
call fcn.1403bab60
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xd0]
mov qword [rax + 0x10], rcx
cmp qword [rsp + 0xd0], 0
jne 0x1401668f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x59e
lea rdx, [0x140561c50]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x59e
lea rdx, [0x140561ca0]
lea rcx, [0x140561ce8]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x100]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x90]
mov r8d, dword [r8 + 0x18]
mov edx, dword [rdx + 0x1c]
sub edx, r8d
movsxd rdx, edx
mov r8, qword [rsp + 0x90]
movsxd r8, dword [r8 + 0x18]
mov r9, qword [rsp + 0x90]
add r8, qword [r9 + 0x10]
mov qword [rsp + 0xd8], r8
mov r9, rax
mov r8, rcx
mov rax, qword [rsp + 0xd8]
mov rcx, rax
call fcn.14015f0e0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x18]
add eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x18], eax
cmp dword [rsp + 0x68], 0
je 0x140166a4d
mov rax, qword [rsp + 0x90]
movsx eax, byte [rax + 0x24]
test eax, eax
jne 0x1401669a1
mov dword [rsp + 0xe0], 0
jmp 0x1401669ac
mov dword [rsp + 0xe0], ntohs
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x90]
mov r9, qword [rax + 0x10]
mov rax, qword [rsp + 0x118]
mov r8, qword [rax + 0x3b0]
xor edx, edx
mov rcx, qword [rsp + 0x118]
mov rax, qword [rsp + 0x88]
call qword [rax + 0x90]
mov rax, qword [rsp + 0x90]
mov byte [rax + 0x24], 0
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x18], 0
jmp 0x140166b20
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0xe4], al
cmp byte [rsp + 0xe4], 8
je 0x140166a81
cmp byte [rsp + 0xe4], 9
je 0x140166a94
cmp byte [rsp + 0xe4], 0xa
je 0x140166af1
jmp 0x140166b20
mov rcx, qword [rsp + 0x118]
call fcn.140162040
nop
jmp 0x140166b20
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x30], 0
je 0x140166ac6
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x40]
mov rcx, qword [rsp + 0x118]
mov rax, qword [rsp + 0x90]
call qword [rax + 0x30]
test eax, eax
jne 0x140166aef
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rsp + 0x118]
call fcn.140163a60
nop
jmp 0x140166b20
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x38], 0
je 0x140166b20
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x40]
mov rcx, qword [rsp + 0x118]
mov rax, qword [rsp + 0x90]
call qword [rax + gethostname]
nop
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14037c300
mov rax, rdi
add rsp, 0xf0
pop rdi
ret