Function at 0x1400389ac
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov r15, r9
mov rsi, r8
mov r14, rdx
mov r12, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
lea ebx, [r13 + 0x12]
mov r8d, ebx
lea rdx, str.Sec_WebSocket_Key1
lea rcx, [rbp + 0xa0]
call fcn.140027d34
nop
lea rdx, [rbp + 0xa0]
mov rcx, rsi
call fcn.140004448
mov rdx, rax
lea r8, [rbp]
call fcn.14003a8f4
nop
mov edi, 0x1000
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140038a77
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, rdi
jb 0x140038a72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038a72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
mov r8, rbx
lea rdx, str.Sec_WebSocket_Key2
lea rcx, [rbp + 0xc0]
call fcn.140027d34
nop
lea rdx, [rbp + 0xc0]
mov rcx, rsi
call fcn.140004448
mov rdx, rax
lea r8, [rbp + 4]
call fcn.14003a8f4
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140038aff
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, rdi
jb 0x140038afa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038afa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov r8, rbx
lea rdx, str.Sec_WebSocket_Key3
lea rcx, [rbp + 0x10]
call fcn.140027d34
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.140004448
mov rbx, rax
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140038b6a
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, rdi
jb 0x140038b65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038b65
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], r13b
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 8
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140038b98
mov rdx, qword [rbx]
lea rcx, [rbp - 0x18]
lea r8, [rbp - 0x10]
cmp rax, 8
cmovae rcx, r8
cmp qword [rbx + 0x18], 0xf
jbe 0x140038bb2
mov rbx, qword [rbx]
mov r8, qword [rcx]
add r8, rdx
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf0], xmm1
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Sec_WebSocket_Key3
lea rcx, [rbp + 0xe0]
call fcn.140027d34
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp]
lea rcx, [rsp + 0x68]
call fcn.140027d34
nop
mov qword [rbp + 0x160], r13
mov dword [rbp + 0x168], 0x67452301
mov dword [rbp + 0x16c], 0xefcdab89
mov dword [rbp + 0x170], 0x98badcfe
mov dword [rbp + 0x174], 0x10325476
lea rdx, [rsp + 0x68]
mov ebx, reloc.WS2_32.dll_ntohs
cmp qword [rbp - 0x80], rbx
cmova rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rbp + 0x160]
call fcn.14000e39c
mov edx, r13d
lea r8, [rbp - 8]
mov r9, r13
lea edi, [rbx - 0xe]
mov rax, r9
and rax, 0xfffffffffffffffc
mov ecx, edx
and ecx, 3
shl ecx, 3
mov eax, dword [rbp + rax + 0x160]
shr eax, cl
mov byte [r8], al
add edx, edi
add r9, rdi
add r8, rdi
cmp edx, 8
jl 0x140038c7d
mov eax, dword [rbp + 0x160]
shr eax, 3
mov r8d, 0xfffffff7
sub r8d, eax
and r8d, 0x3f
add r8d, edi
lea rdx, [0x14006c5f0]
lea rcx, [rbp + 0x160]
call fcn.14000e39c
mov r8d, 8
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x160]
call fcn.14000e39c
mov r8d, r13d
lea r9, [rbp + 0x1c0]
mov r10, r13
mov rax, r10
and rax, 0xfffffffffffffffc
mov ecx, r8d
and ecx, 3
shl ecx, 3
mov eax, dword [rbp + rax + 0x168]
shr eax, cl
mov byte [r9], al
add r8d, edi
add r10, rdi
add r9, rdi
cmp r8d, 0x10
jl 0x140038cf4
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x28], r13b
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea edx, [r8 + 0x10]
lea rcx, [rsp + 0x28]
call fcn.14001fd78
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], rbx
cmova rax, qword [rsp + 0x28]
movups xmm0, xmmword [rbp + 0x1c0]
movdqu xmmword [rax], xmm0
lea r8, [rsp + 0x28]
lea rdx, [rbp + 0xe0]
mov rdi, qword [rbp + 0x220]
mov rcx, rdi
call fcn.1400045b0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, rbx
jbe 0x140038dc1
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038dbc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038dbc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x28], r13b
mov rdx, qword [rbp - 0x80]
cmp rdx, rbx
jbe 0x140038e0e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038e09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038e09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r13b
mov rdx, qword [rbp + 0xf8]
cmp rdx, rbx
jbe 0x140038e64
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038e5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038e5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_htons]
movdqu xmmword [rbp + 0x40], xmm1
movsd xmm0, qword [str.WebSocket]
movsd qword [rbp + 0x30], xmm0
mov al, byte [reloc.WS2_32.dll_WSACleanup]
mov byte [rbp + 0x38], al
mov byte [rbp + 0x39], r13b
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_getsockopt]
movdqu xmmword [rbp - 0x68], xmm1
mov rax, qword [str.Upgrade]
mov dword [rbp - 0x78], eax
movzx eax, word [0x140068fb4]
mov word [rbp - 0x74], ax
mov al, byte [0x140068fb6]
mov byte [rbp - 0x72], al
mov byte [rbp - 0x71], r13b
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.1400045b0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, rbx
jbe 0x140038f16
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038f11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038f11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], r13b
mov rdx, qword [rbp + 0x48]
cmp rdx, rbx
jbe 0x140038f64
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038f5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038f5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_getsockopt]
movdqu xmmword [rbp - 0x28], xmm1
mov rax, qword [str.Upgrade]
mov dword [rbp - 0x38], eax
movzx eax, word [0x140068fb4]
mov word [rbp - 0x34], ax
mov al, byte [0x140068fb6]
mov byte [rbp - 0x32], al
mov byte [rbp - 0x31], r13b
movups xmmword [rbp - 0x58], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_ioctlsocket]
movdqu xmmword [rbp - 0x48], xmm1
movsd xmm0, qword [str.Connection]
movsd qword [rbp - 0x58], xmm0
movzx eax, word [0x1400679f8]
mov word [rbp - 0x50], ax
mov byte [rbp - 0x4e], r13b
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.1400045b0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, rbx
jbe 0x140039015
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039010
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039010
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], r13b
mov rdx, qword [rbp - 0x20]
cmp rdx, rbx
jbe 0x140039063
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003905e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003905e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
mov r8d, setsockopt
lea rdx, str.Sec_WebSocket_Origin
lea rcx, [rbp + 0x100]
call fcn.140027d34
lea rdx, [rbp + 0x100]
mov rcx, rdi
call fcn.140004448
mov rbx, qword [rax + 0x10]
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x1400390e8
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400390e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400390e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
test rbx, rbx
jne 0x1400391ed
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_getsockname]
movdqu xmmword [rbp + 0x80], xmm1
mov eax, dword [str.Origin]
mov dword [rbp + 0x70], eax
movzx eax, word [0x140068fac]
mov word [rbp + 0x74], ax
mov byte [rbp + 0x76], r13b
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
lea r8d, [rbx + 0x14]
lea rdx, str.Sec_WebSocket_Origin
lea rcx, [rbp + 0x50]
call fcn.140027d34
nop
lea rdx, [rbp + 0x70]
mov rcx, rsi
call fcn.140004448
mov r8, rax
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.1400045b0
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14003919b
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039196
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039196
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], r13b
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x1400391ed
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400391e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400391e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x130], xmm1
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Sec_WebSocket_Location
lea rcx, [rbp + 0x120]
call fcn.140027d34
lea rdx, [rbp + 0x120]
mov rcx, rdi
call fcn.140004448
mov rbx, qword [rax + 0x10]
mov rdx, qword [rbp + 0x138]
cmp rdx, 0xf
jbe 0x140039272
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003926d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003926d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
test rbx, rbx
jne 0x1400393ae
mov rax, qword [r12]
mov r8, rsi
lea rdx, [rbp + 0x90]
mov rcx, r12
call qword [rax + 0x60]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea r8d, [rbx + 0x16]
lea rdx, str.Sec_WebSocket_Location
lea rcx, [rsp + 0x48]
call fcn.140027d34
nop
lea rdx, [rbp + 0x140]
mov rcx, qword [rbp + 0x90]
call fcn.140003230
nop
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400045b0
nop
mov rdx, qword [rbp + 0x158]
cmp rdx, 0xf
jbe 0x140039320
inc rdx
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003931b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003931b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
movdqa xmm0, xmmword [0x14006db70]
movdqu xmmword [rbp + 0x150], xmm0
mov byte [rbp + 0x140], r13b
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140039378
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039372
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039372
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
nop
mov rbx, qword [rbp + 0x98]
test rbx, rbx
je 0x1400393ae
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400393ae
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400393ae
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [r15 + 0x10], r13
je 0x14003943b
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Sec_WebSocket_Protocol
lea rcx, [rsp + 0x48]
call fcn.140027d34
nop
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x48]
call fcn.14001c548
mov rcx, rax
mov rdx, r15
call fcn.14001d3fc
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14003943b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039436
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039436
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400571a8
mov dword [r14], r13d
lea rax, [0x14007f380]
mov qword [r14 + 8], rax
mov rax, r14
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret