Function at 0x140069bc0
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 r13d, r13d
mov r15, qword [0x1402a38e8]
mov qword [rbp + 0x268], r15
lea edx, [r13 + 1]
lea ecx, [rdx + 1]
lea r8d, [r13 + 6]
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
lea r8d, [r13 + 0x10]
lea rdx, [0x1402a3708]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1402a34e8], eax
cmp eax, 0xffffffff
jne 0x140069c60
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], r13
mov ebx, recvfrom
mov qword [rbp - 0x28], rbx
mov byte [rbp - 0x40], r13b
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], rbx
mov byte [rbp - 0x20], 0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], rbx
mov byte [rbp], 0
mov dword [rbp + 0x260], 0
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x20]
call fcn.1400a4430
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x78], rbx
mov byte [rbp + 0x60], 0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r13
mov qword [rbp + 0x98], rbx
mov byte [rbp + 0x80], 0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r13
mov qword [rbp + 0xb8], rbx
mov byte [rbp + 0xa0], 0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r13
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.1400a4430
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
mov qword [rbp + 0x130], r13
mov qword [rbp + 0x138], rbx
mov byte [rbp + 0x120], 0
movabs rdi, 0x7fffffffffffffff
movabs rdx, 0x8000000000000000
mov r8d, 0x1000
mov rsi, qword [rbp + 0x98]
cmp rsi, 4
jb 0x140069daa
lea rcx, [rbp + 0x80]
cmp rsi, 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 0x140069e86
mov rcx, rsi
shr rcx, 1
mov rax, rdi
sub rax, rcx
cmp rsi, rax
jbe 0x140069dc4
mov r14, rdi
lea rax, [rdx + 0x27]
jmp 0x140069de8
lea rax, [rcx + rsi]
mov r14, rbx
cmp rax, rbx
cmova r14, rax
lea rcx, [r14 + 1]
cmp rcx, r8
jb 0x140069e0d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14006a798
mov rcx, rax
call fcn.140153510
test rax, rax
je 0x14006a79e
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov r8d, 0x1000
jmp 0x140069e25
test rcx, rcx
je 0x140069e22
call fcn.140153510
mov rbx, rax
mov r8d, 0x1000
jmp 0x140069e25
mov rbx, r13
mov qword [rbp + 0x90], 4
mov qword [rbp + 0x98], r14
mov eax, dword [str.None]
mov dword [rbx], eax
mov byte [rbx + 4], 0
cmp rsi, 0xf
jbe 0x140069e7a
lea rdx, [rsi + 1]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, r8
jb 0x140069e75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a79e
call fcn.14015385c
mov qword [rbp + 0x80], rbx
mov ebx, recvfrom
mov rsi, qword [rbp - 0x28]
cmp rsi, 3
jb 0x140069ec3
lea rbx, [rbp - 0x40]
cmp rsi, 0xf
cmova rbx, qword [rbp - 0x40]
mov qword [rbp - 0x30], 3
mov r8d, 3
lea rdx, [0x1401d9ba4]
mov rcx, rbx
call fcn.14018bbe0
mov byte [rbx + 3], 0
jmp 0x140069fa9
mov rcx, rsi
shr rcx, 1
mov rax, rdi
sub rax, rcx
cmp rsi, rax
jbe 0x140069ee7
mov r14, rdi
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140069f11
lea rax, [rcx + rsi]
mov r14, rbx
cmp rax, 0xf
cmova r14, rax
lea rcx, [r14 + 1]
mov ebx, 0x1000
cmp rcx, rbx
jb 0x140069f30
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14006a798
mov rcx, rax
call fcn.140153510
test rax, rax
je 0x14006a79e
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140069f42
test rcx, rcx
je 0x140069f3f
call fcn.140153510
mov rbx, rax
jmp 0x140069f42
mov rbx, r13
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], r14
mov eax, dword [0x1401d9ba4]
mov word [rbx], ax
movzx eax, byte [0x1401d9ba6]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0
cmp rsi, 0xf
jbe 0x140069fa5
lea rdx, [rsi + 1]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
mov r14d, 0x1000
cmp rdx, r14
jb 0x140069f9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a79e
call fcn.14015385c
mov qword [rbp - 0x40], rbx
jmp 0x140069faf
mov qword [rbp - 0x40], rbx
mov r14d, 0x1000
lea rcx, [r15 + 0x40]
mov rdx, qword [rcx + 0x10]
mov rax, rdi
sub rax, rdx
cmp rax, 0x12
jb 0x14006a7a4
cmp qword [rcx + 0x18], 0xf
jbe 0x140069fd1
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.14005d920
nop
mov r8d, 0x1f
lea rdx, str.ConnectionTypeClientAppEvents
lea rcx, [rsp + 0x40]
call fcn.140059430
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r13
mov r15d, recvfrom
mov qword [rax + 0x18], r15
mov byte [rax], 0
mov rdx, qword [rbp - 8]
cmp rdx, r15
jbe 0x14006a05b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, r14
jb 0x14006a056
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a7aa
call fcn.14015385c
movaps xmmword [rbp - 0x20], xmm6
movaps xmmword [rbp - 0x10], xmm7
lea rcx, [rsp + 0x40]
call fcn.1400593d0
mov rsi, qword [rbp + 0x18]
cmp rsi, 8
jb 0x14006a09f
lea rcx, [rbp]
cmp rsi, 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 0x14006a167
mov rcx, rsi
shr rcx, 1
mov rax, rdi
sub rax, rcx
cmp rsi, rax
jbe 0x14006a0dd
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140153510
test rax, rax
je 0x14006a79e
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14006a115
lea rax, [rcx + rsi]
mov rdi, r15
cmp rax, r15
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, r14
jb 0x14006a103
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14006a798
jmp 0x14006a0be
test rcx, rcx
je 0x14006a112
call fcn.140153510
mov rbx, rax
jmp 0x14006a115
mov rbx, r13
mov qword [rbp + 0x10], 8
mov qword [rbp + 0x18], rdi
mov rax, qword [str.HTTP_1.1]
mov qword [rbx], rax
mov byte [rbx + 8], 0
cmp rsi, 0xf
jbe 0x14006a163
lea rdx, [rsi + 1]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, r14
jb 0x14006a15e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a79e
call fcn.14015385c
mov qword [rbp], rbx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.140066890
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14006a17f
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14006a1a0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14005d670
mov ebx, r13d
cmp qword [rsp + 0x50], rbx
jbe 0x14006a20f
mov rcx, r13
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rsp + 0x50]
sub r8d, ebx
cmp r8d, r14d
cmovg r8d, r14d
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 0x14006a276
add ebx, eax
movsxd rcx, ebx
cmp rcx, qword [rsp + 0x50]
jb 0x14006a1d0
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14006a24a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r14
jb 0x14006a245
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a7b0
call fcn.14015385c
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x80]
call fcn.1400593d0
test bl, bl
je 0x14006a27a
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
jmp 0x14006a720
mov bl, 1
jmp 0x14006a211
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov ecx, 0x1027
call fcn.140153510
test rax, rax
je 0x14006a79e
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
mov r8, r14
xor edx, edx
mov rcx, r15
call fcn.14018c280
mov qword [rsp + 0x48], r13
xor r9d, r9d
mov r8d, r14d
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 r8, r14
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.14005d670
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x140]
call fcn.140066d70
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.140067dc0
lea rcx, [rbp + 0x1e0]
call fcn.1400593d0
lea rcx, [rbp + 0x1a0]
call fcn.1400676b0
lea rcx, [rbp + 0x180]
call fcn.1400593d0
lea rcx, [rbp + 0x160]
call fcn.1400593d0
lea rcx, [rbp + 0x140]
call fcn.1400593d0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14006a390
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r14
jb 0x14006a38b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a7b6
call fcn.14015385c
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 [0x1401d9a48]
mov dword [rsp + 0x68], eax
movzx eax, word [0x1401d9a4c]
mov word [rsp + 0x6c], ax
mov byte [rsp + 0x6e], 0
lea rdx, [rsp + 0x60]
movabs r9, 0xcbf29ce484222325
mov rcx, rsi
movabs r10, 0x100000001b3
nop
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x14006a3f0
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xe0]
call fcn.1400b6a40
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0xe8]
test rcx, rcx
cmovne rdx, rcx
cmp rdx, qword [rbp + 0xe8]
je 0x14006a442
add rdx, 0x30
lea rcx, [rbp - 0x60]
call fcn.140060120
jmp 0x14006a45a
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 0x14006a5ea
cmp qword [rbp - 0x50], 0
je 0x14006a5ea
call fcn.14016a858
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.14016a488
movsxd rsi, eax
cmp rbx, qword [rbp + 0x260]
je 0x14006a7bc
cmp dword [rdi], 0x22
je 0x14006a7c9
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
xor r14d, r14d
mov qword [rbp - 0x70], r14
test eax, eax
je 0x14006a4fc
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400b1200
mov rdi, qword [rbp - 0x80]
add rbx, rdi
mov r8, rbx
sub r8, rdi
xor edx, edx
mov rcx, rdi
call fcn.14018c280
mov qword [rbp - 0x78], rbx
mov r14, qword [rbp - 0x70]
jmp 0x14006a500
mov rdi, qword [rbp - 0x80]
xor ebx, ebx
test esi, esi
jle 0x14006a532
nop word [rax + 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 0x14006a532
add ebx, eax
cmp ebx, esi
jl 0x14006a510
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.14005d670
mov rdx, qword [rbp + 0x138]
mov ebx, 0x1000
cmp rdx, 0xf
jbe 0x14006a598
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, rbx
jb 0x14006a593
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a7d6
call fcn.14015385c
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0x120], xmm0
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x130], xmm1
test rdi, rdi
je 0x14006a5e4
sub r14, rdi
mov rax, rdi
cmp r14, rbx
jb 0x14006a5d9
add r14, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a7dc
mov rdx, r14
mov rcx, rdi
call fcn.14015385c
mov r14d, 0x1000
lea rcx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 0xf
cmova rcx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xd0]
cmp r8, 2
jne 0x14006a6a7
lea rdx, [0x1401d9bec]
call fcn.14018c6c0
test eax, eax
jne 0x14006a6a7
lea ecx, [rax + 0x18]
call fcn.140153510
lea rcx, [0x140069a00]
mov qword [rax], rcx
mov qword [rax + 8], r12
mov rcx, qword [rbp + 0x268]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x260], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400c2910]
xor edx, edx
xor ecx, ecx
call fcn.14016960c
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14006a7ed
cmp dword [rsp + 0x68], 0
je 0x14006a7e2
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call fcn.140131d58
test eax, eax
jne 0x14006a7e2
mov bl, 1
jmp 0x14006a6a9
xor bl, bl
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14006a6e0
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, r14
jb 0x14006a6db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a792
call fcn.14015385c
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], recvfrom
mov byte [rbp - 0x60], 0
sub r13, r15
cmp r13, r14
jb 0x14006a714
add r13, 0x27
mov rcx, qword [r15 - 8]
sub r15, rcx
lea rax, [r15 - 8]
cmp rax, 0x1f
ja 0x14006a79e
mov r15, rcx
mov rdx, r13
mov rcx, r15
call fcn.14015385c
nop
lea rcx, [rbp + 0x120]
call fcn.1400593d0
lea rcx, [rbp + 0xe0]
call fcn.1400676b0
lea rcx, [rbp + 0xc0]
call fcn.1400593d0
lea rcx, [rbp + 0xa0]
call fcn.1400593d0
lea rcx, [rbp + 0x80]
call fcn.1400593d0
nop
lea rcx, [rbp + 0x60]
call fcn.1400593d0
lea rcx, [rbp + 0x20]
call fcn.1400676b0
lea rcx, [rbp]
call fcn.1400593d0
lea rcx, [rbp - 0x20]
call fcn.1400593d0
lea rcx, [rbp - 0x40]
call fcn.1400593d0
movzx eax, bl
jmp 0x140069c3b
call fcn.140168934
nop
call fcn.14000cf00
int3
call fcn.140168934
int3
call fcn.140043100
nop
call fcn.140168934
nop
call fcn.140168934
nop
call fcn.140168934
nop
lea rcx, str.invalid_stoi_argument
call fcn.1401310f8
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.140131140
nop
call fcn.140168934
nop
call fcn.140168934
nop
mov ecx, 1
call fcn.140131c5c
nop
mov dword [rsp + 0x68], esi
mov ecx, 6
call fcn.140131c5c
int3