Function at 0x140073ae0
Capabilities:
Connect socket
Encode data using xor
Hash data using fnv
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x320
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
xor r15d, r15d
mov r14, qword [0x1402b9238]
mov qword [rbp + 0x268], r14
lea edx, [r15 + 1]
lea ecx, [rdx + 1]
lea r8d, [r15 + 6]
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
lea r8d, [r15 + 0x10]
lea rdx, [0x1402b8ec8]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1402b8488], eax
cmp eax, 0xffffffff
jne 0x140073b80
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov ebx, send
mov qword [rbp - 0x28], rbx
mov byte [rbp - 0x40], r15b
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], rbx
mov byte [rbp - 0x20], 0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], rbx
mov byte [rbp], 0
mov dword [rbp + 0x260], 0
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x20]
call fcn.1400b0040
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], rbx
mov byte [rbp + 0x60], 0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], rbx
mov byte [rbp + 0x80], 0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], rbx
mov byte [rbp + 0xa0], 0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], rbx
mov byte [rbp + 0xc0], 0
mov dword [rbp + 0x260], 0
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0xe0]
call fcn.1400b0040
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
mov qword [rbp + 0x130], r15
mov qword [rbp + 0x138], rbx
mov byte [rbp + 0x120], 0
movabs rsi, 0x7fffffffffffffff
movabs rdx, 0x8000000000000000
mov r13d, 0x1000
mov rdi, qword [rbp + 0x98]
cmp rdi, 4
jb 0x140073cca
lea rcx, [rbp + 0x80]
cmp rdi, rbx
cmova rcx, qword [rbp + 0x80]
mov qword [rbp + 0x90], 4
mov eax, dword [str.None]
mov dword [rcx], eax
mov byte [rcx + 4], 0
jmp 0x140073da1
mov rcx, rdi
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp rdi, rax
jbe 0x140073ce1
lea rax, [rdx + 0x27]
jmp 0x140073d05
lea rax, [rcx + rdi]
mov rsi, rbx
cmp rax, rbx
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x140073d24
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400746c9
mov rcx, rax
call fcn.14015ffec
test rax, rax
je 0x1400746cf
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140073d36
test rcx, rcx
je 0x140073d33
call fcn.14015ffec
mov rbx, rax
jmp 0x140073d36
mov rbx, r15
mov qword [rbp + 0x90], 4
mov qword [rbp + 0x98], rsi
mov eax, dword [str.None]
mov dword [rbx], eax
mov byte [rbx + 4], 0
cmp rdi, 0xf
jbe 0x140073d8b
lea rdx, [rdi + 1]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, r13
jb 0x140073d86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746cf
call fcn.140160338
mov qword [rbp + 0x80], rbx
movabs rsi, 0x7fffffffffffffff
mov ebx, send
mov rdi, qword [rbp - 0x28]
cmp rdi, 3
jb 0x140073dde
lea rbx, [rbp - 0x40]
cmp rdi, 0xf
cmova rbx, qword [rbp - 0x40]
mov qword [rbp - 0x30], 3
mov r8d, 3
lea rdx, [0x1401e9384]
mov rcx, rbx
call fcn.140198870
mov byte [rbx + 3], 0
jmp 0x140073eb0
mov rcx, rdi
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp rdi, rax
jbe 0x140073dff
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140073e24
lea rax, [rdi + rcx]
mov rsi, rbx
cmp rax, 0xf
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x140073e43
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400746c9
mov rcx, rax
call fcn.14015ffec
test rax, rax
je 0x1400746cf
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140073e55
test rcx, rcx
je 0x140073e52
call fcn.14015ffec
mov rbx, rax
jmp 0x140073e55
mov rbx, r15
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rsi
mov eax, dword [0x1401e9384]
mov word [rbx], ax
movzx eax, byte [reloc.WS2_32.dll_WSACleanup]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0
cmp rdi, 0xf
jbe 0x140073eac
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, r13
jb 0x140073ea7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746cf
call fcn.140160338
mov qword [rbp - 0x40], rbx
lea rcx, [r14 + 0x40]
mov rdx, qword [rcx + 0x10]
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rdx
cmp rax, 0x12
jb 0x1400746d5
cmp qword [rcx + 0x18], 0xf
jbe 0x140073edc
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], socket
lea r9, str._events_SessionId
lea rcx, [rsp + 0x40]
call fcn.14005ed20
nop
mov r8d, 0x1f
lea rdx, str.ConnectionTypeClientAppEvents
lea rcx, [rsp + 0x40]
call fcn.14005a690
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov esi, send
mov qword [rax + 0x18], rsi
mov byte [rax], 0
mov rdx, qword [rbp - 8]
cmp rdx, rsi
jbe 0x140073f65
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, r13
jb 0x140073f60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746db
call fcn.140160338
movaps xmmword [rbp - 0x20], xmm6
movaps xmmword [rbp - 0x10], xmm7
lea rcx, [rsp + 0x40]
call fcn.14005a630
mov rdi, qword [rbp + 0x18]
cmp rdi, 8
jb 0x140073fa9
lea rcx, [rbp]
cmp rdi, 0xf
cmova rcx, qword [rbp]
mov qword [rbp + 0x10], 8
mov rax, qword [str.HTTP_1.1]
mov qword [rcx], rax
mov byte [rcx + 8], 0
jmp 0x140074077
mov rcx, rdi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdi, rax
jbe 0x140073fea
mov rsi, rbx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14015ffec
test rax, rax
je 0x1400746cf
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140074020
lea rax, [rdi + rcx]
cmp rax, 0xf
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x14007400e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400746c9
jmp 0x140073fcb
test rcx, rcx
je 0x14007401d
call fcn.14015ffec
mov rbx, rax
jmp 0x140074020
mov rbx, r15
mov qword [rbp + 0x10], 8
mov qword [rbp + 0x18], rsi
mov rax, qword [str.HTTP_1.1]
mov qword [rbx], rax
mov byte [rbx + 8], 0
cmp rdi, 0xf
jbe 0x14007406e
lea rdx, [rdi + 1]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, r13
jb 0x140074069
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746cf
call fcn.140160338
mov esi, send
mov qword [rbp], rbx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.140070770
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14007408f
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400740b0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14005ea70
mov ebx, r15d
cmp qword [rsp + 0x50], rbx
jbe 0x14007411f
mov rcx, r15
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rsp + 0x50]
sub r8d, ebx
cmp r8d, r13d
cmovg r8d, r13d
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
add rdx, rcx
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x140074186
add ebx, eax
movsxd rcx, ebx
cmp rcx, qword [rsp + 0x50]
jb 0x1400740e0
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14007415a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r13
jb 0x140074155
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746e1
call fcn.140160338
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rsi
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x80]
call fcn.14005a630
test bl, bl
je 0x14007418a
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
jmp 0x140074651
mov bl, 1
jmp 0x140074121
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov ecx, 0x1027
call fcn.14015ffec
test rax, rax
je 0x1400746cf
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
mov qword [rsp + 0x40], r15
lea r13, [r15 + 0x1000]
mov qword [rsp + 0x50], r13
xor edx, edx
mov r8d, 0x1000
mov rcx, r15
call fcn.140198f10
mov qword [rsp + 0x48], r13
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xor esi, esi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov r8d, 0x1000
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.14005ea70
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x140]
call fcn.140070c50
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.140071cd0
lea rcx, [rbp + 0x1e0]
call fcn.14005a630
lea rcx, [rbp + 0x1a0]
call fcn.140071590
lea rcx, [rbp + 0x180]
call fcn.14005a630
lea rcx, [rbp + 0x160]
call fcn.14005a630
lea rcx, [rbp + 0x140]
call fcn.14005a630
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400742ad
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400742a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746e7
call fcn.140160338
mov word [rsp + 0x6e], si
mov r8d, send
mov qword [rsp + 0x70], r8
mov ecx, send
mov qword [rsp + 0x78], rcx
movsd xmm0, qword [str.Content_Length]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x1401e9228]
mov dword [rsp + 0x68], eax
movzx eax, word [0x1401e922c]
mov word [rsp + 0x6c], ax
mov byte [rsp + 0x6e], 0
lea rdx, [rsp + 0x60]
movabs r9, 0xcbf29ce484222325
mov rcx, rsi
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140074310
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xe0]
call fcn.1400c3680
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0xe8]
test rcx, rcx
cmovne rdx, rcx
cmp rdx, qword [rbp + 0xe8]
je 0x140074362
add rdx, 0x30
lea rcx, [rbp - 0x60]
call fcn.1400ade70
jmp 0x14007437a
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov eax, send
mov qword [rbp - 0x48], rax
mov byte [rbp - 0x60], 0
cmp qword [rbp + 0x130], 0
ja 0x14007451e
cmp qword [rbp - 0x50], 0
je 0x14007451e
call fcn.1401792b8
mov rdi, rax
lea rbx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rbx, qword [rbp - 0x60]
mov dword [rax], esi
mov r8d, 0xa
lea rdx, [rbp + 0x260]
mov rcx, rbx
call fcn.140177fcc
movsxd rsi, eax
cmp rbx, qword [rbp + 0x260]
je 0x1400746ed
cmp dword [rdi], 0x22
je 0x1400746fa
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
xor r14d, r14d
mov qword [rbp - 0x70], r14
test eax, eax
je 0x14007442f
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140074707
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400bf6e0
mov rdi, qword [rbp - 0x80]
add rbx, rdi
mov r8, rbx
sub r8, rdi
xor edx, edx
mov rcx, rdi
call fcn.140198f10
mov qword [rbp - 0x78], rbx
mov r14, qword [rbp - 0x70]
jmp 0x140074433
mov rdi, qword [rbp - 0x80]
xor ebx, ebx
test esi, esi
jle 0x140074462
nop dword [rax]
movsxd rdx, ebx
add rdx, rdi
mov r8d, esi
sub r8d, ebx
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140074462
add ebx, eax
cmp ebx, esi
jl 0x140074440
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
movsxd r8, ebx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14005ea70
mov rdx, qword [rbp + 0x138]
cmp rdx, 0xf
jbe 0x1400744c7
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400744c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007470d
call fcn.140160338
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0x120], xmm0
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x130], xmm1
test rdi, rdi
je 0x140074517
sub r14, rdi
mov rax, rdi
cmp r14, 0x1000
jb 0x14007450c
add r14, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074713
mov rdx, r14
mov rcx, rdi
call fcn.140160338
mov r14, qword [rbp + 0x268]
lea rcx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 0xf
cmova rcx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xd0]
cmp r8, 2
jne 0x1400745d0
lea rdx, [0x1401e93cc]
call fcn.140199350
test eax, eax
jne 0x1400745d0
lea ecx, [rax + 0x18]
call fcn.14015ffec
lea rcx, [0x140073900]
mov qword [rax], rcx
mov qword [rax + 8], r12
mov qword [rax + 0x10], r14
mov qword [rbp + 0x260], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400d00a0]
xor edx, edx
xor ecx, ecx
call fcn.140177edc
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140074724
cmp dword [rsp + 0x68], 0
je 0x140074719
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call fcn.1401407a0
test eax, eax
jne 0x140074719
mov bl, 1
jmp 0x1400745d2
xor bl, bl
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14007460d
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074608
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400746c3
call fcn.140160338
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
sub r13, r15
cmp r13, 0x1000
jb 0x140074645
add r13, 0x27
mov rcx, qword [r15 - 8]
sub r15, rcx
lea rax, [r15 - 8]
cmp rax, 0x1f
ja 0x1400746cf
mov r15, rcx
mov rdx, r13
mov rcx, r15
call fcn.140160338
nop
lea rcx, [rbp + 0x120]
call fcn.14005a630
lea rcx, [rbp + 0xe0]
call fcn.140071590
lea rcx, [rbp + 0xc0]
call fcn.14005a630
lea rcx, [rbp + 0xa0]
call fcn.14005a630
lea rcx, [rbp + 0x80]
call fcn.14005a630
nop
lea rcx, [rbp + 0x60]
call fcn.14005a630
lea rcx, [rbp + 0x20]
call fcn.140071590
lea rcx, [rbp]
call fcn.14005a630
lea rcx, [rbp - 0x20]
call fcn.14005a630
lea rcx, [rbp - 0x40]
call fcn.14005a630
movzx eax, bl
jmp 0x140073b5b
call fcn.1401753e4
nop
call fcn.14000d100
int3
call fcn.1401753e4
int3
call fcn.140043330
nop
call fcn.1401753e4
nop
call fcn.1401753e4
nop
call fcn.1401753e4
nop
lea rcx, str.invalid_stoi_argument
call fcn.14013de58
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.14013dea0
int3
call fcn.1400b3c00
nop
call fcn.1401753e4
nop
call fcn.1401753e4
nop
mov ecx, 1
call fcn.14013f140
nop
mov dword [rsp + 0x68], esi
mov ecx, 6
call fcn.14013f140
int3