Function at 0x1400783f0
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 [0x1402b78d8]
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, [0x1402b7700]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1402b74d8], eax
cmp eax, 0xffffffff
jne 0x140078490
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, recvfrom
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.1400b1e40
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.1400b1e40
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 0x1400785da
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 0x1400786b1
mov rcx, rdi
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp rdi, rax
jbe 0x1400785f1
lea rax, [rdx + 0x27]
jmp 0x140078615
lea rax, [rcx + rdi]
mov rsi, rbx
cmp rax, rbx
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x140078634
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140078fd9
mov rcx, rax
call fcn.140160290
test rax, rax
je 0x140078fdf
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140078646
test rcx, rcx
je 0x140078643
call fcn.140160290
mov rbx, rax
jmp 0x140078646
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 0x14007869b
lea rdx, [rdi + 1]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, r13
jb 0x140078696
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078fdf
call fcn.1401605dc
mov qword [rbp + 0x80], rbx
movabs rsi, 0x7fffffffffffffff
mov ebx, recvfrom
mov rdi, qword [rbp - 0x28]
cmp rdi, 3
jb 0x1400786ee
lea rbx, [rbp - 0x40]
cmp rdi, 0xf
cmova rbx, qword [rbp - 0x40]
mov qword [rbp - 0x30], 3
mov r8d, 3
lea rdx, [0x1401ec284]
mov rcx, rbx
call fcn.140198930
mov byte [rbx + 3], 0
jmp 0x1400787c0
mov rcx, rdi
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp rdi, rax
jbe 0x14007870f
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140078734
lea rax, [rdi + rcx]
mov rsi, rbx
cmp rax, 0xf
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x140078753
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140078fd9
mov rcx, rax
call fcn.140160290
test rax, rax
je 0x140078fdf
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140078765
test rcx, rcx
je 0x140078762
call fcn.140160290
mov rbx, rax
jmp 0x140078765
mov rbx, r15
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rsi
mov eax, dword [0x1401ec284]
mov word [rbx], ax
movzx eax, byte [0x1401ec286]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0
cmp rdi, 0xf
jbe 0x1400787bc
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, r13
jb 0x1400787b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078fdf
call fcn.1401605dc
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 0x140078fe5
cmp qword [rcx + 0x18], 0xf
jbe 0x1400787ec
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.14005ecd0
nop
mov r8d, 0x1f
lea rdx, str.ConnectionTypeClientAppEvents
lea rcx, [rsp + 0x40]
call fcn.14005a640
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov esi, recvfrom
mov qword [rax + 0x18], rsi
mov byte [rax], 0
mov rdx, qword [rbp - 8]
cmp rdx, rsi
jbe 0x140078875
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, r13
jb 0x140078870
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078feb
call fcn.1401605dc
movaps xmmword [rbp - 0x20], xmm6
movaps xmmword [rbp - 0x10], xmm7
lea rcx, [rsp + 0x40]
call fcn.14005a5e0
mov rdi, qword [rbp + 0x18]
cmp rdi, 8
jb 0x1400788b9
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 0x140078987
mov rcx, rdi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdi, rax
jbe 0x1400788fa
mov rsi, rbx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140160290
test rax, rax
je 0x140078fdf
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140078930
lea rax, [rdi + rcx]
cmp rax, 0xf
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x14007891e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140078fd9
jmp 0x1400788db
test rcx, rcx
je 0x14007892d
call fcn.140160290
mov rbx, rax
jmp 0x140078930
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 0x14007897e
lea rdx, [rdi + 1]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, r13
jb 0x140078979
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078fdf
call fcn.1401605dc
mov esi, recvfrom
mov qword [rbp], rbx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.140075070
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14007899f
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 0x1400789c0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14005ea20
mov ebx, r15d
cmp qword [rsp + 0x50], rbx
jbe 0x140078a2f
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 0x140078a96
add ebx, eax
movsxd rcx, ebx
cmp rcx, qword [rsp + 0x50]
jb 0x1400789f0
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140078a6a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r13
jb 0x140078a65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078ff1
call fcn.1401605dc
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rsi
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x80]
call fcn.14005a5e0
test bl, bl
je 0x140078a9a
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
jmp 0x140078f61
mov bl, 1
jmp 0x140078a31
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov ecx, 0x1027
call fcn.140160290
test rax, rax
je 0x140078fdf
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.140198fd0
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.14005ea20
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x140]
call fcn.140075550
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.1400765d0
lea rcx, [rbp + 0x1e0]
call fcn.14005a5e0
lea rcx, [rbp + 0x1a0]
call fcn.140075e90
lea rcx, [rbp + 0x180]
call fcn.14005a5e0
lea rcx, [rbp + 0x160]
call fcn.14005a5e0
lea rcx, [rbp + 0x140]
call fcn.14005a5e0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140078bbd
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140078bb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078ff7
call fcn.1401605dc
mov word [rsp + 0x6e], si
mov r8d, recvfrom
mov qword [rsp + 0x70], r8
mov ecx, recvfrom
mov qword [rsp + 0x78], rcx
movsd xmm0, qword [str.Content_Length]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x1401ec130]
mov dword [rsp + 0x68], eax
movzx eax, word [0x1401ec134]
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 0x140078c20
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xe0]
call fcn.1400c3c00
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0xe8]
test rcx, rcx
cmovne rdx, rcx
cmp rdx, qword [rbp + 0xe8]
je 0x140078c72
add rdx, 0x30
lea rcx, [rbp - 0x60]
call fcn.140061500
jmp 0x140078c8a
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov eax, recvfrom
mov qword [rbp - 0x48], rax
mov byte [rbp - 0x60], 0
cmp qword [rbp + 0x130], 0
ja 0x140078e2e
cmp qword [rbp - 0x50], 0
je 0x140078e2e
call fcn.1401775b8
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.1401771e8
movsxd rsi, eax
cmp rbx, qword [rbp + 0x260]
je 0x140078ffd
cmp dword [rdi], 0x22
je 0x14007900a
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
xor r14d, r14d
mov qword [rbp - 0x70], r14
test eax, eax
je 0x140078d3f
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140079017
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400c04c0
mov rdi, qword [rbp - 0x80]
add rbx, rdi
mov r8, rbx
sub r8, rdi
xor edx, edx
mov rcx, rdi
call fcn.140198fd0
mov qword [rbp - 0x78], rbx
mov r14, qword [rbp - 0x70]
jmp 0x140078d43
mov rdi, qword [rbp - 0x80]
xor ebx, ebx
test esi, esi
jle 0x140078d72
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 0x140078d72
add ebx, eax
cmp ebx, esi
jl 0x140078d50
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.14005ea20
mov rdx, qword [rbp + 0x138]
cmp rdx, 0xf
jbe 0x140078dd7
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140078dd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007901d
call fcn.1401605dc
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0x120], xmm0
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x130], xmm1
test rdi, rdi
je 0x140078e27
sub r14, rdi
mov rax, rdi
cmp r14, 0x1000
jb 0x140078e1c
add r14, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140079023
mov rdx, r14
mov rcx, rdi
call fcn.1401605dc
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 0x140078ee0
lea rdx, [0x1401ec2cc]
call fcn.140199410
test eax, eax
jne 0x140078ee0
lea ecx, [rax + 0x18]
call fcn.140160290
lea rcx, [0x140078210]
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, [0x1400d0210]
xor edx, edx
xor ecx, ecx
call fcn.14017636c
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140079034
cmp dword [rsp + 0x68], 0
je 0x140079029
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call fcn.14013ecf8
test eax, eax
jne 0x140079029
mov bl, 1
jmp 0x140078ee2
xor bl, bl
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140078f1d
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140078f18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078fd3
call fcn.1401605dc
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], recvfrom
mov byte [rbp - 0x60], 0
sub r13, r15
cmp r13, 0x1000
jb 0x140078f55
add r13, 0x27
mov rcx, qword [r15 - 8]
sub r15, rcx
lea rax, [r15 - 8]
cmp rax, 0x1f
ja 0x140078fdf
mov r15, rcx
mov rdx, r13
mov rcx, r15
call fcn.1401605dc
nop
lea rcx, [rbp + 0x120]
call fcn.14005a5e0
lea rcx, [rbp + 0xe0]
call fcn.140075e90
lea rcx, [rbp + 0xc0]
call fcn.14005a5e0
lea rcx, [rbp + 0xa0]
call fcn.14005a5e0
lea rcx, [rbp + 0x80]
call fcn.14005a5e0
nop
lea rcx, [rbp + 0x60]
call fcn.14005a5e0
lea rcx, [rbp + 0x20]
call fcn.140075e90
lea rcx, [rbp]
call fcn.14005a5e0
lea rcx, [rbp - 0x20]
call fcn.14005a5e0
lea rcx, [rbp - 0x40]
call fcn.14005a5e0
movzx eax, bl
jmp 0x14007846b
call fcn.140175694
nop
call fcn.14000d110
int3
call fcn.140175694
int3
call fcn.1400432e0
nop
call fcn.140175694
nop
call fcn.140175694
nop
call fcn.140175694
nop
lea rcx, str.invalid_stoi_argument
call fcn.14013e098
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.14013e0e0
int3
call fcn.1400b5770
nop
call fcn.140175694
nop
call fcn.140175694
nop
mov ecx, 1
call fcn.14013ebfc
nop
mov dword [rsp + 0x68], esi
mov ecx, 6
call fcn.14013ebfc
int3