Function at 0x140004f70
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rbp + 0x168], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_105]
lea rcx, [0x140353cd0]
cmp rcx, rbx
je 0x140004fd8
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140004fcf
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
call fcn.1400070d0
mov ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140005044
lea rdx, [rsp + 0x58]
call fcn.1400055d0
movzx ecx, byte [rax + 9]
test cl, cl
je 0x140005026
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor byte [rax + 6], 0x3e
xor byte [rax + 7], 0x3f
xor byte [rax + 8], 0x40
xor cl, 0x41
mov byte [rax + 9], cl
xor r9d, r9d
lea r8, [0x1402f9106]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
mov edi, 2
lea r8d, [rdx + 5]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x14035a9c8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400050ae
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400050a1
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000509c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400055c6
mov rcx, r8
call fcn.140247544
xor r14d, r14d
mov byte [rbx], r14b
xor al, al
jmp 0x14000558a
mov dword [rsp + 0x68], 1
mov r15d, 4
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x68]
mov edx, 0xffff
lea r8d, [r15 + 4]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400050f5
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140005067
mov ecx, 0x6959
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x4e], ax
mov word [rbp - 0x50], di
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140005115
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x4c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x50]
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000514c
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140005067
mov dword [rbp + 0x160], 0x474e4950
mov byte [rbp + 0x164], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea rax, [rbp + 0x160]
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rax + r8], r14b
jne 0x140005183
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x38]
call fcn.140002ef0
nop
mov r8d, 1
lea rdx, [0x1402f9154]
lea rcx, [rsp + 0x38]
call fcn.1400046b0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140004590
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140005203
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140247544
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x70]
mov rax, rsi
cmp qword [rbp - 0x78], 0x10
jb 0x140005240
mov rdx, qword [rsp + 0x70]
nop word [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140005230
jmp 0x14000524e
inc rax
cmp byte [rcx + rax], 0
jne 0x140005240
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov r8d, eax
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400052cc
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [rsp + 0x58]
call fcn.1400055f0
movzx ecx, byte [rax + 9]
test cl, cl
je 0x1400052ae
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor byte [rax + 6], 0x3e
xor byte [rax + 7], 0x3f
xor byte [rax + 8], 0x40
xor cl, 0x41
mov byte [rax + 9], cl
xor r9d, r9d
lea r8, [0x1402f9106]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 3
call fcn.140247a64
mov rdi, rax
xor r9d, r9d
mov r8d, r15d
mov rdx, rax
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140005394
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140005342
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000533d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005530
call fcn.140247544
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000538d
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140005388
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400055c6
mov rcx, r8
call fcn.140247544
xor al, al
jmp 0x140005587
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x1400053a6
cmp rax, 4
cmovb r15, rax
mov r8, r15
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140002ef0
mov eax, dword [str.hvt_]
mov dword [rbp + 0x160], eax
movzx eax, byte [0x1402f91f0]
mov cl, 0x50
mov byte [rbp + 0x160], cl
xor byte [rbp + 0x161], 0x39
xor byte [rbp + 0x162], 0x3a
xor byte [rbp + 0x163], 0x3b
xor al, 0x3c
mov byte [rbp + 0x164], al
lea rax, [rbp + 0x160]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140005405
lea r12, [rbp - 0x70]
mov r13, qword [rbp - 0x58]
cmp r13, 0x10
setae byte [rsp + 0x30]
mov r15, qword [rbp - 0x70]
cmovae r12, r15
mov rax, qword [rbp - 0x60]
cmp rsi, rax
ja 0x140005499
test rsi, rsi
je 0x1400054ef
sub rax, rsi
lea r13, [rax + r12]
movsx edx, cl
lea r8, [r13 + 1]
sub r8, r12
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x140005495
nop word [rax + rax]
mov r8, rsi
lea rdx, [rbp + 0x160]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400054e2
inc rdi
lea r8, [r13 + 1]
sub r8, rdi
mov cl, 0x50
movsx edx, cl
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
jne 0x140005460
mov r13, qword [rbp - 0x58]
xor dil, dil
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_505]
cmp byte [rsp + 0x30], 0
je 0x1400054fd
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400054f4
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400054f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rdi, r12
cmp rdi, 0xffffffffffffffff
je 0x140005495
mov r13, qword [rbp - 0x58]
mov dil, 1
jmp 0x14000549c
mov rcx, r15
call fcn.140247544
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14000553c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005537
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005537
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140247544
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140005583
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000557e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400055c6
mov rcx, r8
call fcn.140247544
movzx eax, dil
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp + 0x168]
xor rcx, rsp
call fcn.1402474e0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3