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

Disassembly:
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x130
mov rax, qword [0x1400c7008]
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 0x140025335
jle 0x1400252e5
xor r15b, r15b
cmp r12d, 0x100
jg 0x140025362
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 0x14002510d
mov ebp, r13d
nop word [rax + rax]
movzx ecx, byte [rsp + rbp + 0x20]
test cl, cl
je 0x140025105
mov edx, 0x1080
call fcn.1400038a0
test al, al
je 0x140025105
mov r8, qword [rbx + 0x10]
movzx r9d, byte [rsp + rbp + 0x20]
test r8, r8
je 0x1400250f1
movsxd rdi, dword [rbx + 8]
test edi, edi
js 0x1400250f1
movsxd rcx, dword [rbx + 4]
mov edx, dword [rbx]
lea eax, [rcx + rdi]
cmp eax, edx
jge 0x1400250f3
lea eax, [rdi + 1]
add rcx, r8
mov dword [rbx + 8], eax
mov rax, rdi
add rax, rcx
je 0x1400250f3
mov byte [rax], r9b
jmp 0x140025105
mov edx, dword [rbx]
test edx, edx
jle 0x140025101
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 0x1400250a0
mov rcx, qword [rsi + 0x2180]
call fcn.140003c30
mov rcx, qword [rsi + 0x2178]
call fcn.140027ea0
mov r14, qword [rsp + 0x178]
mov rdx, rax
test rax, rax
je 0x14002525d
lea rbp, [0x14009c9fc]
mov r9, qword [rsi + 0x2190]
test r9, r9
je 0x14002519f
mov rcx, r13
nop
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rcx + rbp - 1]
jne 0x14002516d
cmp rcx, 4
jne 0x140025150
mov rcx, rsi
call fcn.140022720
jmp 0x1400251a7
test rdx, rdx
je 0x1400251a7
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rdx + rdi], r13b
jne 0x140025180
lea r8, [rdi + 1]
mov rcx, r9
call fcn.140003ca0
test rax, rax
je 0x1400251a7
mov dword [rax + 8], edi
jmp 0x1400251a7
mov rcx, rsi
call fcn.140024cc0
cmp byte [rsi + 0x2170], r13b
jne 0x14002525d
mov rbx, qword [rsi + 0x2178]
movsxd rax, dword [rbx]
test eax, eax
jle 0x1400251cd
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 0x1400251ec
mov eax, dword [rbx + 0x20]
test eax, eax
js 0x1400251ec
movsxd rdx, dword [rbx + 0x1c]
mov edi, eax
add rdx, rcx
jmp 0x14002520c
mov edi, r13d
test rcx, rcx
je 0x140025206
mov eax, r13d
cmp dword [rbx + 0x20], r13d
jl 0x140025206
movsxd rdx, dword [rbx + 0x1c]
add rdx, rcx
jmp 0x14002520c
mov rdx, r13
mov eax, r13d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002522b
cmp eax, 0xf4240
jae 0x14002522b
cmp eax, dword [rbx]
jg 0x14002522b
movsxd r8, eax
mov dword [rbx + 8], edi
call sub.VCRUNTIME140.dll_memcpy
movsxd rax, dword [rbx + 0x18]
test eax, eax
jle 0x14002523e
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.140027ea0
mov rdx, rax
test rax, rax
jne 0x140025140
mov rbp, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x168]
cmp byte [rsi + 0x2170], r13b
je 0x140025288
xor edx, edx
mov rcx, rsi
call fcn.140024a40
mov r12d, r13d
jmp 0x14002533f
test r15b, r15b
je 0x1400252ae
cmp byte [rsi + 0xf1], r13b
je 0x1400252ae
cmp byte [rsi + 0x2171], r13b
jne 0x1400252ae
lea rdx, str.ENTER_PASSWORD:
mov rcx, rsi
call fcn.140021a50
cmp qword [rsi + 0x2128], 0xffffffffffffffff
je 0x14002533f
mov rax, qword [rsi + 0x2180]
test rax, rax
je 0x1400252d9
cmp qword [rax], r13
je 0x1400252d9
mov dword [rsi + 0x2118], 3
jmp 0x14002533f
mov dword [rsi + 0x2118], 2
jmp 0x14002533f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x2733
je 0x14002533f
cmp eax, 0x2726
je 0x14002533f
cmp dword [0x1400cfe94], 3
jb 0x140025335
mov ecx, 0x28000003
call fcn.14000e3d0
test al, al
je 0x140025335
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.14000e000
xor edx, edx
mov rcx, rsi
call fcn.140024a40
mov eax, r12d
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140088150
add rsp, 0x130
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
lea r8, str.len____int__sizeof_buf_
mov edx, 0x8d9
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpnmanage.c
call fcn.14000e4c0
int3