Function at 0x14000ebd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
mov eax, 0x2078
call fcn.14003fab0
sub rsp, rax
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x2058], rax
mov qword [rsp + 0x20a0], rdi
lea rdx, [rsp + 0x30]
mov rsi, rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rcx + 0x18]
xor r9d, r9d
mov qword [rsp + 0x2070], r13
mov r8d, 0x2008
mov qword [rsp + 0x2060], r15
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [rsi + 0x18]
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov r13d, eax
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
mov r15d, dword [0x1400bd600]
xor r8d, r8d
mov rbx, qword [0x1400bd610]
mov edi, 0xf58
cmp r15d, 4
jge 0x14000ec68
test rbx, rbx
je 0x14000ee6d
mov qword [rsp + 0x20a8], r12
lea rdx, [0x140087cce]
lea r9, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
nop
movzx eax, byte [rdx - 1]
lea rcx, [rdx - 1]
cmp al, 0x2f
je 0x14000ec9b
cmp al, 0x5c
je 0x14000ec9b
inc r8
mov rdx, rcx
cmp rcx, r9
jne 0x14000ec80
mov eax, reloc.WS2_32.dll_select
lea rcx, [rsp + 0x2040]
cmp r8, rax
cmova r8, rax
lea r12, [r8 + 5]
call fcn.14004c3b0
lea rsi, [rsp + 0x2040]
mov r8d, 0x18
add rsi, r12
sub r8, r12
mov rcx, rsi
mov edx, 0x20
call fcn.14004ca60
nop dword [rax]
mov eax, 0xcccccccd
lea rsi, [rsi - 1]
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [rsi], dil
mov edi, edx
test edx, edx
jg 0x14000ece0
mov byte [rsi - 1], 0x3a
test rbx, rbx
je 0x14000ee13
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp byte [rbx + r9], 0
jne 0x14000ed20
mov qword [rsp + 0x2098], rbp
mov qword [rsp + 0x2068], r14
nop word [rax + rax]
mov rsi, rbx
test r9, r9
je 0x14000edfd
mov rdi, r9
mov rax, rbx
cmp byte [rax], 0x2c
lea rbx, [rax + 1]
je 0x14000eebb
mov rax, rbx
sub rbx, rsi
cmp rbx, r9
jb 0x14000ed52
xor ebp, ebp
lea rbx, [rsi + r9]
xor r14d, r14d
mov r8, rdi
mov rcx, rsi
lea edx, [r14 + 0x3d]
call fcn.14004d030
mov r11, rax
mov r9, rbp
test rax, rax
je 0x14000eda2
mov r14, rdi
inc r11
sub r14, r11
mov rdi, r11
add r14, rsi
sub rdi, rsi
dec rdi
test rbx, rbx
je 0x14000edfd
cmp r12, rdi
jb 0x14000ed40
xor ecx, ecx
test rdi, rdi
je 0x14000ede2
lea r10, [rsp + 0x2040]
sub r10, rsi
cmp rcx, rdi
jae 0x14000ede2
lea rax, [rsi + rcx]
movzx edx, byte [r10 + rax]
cmp dl, byte [rax]
jl 0x14000eed9
jg 0x14000eecf
inc rcx
cmp rcx, rdi
jb 0x14000edc3
xor eax, eax
test eax, eax
jne 0x14000ed40
test r14, r14
je 0x14000ed40
movsx r15d, byte [r11]
sub r15d, 0x30
mov r14, qword [rsp + 0x2068]
mov rbp, qword [rsp + 0x2098]
cmp r15d, 4
jl 0x14000ee60
mov rax, qword [0x1400bd608]
test rax, rax
jne 0x14000ee2e
lea ecx, [rax + 2]
call fcn.140052dd4
mov qword [0x1400bd608], rax
mov edx, 1
mov dword [0x1400ab020], 4
mov r9, rax
lea rcx, [rsp + 0x2040]
lea r8d, [rdx + 0x17]
call fcn.1400547c0
mov edx, r13d
lea rcx, str.read__d_from_ctl_socket
call fcn.140003d70
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x20a8]
mov r15, qword [rsp + 0x2060]
cmp r13d, 8
mov r13, qword [rsp + 0x2070]
mov rdi, qword [rsp + 0x20a0]
jl 0x14000eee3
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14000eee3
mov rbx, qword [rsi]
test rbx, rbx
je 0x14000eee3
nop dword [rax]
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rbx
call rax
mov rbx, qword [rbx]
test rbx, rbx
je 0x14000eee3
mov rax, qword [rsp + 0x30]
jmp 0x14000eea0
mov rdi, rax
mov rbp, rsi
sub rdi, rsi
sub rbp, rbx
add rbp, r9
jmp 0x14000ed70
mov eax, 1
jmp 0x14000ede4
mov eax, 0xffffffff
jmp 0x14000ede4
mov rcx, qword [rsp + 0x2058]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x2078
pop rsi
pop rbx
ret