Function at 0x4f7650
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x104
mov ecx, dword [esp + 0x11c]
mov edi, dword [esp + 0x118]
mov ebp, dword [esp + 0x124]
test ebp, ebp
mov eax, dword [edi]
cmove ebp, eax
test ecx, ecx
jne 0x4f7682
cmp ebp, eax
je 0x4f7964
mov esi, dword [esp + 0x120]
xorps xmm0, xmm0
movups xmmword [esp + 0xf4], xmm0
movups xmmword [esp + 0xe4], xmm0
movups xmmword [esp + 0xd4], xmm0
movups xmmword [esp + 0xc4], xmm0
movups xmmword [esp + 0xb4], xmm0
movups xmmword [esp + 0xa4], xmm0
movups xmmword [esp + 0x94], xmm0
movups xmmword [esp + 0x84], xmm0
movups xmmword [esp + 0x74], xmm0
movups xmmword [esp + 0x64], xmm0
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm0
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 4], xmm0
mov ebx, dword [ebp + 0x18]
cmp ebx, esi
jae 0x4f7773
cmp dword [edi + 4], ebp
je 0x4f772b
push dword [ebp + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4f7976
push dword [edi + 8]
mov dword [esp + 4], eax
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp]
mov dword [edi + 8], eax
mov dword [edi + 4], ebp
lea eax, [edi + 4]
mov dword [esp], eax
push eax
call dword [ebp + 0xc]
add esp, 4
mov eax, dword [edi + 4]
push esi
push dword [esp + 0x120]
mov esi, dword [esp + 8]
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [edi + 4]
lea ecx, [esp + 4]
push ecx
push esi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
push dword [eax + 0x1c]
push dword [edi + 8]
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
jmp 0x4f778a
test esi, esi
je 0x4f7788
lea eax, [esp + 4]
push esi
push ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x4f778a
xor esi, esi
mov eax, ebx
sub eax, esi
je 0x4f77a2
lea ecx, [esp + esi]
add ecx, 4
push eax
push 0
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
test ebx, ebx
je 0x4f783e
xor eax, eax
cmp ebx, 8
jb 0x4f782c
xor eax, eax
cmp ebx, 0x20
jb 0x4f7800
mov eax, ebx
and eax, 0xffffffe0
xor ecx, ecx
movaps xmm0, xmmword [0x58dac0]
nop word cs:[eax + eax]
movups xmm1, xmmword [esp + ecx + 4]
movups xmm2, xmmword [esp + ecx + 0x14]
xorps xmm1, xmm0
xorps xmm2, xmm0
movups xmmword [esp + ecx + 0x84], xmm1
movups xmmword [esp + ecx + 0x94], xmm2
add ecx, 0x20
cmp eax, ecx
jne 0x4f77d0
cmp ebx, eax
je 0x4f783e
test bl, 0x18
je 0x4f782c
mov ecx, eax
mov eax, ebx
and eax, 0xfffffff8
movaps xmm0, xmmword [0x58dad0]
nop
movsd xmm1, qword [esp + ecx + 4]
xorps xmm1, xmm0
movlps qword [esp + ecx + 0x84], xmm1
add ecx, 8
cmp eax, ecx
jne 0x4f7810
cmp ebx, eax
je 0x4f783e
movzx ecx, byte [esp + eax + 4]
xor cl, 0x36
mov byte [esp + eax + 0x84], cl
inc eax
jmp 0x4f7828
cmp dword [edi + 0x14], ebp
je 0x4f7869
push dword [ebp + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4f7976
mov esi, eax
push dword [edi + 0x18]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebp
lea esi, [edi + 0x14]
push esi
call dword [ebp + 0xc]
add esp, 4
mov eax, dword [esi]
lea ecx, [esp + 0x84]
push ebx
push ecx
push esi
call dword [eax + 0x10]
add esp, 0xc
test ebx, ebx
je 0x4f791e
xor eax, eax
cmp ebx, 8
jb 0x4f790c
xor eax, eax
cmp ebx, 0x20
jb 0x4f78e0
mov eax, ebx
and eax, 0xffffffe0
xor ecx, ecx
movaps xmm0, xmmword [str._]
nop dword [eax]
movups xmm1, xmmword [esp + ecx + 4]
movups xmm2, xmmword [esp + ecx + 0x14]
xorps xmm1, xmm0
xorps xmm2, xmm0
movups xmmword [esp + ecx + 0x84], xmm1
movups xmmword [esp + ecx + 0x94], xmm2
add ecx, 0x20
cmp eax, ecx
jne 0x4f78b0
cmp ebx, eax
je 0x4f791e
test bl, 0x18
je 0x4f790c
mov ecx, eax
mov eax, ebx
and eax, 0xfffffff8
movaps xmm0, xmmword [0x58daf0]
nop
movsd xmm1, qword [esp + ecx + 4]
xorps xmm1, xmm0
movlps qword [esp + ecx + 0x84], xmm1
add ecx, 8
cmp eax, ecx
jne 0x4f78f0
cmp ebx, eax
je 0x4f791e
movzx ecx, byte [esp + eax + 4]
xor cl, 0x5c
mov byte [esp + eax + 0x84], cl
inc eax
jmp 0x4f7908
cmp dword [edi + 0x24], ebp
je 0x4f7945
push dword [ebp + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4f7976
mov esi, eax
push dword [edi + 0x28]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov dword [edi + 0x28], esi
mov dword [edi + 0x24], ebp
lea esi, [edi + 0x24]
push esi
call dword [ebp + 0xc]
add esp, 4
mov eax, dword [edi + 0x24]
push ebx
lea ecx, [esp + 0x88]
push ecx
push esi
call dword [eax + 0x10]
add esp, 0xc
mov dword [edi], ebp
lea eax, [edi + 4]
add edi, 0x14
push edi
push eax
call sym.fastboot.exe_EVP_MD_CTX_copy_ex
add esp, 8
jmp 0x4f7978
xor eax, eax
add esp, 0x104
pop esi
pop edi
pop ebx
pop ebp
ret