Function at 0x1400022c0
Capabilities:
Hash data using sha1

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x340
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rbp + 0x210], rax
movsd xmm6, qword [0x14005fc10]
lea rbx, [rbp - 0x50]
movsd xmm7, qword [0x14005fc40]
mov edi, 8
cmp dword [0x140068148], 0
jne 0x140002331
xor ecx, ecx
call fcn.14003d208
mov ecx, eax
mov dword [0x140068148], eax
call fcn.140039274
call fcn.140039248
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm6
mulsd xmm0, xmm7
cvttsd2si eax, xmm0
mov word [rbx], ax
add rbx, 2
sub rdi, 1
jne 0x140002314
xor eax, eax
lea r8, [rbp - 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x60], rax
lea edx, [rdi + 0x10]
mov byte [rbp - 0x58], al
lea rcx, [rbp - 0x50]
movups xmmword [rbp - 0x70], xmm0
call fcn.14000a960
movups xmm1, xmmword [0x14005c5f0]
xor eax, eax
mov dword [rsp + 0x30], 0x67452301
mov qword [rbp - 0x28], rax
mov r14, 0xffffffffffffffff
mov dword [rbp - 0x20], eax
mov rbx, r14
mov byte [rbp - 0x1c], al
mov eax, dword [0x14005c600]
mov dword [rbp + 8], eax
movzx eax, byte [0x14005c604]
movups xmmword [rbp - 0x38], xmm0
mov byte [rbp + 0xc], al
xor eax, eax
movups xmm0, xmmword [str.258EAFA5_E914_47DA_95CA_C5AB0DC85B11]
mov dword [rbp - 0x40], eax
lea rax, [rbp - 0x70]
movups xmmword [rbp - 8], xmm1
mov dword [rsp + 0x34], 0xefcdab89
movups xmmword [rbp - 0x18], xmm0
mov dword [rsp + 0x38], 0x98badcfe
xorps xmm0, xmm0
mov dword [rsp + 0x3c], 0x10325476
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x40], 0xc3d2e1f0
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400023f2
lea eax, [rbx*8]
xor r15d, r15d
mov dword [rsp + 0x44], eax
mov eax, ebx
shr eax, 0x1d
mov dword [rsp + 0x48], eax
lea esi, [r15 + 0x40]
cmp ebx, 0x3f
jbe 0x14000247e
movups xmm0, xmmword [rbp - 0x70]
lea rdx, [rsp + 0x4c]
mov edi, esi
movups xmm1, xmmword [rbp - 0x60]
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x4c], xmm0
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rsp + 0x5c], xmm1
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rsp + 0x6c], xmm0
movups xmmword [rsp + 0x7c], xmm1
call fcn.14000b500
cmp ebx, 0x7f
jbe 0x140002481
nop word [rax + rax]
mov eax, edi
lea rdx, [rbp - 0x70]
add rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b500
add edi, esi
lea eax, [rdi + 0x3f]
cmp eax, ebx
jb 0x140002460
jmp 0x140002481
mov edi, r15d
sub ebx, edi
mov eax, edi
lea rdx, [rbp - 0x70]
mov r8d, ebx
add rdx, rax
lea rcx, [rsp + 0x4c]
call fcn.140037340
lea rax, [rbp - 0x18]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], r15b
jne 0x1400024a0
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x48]
lea eax, [rcx + rbx*8]
mov dword [rsp + 0x44], eax
cmp eax, ecx
jae 0x1400024be
inc edx
shr ecx, 3
mov eax, ebx
shr eax, 0x1d
and ecx, 0x3f
add edx, eax
mov dword [rsp + 0x48], edx
lea eax, [rcx + rbx]
cmp eax, 0x3f
jbe 0x140002532
sub esi, ecx
mov eax, ecx
lea rcx, [rsp + 0x4c]
mov r8d, esi
add rcx, rax
lea rdx, [rbp - 0x18]
call fcn.140037340
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x30]
call fcn.14000b500
lea edi, [rsi + 0x3f]
cmp edi, ebx
jae 0x14000252d
nop word [rax + rax]
mov eax, esi
lea rdx, [rbp - 0x18]
add rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b500
add esi, 0x40
add edi, 0x40
cmp edi, ebx
jb 0x140002510
mov ecx, r15d
jmp 0x140002535
mov esi, r15d
mov eax, esi
lea rdx, [rbp - 0x18]
add rdx, rax
sub ebx, esi
mov eax, ecx
lea rcx, [rsp + 0x4c]
add rcx, rax
mov r8d, ebx
call fcn.140037340
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.14000c840
lea r8, [rbp - 0x38]
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rbp - 0x50]
call fcn.14000a960
xorps xmm0, xmm0
xor eax, eax
mov dword [rbp + 0x70], eax
lea rax, [rbp + 0x10]
dec rax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
nop dword [rax]
cmp byte [rax + 1], r15b
lea rax, [rax + 1]
jne 0x1400025a0
movups xmm0, xmmword [str.Sec_WebSocket_Accept___t_:___t_]
mov rcx, r14
movups xmm1, xmmword [0x14005c1e0]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
lea rax, [rbp - 0x38]
inc rcx
cmp byte [rax + rcx], r15b
jne 0x1400025c6
lea rdx, [rbp + 0x10]
mov rax, r14
nop word [rax + rax]
cmp byte [rdx + rax + 1], r15b
lea rax, [rax + 1]
jne 0x1400025e0
lea rax, [rbp + rax + 0x10]
test cl, cl
je 0x14000261c
lea rdx, [rbp - 0x38]
movzx r8d, cl
nop dword [rax]
movzx ecx, byte [rdx]
cmp cl, 0x2b
jne 0x14000260e
mov byte [rax], 0x5c
inc rax
mov byte [rax], cl
inc rdx
inc rax
sub r8, 1
jne 0x140002600
lea rcx, [rbp + 0x10]
mov rax, r14
inc rax
cmp byte [rcx + rax], r15b
jne 0x140002623
add eax, eax
movsxd rcx, eax
shl rcx, 5
call fcn.14003cc38
mov rbx, rax
test rax, rax
je 0x14000268b
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x10]
cmp byte [rax + r14 + 1], r15b
lea r14, [r14 + 1]
jne 0x140002652
lea eax, [r14 + r14]
xor edx, edx
cdqe
lea rcx, [rbp - 0x50]
shl rax, 5
add rax, rbx
mov qword [rbp - 0x40], rax
call fcn.140004c60
test rax, rax
jne 0x140002688
mov rcx, rbx
call fcn.14003c094
jmp 0x14000268b
mov r15, rbx
mov rcx, r15
call fcn.1400048b0
mov rcx, r15
mov qword [0x140068060], rax
call fcn.14003c094
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea r9, [0x1400681d0]
mov eax, dword [0x140068204]
lea r8, [0x140067fa0]
lea rdx, str.GET__s_HTTP_1.1_r_nHost:__s:_u_r_nConnection:_Upgrade_r_nUpgrade:_websocket_r_nSec_WebSocket_Version:_13_r_nSec_WebSocket_Key:__s_r_n_r_n
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x80]
call fcn.140001070
mov rcx, qword [0x140068208]
test eax, eax
js 0x1400026fc
movsxd r8, eax
lea rdx, [rbp + 0x80]
mov dword [0x140068110], 1
call fcn.1400083e0
jmp 0x140002701
call fcn.140008840
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400353c0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret