Function at 0x1400257d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x130
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x2128]
xor r9d, r9d
mov r8d, 0x100
call qword [sym.imp.WS2_32.dll_recv]
movsxd r12, eax
test eax, eax
je 0x140025b08
jle 0x140025aa5
xor r15b, r15b
cmp r12d, 0x100
jg 0x140025b35
mov qword [rsp + 0x168], rbx
xor r13d, r13d
mov rbx, qword [rsi + 0x2178]
mov qword [rsp + 0x170], rbp
mov qword [rsp + 0x178], r14
test eax, eax
jle 0x1400258cd
mov ebp, r13d
nop word [rax + rax]
movzx ecx, byte [rsp + rbp + 0x20]
test cl, cl
je 0x1400258c5
mov edx, 0x1080
call fcn.140003a80
test al, al
je 0x1400258c5
mov r8, qword [rbx + 0x10]
movzx r9d, byte [rsp + rbp + 0x20]
test r8, r8
je 0x1400258b1
movsxd rdi, dword [rbx + 8]
test edi, edi
js 0x1400258b1
movsxd rcx, dword [rbx + 4]
mov edx, dword [rbx]
lea eax, [rcx + rdi]
cmp eax, edx
jge 0x1400258b3
lea eax, [rdi + 1]
add rcx, r8
mov dword [rbx + 8], eax
mov rax, rdi
add rax, rcx
je 0x1400258b3
mov byte [rax], r9b
jmp 0x1400258c5
mov edx, dword [rbx]
test edx, edx
jle 0x1400258c1
movsxd rcx, edx
mov rdi, r8
xor eax, eax
rep stosb byte [rdi], al
mov qword [rbx + 4], r13
inc rbp
cmp rbp, r12
jl 0x140025860
mov rcx, qword [rsi + 0x2180]
call fcn.140003e10
mov rcx, qword [rsi + 0x2178]
call fcn.1400285c0
mov r14, qword [rsp + 0x178]
mov rdx, rax
test rax, rax
je 0x140025a1d
lea rbp, [0x14009f45c]
mov r9, qword [rsi + 0x2190]
test r9, r9
je 0x14002595f
mov rcx, r13
nop
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rcx + rbp - 1]
jne 0x14002592d
cmp rcx, 4
jne 0x140025910
mov rcx, rsi
call fcn.140022e80
jmp 0x140025967
test rdx, rdx
je 0x140025967
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rdx + rdi], r13b
jne 0x140025940
lea r8, [rdi + 1]
mov rcx, r9
call fcn.140003e80
test rax, rax
je 0x140025967
mov dword [rax + 8], edi
jmp 0x140025967
mov rcx, rsi
call fcn.140025470
cmp byte [rsi + 0x2170], r13b
jne 0x140025a1d
mov rbx, qword [rsi + 0x2178]
movsxd rax, dword [rbx]
test eax, eax
jle 0x14002598d
mov rdi, qword [rbx + 0x10]
mov rcx, rax
xor eax, eax
rep stosb byte [rdi], al
mov qword [rbx + 4], r13
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400259ac
mov eax, dword [rbx + 0x20]
test eax, eax
js 0x1400259ac
movsxd rdx, dword [rbx + 0x1c]
mov edi, eax
add rdx, rcx
jmp 0x1400259cc
mov edi, r13d
test rcx, rcx
je 0x1400259c6
mov eax, r13d
cmp dword [rbx + 0x20], r13d
jl 0x1400259c6
movsxd rdx, dword [rbx + 0x1c]
add rdx, rcx
jmp 0x1400259cc
mov rdx, r13
mov eax, r13d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400259eb
cmp eax, 0xf4240
jae 0x1400259eb
cmp eax, dword [rbx]
jg 0x1400259eb
movsxd r8, eax
mov dword [rbx + 8], edi
call sub.VCRUNTIME140.dll_memcpy
movsxd rax, dword [rbx + 0x18]
test eax, eax
jle 0x1400259fe
mov rdi, qword [rbx + 0x28]
mov rcx, rax
xor eax, eax
rep stosb byte [rdi], al
mov qword [rbx + 0x1c], r13
mov r15b, 1
mov rcx, qword [rsi + 0x2178]
call fcn.1400285c0
mov rdx, rax
test rax, rax
jne 0x140025900
mov rbp, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x168]
cmp byte [rsi + 0x2170], r13b
je 0x140025a48
xor edx, edx
mov rcx, rsi
call fcn.1400251f0
mov r12d, r13d
jmp 0x140025b12
test r15b, r15b
je 0x140025a6e
cmp byte [rsi + 0xf1], r13b
je 0x140025a6e
cmp byte [rsi + 0x2171], r13b
jne 0x140025a6e
lea rdx, str.ENTER_PASSWORD:
mov rcx, rsi
call fcn.140022150
cmp qword [rsi + 0x2128], 0xffffffffffffffff
je 0x140025b12
mov rax, qword [rsi + 0x2180]
test rax, rax
je 0x140025a99
cmp qword [rax], r13
je 0x140025a99
mov dword [rsi + 0x2118], 3
jmp 0x140025b12
mov dword [rsi + 0x2118], 2
jmp 0x140025b12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x140025ac0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
cmp edi, 0xb
jne 0x140025ace
jmp 0x140025b12
cmp eax, 0x2733
je 0x140025b12
cmp eax, 0x2726
je 0x140025b12
cmp dword [0x1400d3ed4], 3
jb 0x140025b08
mov ecx, 0x28000003
call fcn.14000ec70
test al, al
je 0x140025b08
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea r8, str.recv
mov ecx, 0x28000003
mov r9, rax
lea rdx, str.MANAGEMENT:_TCP__s_error:__s
call fcn.14000e820
xor edx, edx
mov rcx, rsi
call fcn.1400251f0
mov eax, r12d
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14008aca0
add rsp, 0x130
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
lea r8, str.len____int__sizeof_buf_
mov edx, 0x8da
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpnmanage.c
call fcn.14000ed60
int3