Function at 0x140038a90
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.140027e60
nop
lea rdx, [rbp + 0xa0]
mov rcx, rsi
call fcn.140004554
mov rdx, rax
lea r8, [rbp]
call fcn.14003aa18
nop
mov edi, 0x1000
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140038b5b
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, rdi
jb 0x140038b56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038b56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
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.140027e60
nop
lea rdx, [rbp + 0xc0]
mov rcx, rsi
call fcn.140004554
mov rdx, rax
lea r8, [rbp + 4]
call fcn.14003aa18
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140038be3
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, rdi
jb 0x140038bde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038bde
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
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.140027e60
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.140004554
mov rbx, rax
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140038c4e
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, rdi
jb 0x140038c49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038c49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
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 0x140038c7c
mov rdx, qword [rbx]
lea rcx, [rbp - 0x18]
lea r8, [rbp - 0x10]
cmp rax, 8
cmovae rcx, r8
cmp qword [rbx + 0x18], 0xf
jbe 0x140038c96
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.140027e60
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.140027e60
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.14000e49c
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 0x140038d61
mov eax, dword [rbp + 0x160]
shr eax, 3
mov r8d, 0xfffffff7
sub r8d, eax
and r8d, 0x3f
add r8d, edi
lea rdx, [0x1400706d0]
lea rcx, [rbp + 0x160]
call fcn.14000e49c
mov r8d, 8
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x160]
call fcn.14000e49c
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 0x140038dd8
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.14001fd9c
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.1400046bc
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, rbx
jbe 0x140038ea5
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038ea0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038ea0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x28], r13b
mov rdx, qword [rbp - 0x80]
cmp rdx, rbx
jbe 0x140038ef2
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038eed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038eed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r13b
mov rdx, qword [rbp + 0xf8]
cmp rdx, rbx
jbe 0x140038f48
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038f43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038f43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
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 [0x14006d094]
mov word [rbp - 0x74], ax
mov al, byte [0x14006d096]
mov byte [rbp - 0x72], al
mov byte [rbp - 0x71], r13b
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.1400046bc
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, rbx
jbe 0x140038ffa
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038ff5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038ff5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], r13b
mov rdx, qword [rbp + 0x48]
cmp rdx, rbx
jbe 0x140039048
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039043
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039043
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
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 [0x14006d094]
mov word [rbp - 0x34], ax
mov al, byte [0x14006d096]
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 [0x14006baa8]
mov word [rbp - 0x50], ax
mov byte [rbp - 0x4e], r13b
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.1400046bc
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, rbx
jbe 0x1400390f9
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400390f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400390f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], r13b
mov rdx, qword [rbp - 0x20]
cmp rdx, rbx
jbe 0x140039147
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039142
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039142
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
mov r8d, socket
lea rdx, str.Sec_WebSocket_Origin
lea rcx, [rbp + 0x100]
call fcn.140027e60
lea rdx, [rbp + 0x100]
mov rcx, rdi
call fcn.140004554
mov rbx, qword [rax + 0x10]
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x1400391cc
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400391c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400391c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
test rbx, rbx
jne 0x1400392d1
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 [0x14006d08c]
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.140027e60
nop
lea rdx, [rbp + 0x70]
mov rcx, rsi
call fcn.140004554
mov r8, rax
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.1400046bc
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14003927f
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003927a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003927a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], r13b
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x1400392d1
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400392cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400392cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
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.140027e60
lea rdx, [rbp + 0x120]
mov rcx, rdi
call fcn.140004554
mov rbx, qword [rax + 0x10]
mov rdx, qword [rbp + 0x138]
cmp rdx, 0xf
jbe 0x140039356
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039351
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
test rbx, rbx
jne 0x140039492
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.140027e60
nop
lea rdx, [rbp + 0x140]
mov rcx, qword [rbp + 0x90]
call fcn.14000333c
nop
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400046bc
nop
mov rdx, qword [rbp + 0x158]
cmp rdx, 0xf
jbe 0x140039404
inc rdx
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400393ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400393ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
movdqa xmm0, xmmword [0x140071c30]
movdqu xmmword [rbp + 0x150], xmm0
mov byte [rbp + 0x140], r13b
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14003945c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039456
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039456
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
nop
mov rbx, qword [rbp + 0x98]
test rbx, rbx
je 0x140039492
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x140039492
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140039492
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [r15 + 0x10], r13
je 0x14003951f
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.140027e60
nop
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x48]
call fcn.14001c568
mov rcx, rax
mov rdx, r15
call fcn.14001d3c0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14003951f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003951a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003951a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059748
mov dword [r14], r13d
lea rax, [0x140084350]
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