Function at 0x140073730
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 [0x1402b8218]
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, [0x1402b7eb0]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1402b7488], eax
cmp eax, 0xffffffff
jne 0x1400737d0
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.1400af850
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.1400af850
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 0x14007391a
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 0x1400739f1
mov rcx, rdi
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp rdi, rax
jbe 0x140073931
lea rax, [rdx + 0x27]
jmp 0x140073955
lea rax, [rcx + rdi]
mov rsi, rbx
cmp rax, rbx
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x140073974
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140074319
mov rcx, rax
call fcn.14015f7fc
test rax, rax
je 0x14007431f
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140073986
test rcx, rcx
je 0x140073983
call fcn.14015f7fc
mov rbx, rax
jmp 0x140073986
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 0x1400739db
lea rdx, [rdi + 1]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, r13
jb 0x1400739d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007431f
call fcn.14015fb48
mov qword [rbp + 0x80], rbx
movabs rsi, 0x7fffffffffffffff
mov ebx, send
mov rdi, qword [rbp - 0x28]
cmp rdi, 3
jb 0x140073a2e
lea rbx, [rbp - 0x40]
cmp rdi, 0xf
cmova rbx, qword [rbp - 0x40]
mov qword [rbp - 0x30], 3
mov r8d, 3
lea rdx, [0x1401e8324]
mov rcx, rbx
call fcn.140198080
mov byte [rbx + 3], 0
jmp 0x140073b00
mov rcx, rdi
shr rcx, 1
mov rax, rsi
sub rax, rcx
cmp rdi, rax
jbe 0x140073a4f
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140073a74
lea rax, [rdi + rcx]
mov rsi, rbx
cmp rax, 0xf
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x140073a93
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140074319
mov rcx, rax
call fcn.14015f7fc
test rax, rax
je 0x14007431f
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140073aa5
test rcx, rcx
je 0x140073aa2
call fcn.14015f7fc
mov rbx, rax
jmp 0x140073aa5
mov rbx, r15
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rsi
mov eax, dword [0x1401e8324]
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 0x140073afc
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, r13
jb 0x140073af7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007431f
call fcn.14015fb48
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 0x140074325
cmp qword [rcx + 0x18], 0xf
jbe 0x140073b2c
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.14005ed40
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 0x140073bb5
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, r13
jb 0x140073bb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007432b
call fcn.14015fb48
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 0x140073bf9
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 0x140073cc7
mov rcx, rdi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdi, rax
jbe 0x140073c3a
mov rsi, rbx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14015f7fc
test rax, rax
je 0x14007431f
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140073c70
lea rax, [rdi + rcx]
cmp rax, 0xf
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, r13
jb 0x140073c5e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140074319
jmp 0x140073c1b
test rcx, rcx
je 0x140073c6d
call fcn.14015f7fc
mov rbx, rax
jmp 0x140073c70
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 0x140073cbe
lea rdx, [rdi + 1]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, r13
jb 0x140073cb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007431f
call fcn.14015fb48
mov esi, send
mov qword [rbp], rbx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.1400703c0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x140073cdf
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 0x140073d00
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14005ea90
mov ebx, r15d
cmp qword [rsp + 0x50], rbx
jbe 0x140073d6f
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 0x140073dd6
add ebx, eax
movsxd rcx, ebx
cmp rcx, qword [rsp + 0x50]
jb 0x140073d30
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140073daa
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r13
jb 0x140073da5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074331
call fcn.14015fb48
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 0x140073dda
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
jmp 0x1400742a1
mov bl, 1
jmp 0x140073d71
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov ecx, 0x1027
call fcn.14015f7fc
test rax, rax
je 0x14007431f
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.140198720
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.14005ea90
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x140]
call fcn.1400708a0
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.140071920
lea rcx, [rbp + 0x1e0]
call fcn.14005a630
lea rcx, [rbp + 0x1a0]
call fcn.1400711e0
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 0x140073efd
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140073ef8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074337
call fcn.14015fb48
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 [0x1401e81d0]
mov dword [rsp + 0x68], eax
movzx eax, word [0x1401e81d4]
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 0x140073f60
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xe0]
call fcn.1400c2e90
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0xe8]
test rcx, rcx
cmovne rdx, rcx
cmp rdx, qword [rbp + 0xe8]
je 0x140073fb2
add rdx, 0x30
lea rcx, [rbp - 0x60]
call fcn.1400ad680
jmp 0x140073fca
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 0x14007416e
cmp qword [rbp - 0x50], 0
je 0x14007416e
call fcn.140178ac8
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.1401777dc
movsxd rsi, eax
cmp rbx, qword [rbp + 0x260]
je 0x14007433d
cmp dword [rdi], 0x22
je 0x14007434a
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
xor r14d, r14d
mov qword [rbp - 0x70], r14
test eax, eax
je 0x14007407f
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140074357
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400beef0
mov rdi, qword [rbp - 0x80]
add rbx, rdi
mov r8, rbx
sub r8, rdi
xor edx, edx
mov rcx, rdi
call fcn.140198720
mov qword [rbp - 0x78], rbx
mov r14, qword [rbp - 0x70]
jmp 0x140074083
mov rdi, qword [rbp - 0x80]
xor ebx, ebx
test esi, esi
jle 0x1400740b2
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 0x1400740b2
add ebx, eax
cmp ebx, esi
jl 0x140074090
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.14005ea90
mov rdx, qword [rbp + 0x138]
cmp rdx, 0xf
jbe 0x140074117
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074112
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007435d
call fcn.14015fb48
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0x120], xmm0
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x130], xmm1
test rdi, rdi
je 0x140074167
sub r14, rdi
mov rax, rdi
cmp r14, 0x1000
jb 0x14007415c
add r14, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074363
mov rdx, r14
mov rcx, rdi
call fcn.14015fb48
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 0x140074220
lea rdx, [0x1401e836c]
call fcn.140198b60
test eax, eax
jne 0x140074220
lea ecx, [rax + 0x18]
call fcn.14015f7fc
lea rcx, [0x140073550]
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, [0x1400cf8b0]
xor edx, edx
xor ecx, ecx
call fcn.1401776ec
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140074374
cmp dword [rsp + 0x68], 0
je 0x140074369
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call fcn.14013ffb0
test eax, eax
jne 0x140074369
mov bl, 1
jmp 0x140074222
xor bl, bl
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14007425d
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074258
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074313
call fcn.14015fb48
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
sub r13, r15
cmp r13, 0x1000
jb 0x140074295
add r13, 0x27
mov rcx, qword [r15 - 8]
sub r15, rcx
lea rax, [r15 - 8]
cmp rax, 0x1f
ja 0x14007431f
mov r15, rcx
mov rdx, r13
mov rcx, r15
call fcn.14015fb48
nop
lea rcx, [rbp + 0x120]
call fcn.14005a630
lea rcx, [rbp + 0xe0]
call fcn.1400711e0
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.1400711e0
lea rcx, [rbp]
call fcn.14005a630
lea rcx, [rbp - 0x20]
call fcn.14005a630
lea rcx, [rbp - 0x40]
call fcn.14005a630
movzx eax, bl
jmp 0x1400737ab
call fcn.140174bf4
nop
call fcn.14000d100
int3
call fcn.140174bf4
int3
call fcn.140043330
nop
call fcn.140174bf4
nop
call fcn.140174bf4
nop
call fcn.140174bf4
nop
lea rcx, str.invalid_stoi_argument
call fcn.14013d668
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.14013d6b0
int3
call fcn.1400b3410
nop
call fcn.140174bf4
nop
call fcn.140174bf4
nop
mov ecx, 1
call fcn.14013e950
nop
mov dword [rsp + 0x68], esi
mov ecx, 6
call fcn.14013e950
int3