Function at 0x4ebc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x4ebc80
push 0x4d2110
push 0x587f50
call sym.fastboot.exe_CRYPTO_once
add esp, 8
mov eax, 0x587f54
test edi, edi
cmove edi, eax
mov edx, dword [eax + 4]
lea ecx, [edx + edx]
add ecx, 2
cmp ecx, esi
jbe 0x4ebc99
push 0x14a
jmp 0x4ebcd2
mov dword [esp + 0x1c], edi
lea ecx, [edx + edx]
mov edi, edx
mov ebx, ecx
not ebx
lea edx, [esi + ebx]
add edx, 0xffffffff
cmp edx, dword [ebp + 0x14]
jae 0x4ebcbf
push 0x150
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x4ebcd9
mov dword [esp + 4], edi
lea edx, [esi - 1]
or ecx, 1
cmp edx, ecx
jae 0x4ebcf1
push 0x155
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7e
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor ecx, ecx
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
mov edi, dword [esp + 4]
lea ecx, [ecx + edi + 1]
push 0
push eax
push 0
mov dword [esp + 0x18], ecx
push ecx
push dword [ebp + 0x1c]
push edx
call sym.fastboot.exe_EVP_Digest
add esp, 0x18
xor ecx, ecx
test eax, eax
je 0x4ebce7
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x14]
sub edx, ecx
add ebx, edx
mov eax, dword [esp + 4]
mov edi, dword [esp + 0xc]
je 0x4ebd54
mov eax, dword [esp + 4]
add eax, edi
push ebx
push 0
push eax
mov ebx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [esp + 0x10]
mov edx, ebx
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov ebx, eax
not eax
add edx, eax
mov byte [edi + edx], 1
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
test ecx, ecx
mov eax, edi
mov edi, dword [esp + 0x10]
je 0x4ebd87
add eax, edi
sub eax, ecx
sub eax, dword [esp + 4]
push ecx
push dword [ebp + 0x10]
push eax
mov ebx, edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, ebx
add esp, 0xc
mov dword [esp + 0x18], edx
push 0x56fcd2
mov ebx, dword [esp + 8]
push ebx
push edx
call fcn.004cb6b0
add esp, 0xc
sub edi, ebx
push edi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4ebdfb
mov dword [esp + 8], eax
mov ecx, eax
mov edx, edi
push dword [esp + 0x1c]
push dword [esp + 8]
push dword [esp + 0x20]
call fcn.004ec090
add esp, 0xc
mov dword [esp + 0x14], 0
test eax, eax
je 0x4ec079
test edi, edi
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, edi
je 0x4ebf2c
xor eax, eax
cmp ecx, 8
jae 0x4ebe0c
mov ebx, dword [esp + 0xc]
jmp 0x4ebf1b
push 0x169
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x4ebcd9
mov edi, ecx
add ecx, edx
mov ebx, dword [esp + 0xc]
cmp ebx, ecx
mov ecx, edi
jae 0x4ebe25
add esi, dword [ebp + 8]
cmp edx, esi
jb 0x4ebf1b
xor eax, eax
cmp ecx, 0x20
jb 0x4ebef4
mov dword [esp + 0x10], ecx
mov eax, ecx
and eax, 0xffffffe0
lea ecx, [eax - 0x20]
mov esi, ecx
shr esi, 5
add esi, 1
test ecx, ecx
je 0x4ebeaf
mov edi, esi
and esi, 0xfffffffe
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 4]
lea ebx, [edx + ecx]
add ebx, 0x31
xor ecx, ecx
mov edx, dword [esp + 8]
movups xmm0, xmmword [edx + ecx]
movups xmm1, xmmword [edx + ecx + 0x10]
movups xmm2, xmmword [ebx + ecx - 0x30]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx - 0x20]
xorps xmm0, xmm1
movups xmmword [ebx + ecx - 0x30], xmm2
movups xmmword [ebx + ecx - 0x20], xmm0
movups xmm0, xmmword [edx + ecx + 0x20]
movups xmm1, xmmword [edx + ecx + 0x30]
movups xmm2, xmmword [ebx + ecx - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx]
xorps xmm0, xmm1
movups xmmword [ebx + ecx - 0x10], xmm2
movups xmmword [ebx + ecx], xmm0
add ecx, 0x40
add esi, 0xfffffffe
jne 0x4ebe60
jmp 0x4ebeb7
mov edi, esi
xor ecx, ecx
mov edx, dword [esp + 8]
mov ebx, edi
test bl, 1
je 0x4ebee3
movups xmm0, xmmword [edx + ecx]
movups xmm1, xmmword [edx + ecx + 0x10]
mov esi, dword [esp + 0xc]
movups xmm2, xmmword [esi + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + ecx], xmm2
movups xmmword [esi + ecx + 0x10], xmm0
mov ecx, dword [esp + 0x10]
cmp ecx, eax
mov ebx, dword [esp + 0xc]
je 0x4ebf2c
test cl, 0x18
je 0x4ebf1b
mov edi, ecx
mov ecx, eax
mov esi, edi
mov eax, edi
and eax, 0xfffffff8
movsd xmm0, qword [edx + ecx]
movsd xmm1, qword [ebx + ecx]
xorps xmm1, xmm0
movlps qword [ebx + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x4ebeff
mov ecx, esi
jmp 0x4ebf28
mov esi, ecx
mov cl, byte [edx + eax]
xor byte [ebx + eax], cl
mov ecx, esi
add eax, 1
cmp esi, eax
jne 0x4ebf1b
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov eax, ecx
lea ecx, [esp + 0x20]
mov esi, dword [esp + 4]
mov edx, esi
push dword [esp + 0x1c]
push eax
push ebx
call fcn.004ec090
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
je 0x4ec07d
test esi, esi
je 0x4ec003
mov dword [esp + 0x14], 1
xor eax, eax
cmp esi, 8
mov edx, dword [esp + 0x18]
jb 0x4ec06b
xor eax, eax
cmp esi, 0x20
jb 0x4ec049
mov eax, esi
and eax, 0xffffffe0
lea ecx, [eax - 0x20]
mov edx, ecx
shr edx, 5
add edx, 1
test ecx, ecx
je 0x4ec00d
mov esi, edx
and esi, 0xfffffffe
xor ecx, ecx
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [esp + ecx + 0x20]
movups xmm1, xmmword [esp + ecx + 0x30]
movups xmm2, xmmword [ebx + ecx + 1]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx + 0x11]
xorps xmm0, xmm1
movups xmmword [ebx + ecx + 1], xmm2
movups xmmword [ebx + ecx + 0x11], xmm0
movups xmm0, xmmword [esp + ecx + 0x40]
movups xmm1, xmmword [esp + ecx + 0x50]
movups xmm2, xmmword [ebx + ecx + 0x21]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx + 0x31]
xorps xmm0, xmm1
movups xmmword [ebx + ecx + 0x21], xmm2
movups xmmword [ebx + ecx + 0x31], xmm0
add ecx, 0x40
add esi, 0xfffffffe
jne 0x4ebfb1
jmp 0x4ec00f
mov dword [esp + 0x14], 1
jmp 0x4ec07d
xor ecx, ecx
test dl, 1
mov edx, dword [esp + 0x18]
je 0x4ec03a
movups xmm0, xmmword [esp + ecx + 0x20]
movups xmm1, xmmword [esp + ecx + 0x30]
movups xmm2, xmmword [edx + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [edx + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [edx + ecx], xmm2
movups xmmword [edx + ecx + 0x10], xmm0
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4ec079
test cl, 0x18
mov esi, ecx
je 0x4ec06b
mov ecx, eax
mov eax, esi
and eax, 0xfffffff8
movsd xmm0, qword [esp + ecx + 0x20]
movsd xmm1, qword [edx + ecx]
xorps xmm1, xmm0
movlps qword [edx + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x4ec050
jmp 0x4ec075
mov cl, byte [esp + eax + 0x20]
xor byte [edx + eax], cl
add eax, 1
cmp esi, eax
jne 0x4ec06b
mov ecx, dword [esp + 8]
push ecx
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov ecx, dword [esp + 0x14]
jmp 0x4ebce7