Function at 0x4d4ff0
Capabilities:
Encode data using base64 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50565b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53f030]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4d5090
push 0
push dword [ebp - 0x210]
call edi
push 0x1f3
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], 0
push 0
push eax
call fcn.004d9060
push dword [esi]
lea eax, [ebp - 0x204]
push 0x1f4
push eax
call fcn.004df8e3
push dword [0x53ee00]
lea eax, [ebp - 0x204]
push 0x1f4
push eax
call fcn.004df938
lea eax, [ebp - 0x204]
push 0x1f4
push eax
call fcn.004dbed7
add esp, 0x2c
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4d510b
push eax
push dword [ebp - 0x210]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x220]
push 0
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0
push eax
push 4
push dword [ebp - 0x20c]
mov dword [ebp - 0x220], 4
call ebx
test eax, eax
je 0x4d5270
push dword [ebp - 0x208]
call fcn.004d7faf
push dword [ebp - 0x208]
mov esi, eax
push 0
push esi
call fcn.004d9060
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
push esi
push 2
push dword [ebp - 0x20c]
call ebx
test eax, eax
je 0x4d5270
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push 0
push 1
push dword [ebp - 0x208]
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x4d5270
push dword [ebp - 0x218]
call fcn.004d7faf
push dword [ebp - 0x218]
mov ebx, eax
push 0
push ebx
call fcn.004d9060
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push ebx
push 1
push dword [ebp - 0x208]
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x4d5270
lea ecx, [ebp - 0x214]
call fcn.0043a5b0
push 0x518134
push ebx
push str.HTTP_1.1_101_Switching_Protocols_r_nUpgrade:_websocket_r_nConnection:_Upgrade_r_nSec_WebSocket_Accept:
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 0
push str._s_s_s
push eax
call fcn.00471050
mov esi, dword [ebp - 0x214]
add esp, 0x14
cmp dword [esi - 0xc], 0x1f4
jge 0x4d523c
push esi
push 0x1f4
push dword [ebp - 0x21c]
call fcn.004df8e3
add esp, 0xc
push ebx
call fcn.004d89f6
add esi, 0xfffffff0
mov dword [ebp - 0x214], 1
add esp, 4
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4d5270
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x214]
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.004d89fb
mov esp, ebp
pop ebp
ret