Function at 0x500800
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 0x500832
cmp ebp, eax
je 0x500b14
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 0x500923
cmp dword [edi + 4], ebp
je 0x5008db
push dword [ebp + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x500b26
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 0x50093a
test esi, esi
je 0x500938
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 0x50093a
xor esi, esi
mov eax, ebx
sub eax, esi
je 0x500952
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 0x5009ee
xor eax, eax
cmp ebx, 8
jb 0x5009dc
xor eax, eax
cmp ebx, 0x20
jb 0x5009b0
mov eax, ebx
and eax, 0xffffffe0
xor ecx, ecx
movaps xmm0, xmmword [0x595810]
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 0x500980
cmp ebx, eax
je 0x5009ee
test bl, 0x18
je 0x5009dc
mov ecx, eax
mov eax, ebx
and eax, 0xfffffff8
movaps xmm0, xmmword [0x595820]
nop
movsd xmm1, qword [esp + ecx + 4]
xorps xmm1, xmm0
movlps qword [esp + ecx + 0x84], xmm1
add ecx, 8
cmp eax, ecx
jne 0x5009c0
cmp ebx, eax
je 0x5009ee
movzx ecx, byte [esp + eax + 4]
xor cl, 0x36
mov byte [esp + eax + 0x84], cl
inc eax
jmp 0x5009d8
cmp dword [edi + 0x14], ebp
je 0x500a19
push dword [ebp + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x500b26
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 0x500ace
xor eax, eax
cmp ebx, 8
jb 0x500abc
xor eax, eax
cmp ebx, 0x20
jb 0x500a90
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 0x500a60
cmp ebx, eax
je 0x500ace
test bl, 0x18
je 0x500abc
mov ecx, eax
mov eax, ebx
and eax, 0xfffffff8
movaps xmm0, xmmword [0x595840]
nop
movsd xmm1, qword [esp + ecx + 4]
xorps xmm1, xmm0
movlps qword [esp + ecx + 0x84], xmm1
add ecx, 8
cmp eax, ecx
jne 0x500aa0
cmp ebx, eax
je 0x500ace
movzx ecx, byte [esp + eax + 4]
xor cl, 0x5c
mov byte [esp + eax + 0x84], cl
inc eax
jmp 0x500ab8
cmp dword [edi + 0x24], ebp
je 0x500af5
push dword [ebp + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x500b26
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 0x500b28
xor eax, eax
add esp, 0x104
pop esi
pop edi
pop ebx
pop ebp
ret