Function at 0x1000dd10
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099ded
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push str.HTTP_1.1_101_Switching_Protocols_r_n
push ebx
mov dword [ebp - 0xd8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, eax
push str.Upgrade:_WebSocket_r_n
lea ecx, [ebx + edi]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add edi, eax
push str.Connection:_Upgrade_r_n
lea ecx, [ebx + edi]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x64], 0
add esp, 0x18
add edi, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0
lea eax, [esi + 0x1c]
cmp dword [esi + 0x30], 0x10
jb 0x1000ddab
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 0x2c]
push esi
push eax
cmp esi, 0xf
ja 0x1000ddcb
lea eax, [ebp - 0x64]
mov dword [ebp - 0x54], esi
push eax
call fcn.1007e990
add esp, 0xc
mov byte [ebp + esi - 0x64], 0
jmp 0x1000dde1
mov byte [ebp - 0xd4], 0
lea ecx, [ebp - 0x64]
push dword [ebp - 0xd4]
push esi
call fcn.1000ec90
mov edx, dword [ebp - 0x50]
mov eax, edx
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0x24
push str.258EAFA5_E914_47DA_95CA_C5AB0DC85B11
cmp eax, 0x24
jb 0x1000de18
cmp edx, 0x10
lea esi, [ebp - 0x64]
lea eax, [ecx + 0x24]
cmovae esi, dword [ebp - 0x64]
add esi, ecx
mov dword [ebp - 0x54], eax
push esi
call fcn.1007e990
add esp, 0xc
mov byte [esi + 0x24], 0
jmp 0x1000de2f
mov byte [ebp - 0xd4], 0
lea ecx, [ebp - 0x64]
push dword [ebp - 0xd4]
push 0x24
call fcn.1000ec90
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
lea ecx, [ebp - 0xd0]
push eax
mov dword [ebp - 0xd0], vtable.SHA1.0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0xcc], 0x67452301
mov dword [ebp - 0xc8], 0xefcdab89
mov dword [ebp - 0xc4], 0x98badcfe
mov dword [ebp - 0xc0], 0x10325476
mov dword [ebp - 0xbc], 0xc3d2e1f0
mov word [ebp - 0x6c], 0
call fcn.1000ee90
cmp byte [ebp - 0x6b], 0
jne 0x1000dfc8
cmp byte [ebp - 0x6c], 0
jne 0x1000df9b
mov eax, dword [ebp - 0x70]
cmp eax, 0x37
mov byte [ebp + eax - 0xb0], 0x80
mov eax, dword [ebp - 0x70]
jle 0x1000df26
inc eax
mov dword [ebp - 0x70], eax
cmp eax, 0x40
jge 0x1000def4
nop word [eax + eax]
mov byte [ebp + eax - 0xb0], 0
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp eax, 0x40
jl 0x1000dee0
lea ecx, [ebp - 0xd0]
call fcn.1000ef00
mov eax, dword [ebp - 0x70]
cmp eax, 0x38
jge 0x1000df44
nop word [eax + eax]
mov byte [ebp + eax - 0xb0], 0
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp eax, 0x38
jl 0x1000df10
jmp 0x1000df44
inc eax
mov dword [ebp - 0x70], eax
cmp eax, 0x38
jge 0x1000df44
nop
mov byte [ebp + eax - 0xb0], 0
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp eax, 0x38
jl 0x1000df30
mov ecx, dword [ebp - 0xb4]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x78], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x77], al
movzx eax, byte [ebp - 0xb4]
shr ecx, 8
mov byte [ebp - 0x75], al
mov byte [ebp - 0x76], cl
mov ecx, dword [ebp - 0xb8]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x74], al
mov eax, ecx
shr eax, 0x10
shr ecx, 8
mov byte [ebp - 0x73], al
movzx eax, byte [ebp - 0xb8]
mov byte [ebp - 0x72], cl
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0x71], al
call fcn.1000ef00
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x14], eax
xor edx, edx
nop word [eax + eax]
mov cl, byte [ebp + edx - 0x24]
movzx eax, byte [ebp + edx - 0x21]
mov byte [ebp + edx - 0x24], al
movzx eax, byte [ebp + edx - 0x22]
mov byte [ebp + edx - 0x21], cl
mov cl, byte [ebp + edx - 0x23]
mov byte [ebp + edx - 0x23], al
mov byte [ebp + edx - 0x22], cl
add edx, 4
cmp edx, 0x14
jl 0x1000dfd0
push ecx
lea eax, [ebp - 0x4c]
mov edx, 0x14
push eax
lea ecx, [ebp - 0x24]
call fcn.1000f0e0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebx + edi]
push str.Sec_WebSocket_Accept:__s_r_n
push eax
call esi
add edi, eax
push 0x100aa378
lea eax, [ebx + edi]
push eax
call esi
mov ecx, dword [ebp - 0xd8]
add eax, edi
mov edx, dword [ebp - 0x50]
add esp, 0x1c
mov dword [ecx], eax
cmp edx, 0x10
jb 0x1000e06b
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000e061
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e089
push edx
push ecx
call fcn.1007bcac
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 8
call fcn.1007f10c
int3