Function at 0x4ec220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov edi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
test edx, edx
jne 0x4ec257
push 0x4d2110
push 0x587f50
mov esi, ecx
call sym.fastboot.exe_CRYPTO_once
mov ecx, esi
add esp, 8
mov edx, 0x587f54
test edi, edi
cmove edi, edx
mov ebx, dword [edx + 4]
lea eax, [ebx + ebx]
add eax, 2
xor esi, esi
cmp eax, ecx
jbe 0x4ec28b
push 0x1de
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x85
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x4ec695
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov edi, ebx
not edi
add edi, ecx
push edi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4ec392
mov esi, eax
mov eax, dword [ebp + 0x14]
add eax, ebx
add eax, 1
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
lea ecx, [esp + 0x20]
mov edx, ebx
push dword [esp + 0x10]
mov dword [esp + 0x18], edi
push edi
mov dword [esp + 0x14], eax
push eax
call fcn.004ec090
add esp, 0xc
test eax, eax
je 0x4ec695
test ebx, ebx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
je 0x4ec43f
mov eax, dword [ebp + 0x14]
add eax, 1
xor ecx, ecx
cmp ebx, 8
jb 0x4ec422
xor ecx, ecx
cmp ebx, 0x20
jb 0x4ec3f0
mov ecx, ebx
and ecx, 0xffffffe0
lea edx, [ecx - 0x20]
mov esi, edx
shr esi, 5
add esi, 1
test edx, edx
je 0x4ec3b1
mov edi, esi
and esi, 0xfffffffe
xor edx, edx
mov ebx, dword [ebp + 0x14]
nop dword [eax]
movups xmm0, xmmword [ebx + edx + 1]
movups xmm1, xmmword [ebx + edx + 0x11]
movups xmm2, xmmword [esp + edx + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [esp + edx + 0x30]
xorps xmm0, xmm1
movups xmmword [esp + edx + 0x20], xmm2
movups xmmword [esp + edx + 0x30], xmm0
movups xmm0, xmmword [ebx + edx + 0x21]
movups xmm1, xmmword [ebx + edx + 0x31]
movups xmm2, xmmword [esp + edx + 0x40]
xorps xmm2, xmm0
movups xmm0, xmmword [esp + edx + 0x50]
xorps xmm0, xmm1
movups xmmword [esp + edx + 0x40], xmm2
movups xmmword [esp + edx + 0x50], xmm0
add edx, 0x40
add esi, 0xfffffffe
jne 0x4ec340
jmp 0x4ec3b5
push 0x19f
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor esi, esi
jmp 0x4ec695
mov edi, esi
xor edx, edx
mov ebx, edi
test bl, 1
mov esi, dword [esp + 8]
je 0x4ec3e3
movups xmm0, xmmword [eax + edx]
movups xmm1, xmmword [eax + edx + 0x10]
movups xmm2, xmmword [esp + edx + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [esp + edx + 0x30]
xorps xmm0, xmm1
movups xmmword [esp + edx + 0x20], xmm2
movups xmmword [esp + edx + 0x30], xmm0
mov ebx, dword [esp + 4]
cmp ebx, ecx
je 0x4ec43f
test bl, 0x18
je 0x4ec422
mov edx, ecx
mov ecx, ebx
and ecx, 0xfffffff8
nop word [eax + eax]
movsd xmm0, qword [eax + edx]
movsd xmm1, qword [esp + edx + 0x20]
xorps xmm1, xmm0
movlps qword [esp + edx + 0x20], xmm1
add edx, 8
cmp ecx, edx
jne 0x4ec400
mov ebx, dword [esp + 4]
cmp ebx, ecx
je 0x4ec43f
mov ebx, dword [esp + 4]
nop word cs:[eax + eax]
movzx edx, byte [eax + ecx]
xor byte [esp + ecx + 0x20], dl
add ecx, 1
cmp ebx, ecx
jne 0x4ec430
mov ecx, esi
mov edi, dword [esp + 0x14]
mov edx, edi
push dword [esp + 0x10]
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.004ec090
add esp, 0xc
test eax, eax
je 0x4ec695
test edi, edi
mov ebx, dword [ebp + 0x14]
mov ecx, edi
je 0x4ec5fd
xor edx, edx
cmp ecx, 8
jb 0x4ec580
mov eax, dword [ebp + 0x18]
add eax, ebx
cmp esi, eax
jae 0x4ec48f
lea eax, [esi + ecx]
cmp dword [esp + 0xc], eax
jb 0x4ec580
xor edx, edx
cmp ecx, 0x20
jb 0x4ec554
mov edx, ecx
and edx, 0xffffffe0
lea eax, [edx - 0x20]
mov ecx, eax
shr ecx, 5
add ecx, 1
test eax, eax
je 0x4ec511
mov eax, ecx
and eax, 0xfffffffe
mov esi, dword [esp + 4]
add esi, ebx
add esi, 0x31
xor edi, edi
mov ebx, dword [esp + 8]
movups xmm0, xmmword [esi + edi - 0x30]
movups xmm1, xmmword [esi + edi - 0x20]
movups xmm2, xmmword [ebx + edi]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + edi + 0x10]
xorps xmm0, xmm1
movups xmmword [ebx + edi], xmm2
movups xmmword [ebx + edi + 0x10], xmm0
movups xmm0, xmmword [esi + edi - 0x10]
movups xmm1, xmmword [esi + edi]
movups xmm2, xmmword [ebx + edi + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + edi + 0x30]
xorps xmm0, xmm1
movups xmmword [ebx + edi + 0x20], xmm2
movups xmmword [ebx + edi + 0x30], xmm0
add edi, 0x40
add eax, 0xfffffffe
jne 0x4ec4c2
jmp 0x4ec517
xor edi, edi
mov ebx, dword [esp + 8]
test cl, 1
mov esi, ebx
je 0x4ec543
mov eax, dword [esp + 0xc]
movups xmm0, xmmword [eax + edi]
movups xmm1, xmmword [eax + edi + 0x10]
movups xmm2, xmmword [esi + edi]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + edi + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + edi], xmm2
movups xmmword [esi + edi + 0x10], xmm0
mov ecx, dword [esp + 0x14]
cmp ecx, edx
je 0x4ec5fd
test cl, 0x18
je 0x4ec580
mov eax, edx
mov edx, ecx
and edx, 0xfffffff8
mov edi, dword [esp + 0xc]
nop
movsd xmm0, qword [edi + eax]
movsd xmm1, qword [esi + eax]
xorps xmm1, xmm0
movlps qword [esi + eax], xmm1
add eax, 8
cmp edx, eax
jne 0x4ec560
cmp ecx, edx
je 0x4ec5fd
mov eax, dword [esp + 4]
add eax, edx
neg eax
mov edi, ecx
mov ecx, dword [ebp + 0x18]
add eax, ecx
add eax, 0xfffffffe
mov ecx, edi
and ecx, 3
je 0x4ec5af
mov edi, dword [esp + 0xc]
nop dword [eax]
movzx ebx, byte [edi + edx]
xor byte [esi + edx], bl
add edx, 1
add ecx, 0xffffffff
jne 0x4ec5a0
cmp eax, 3
mov ecx, dword [esp + 0x14]
mov ebx, dword [ebp + 0x14]
jb 0x4ec5fd
mov eax, dword [esp + 4]
add eax, ebx
add eax, 4
nop word cs:[eax + eax]
nop
mov edi, ecx
movzx ecx, byte [eax + edx - 3]
xor byte [esi + edx], cl
movzx ecx, byte [eax + edx - 2]
xor byte [esi + edx + 1], cl
movzx ecx, byte [eax + edx - 1]
xor byte [esi + edx + 2], cl
movzx ecx, byte [eax + edx]
xor byte [esi + edx + 3], cl
mov ecx, edi
add edx, 4
cmp edi, edx
jne 0x4ec5d0
mov ebx, ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
lea esi, [esp + 0x60]
push 0
push dword [esp + 0x1c]
push 0
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call sym.fastboot.exe_EVP_Digest
add esp, 0x18
test eax, eax
je 0x4ec691
mov edi, dword [esp + 4]
push edi
push esi
push dword [esp + 0x10]
call sym.fastboot.exe_CRYPTO_memcmp
mov esi, edi
add esp, 0xc
mov ecx, eax
not ecx
add eax, 0xffffffff
and eax, ecx
mov ecx, ebx
mov edi, dword [ebp + 0x14]
movzx ebx, byte [edi]
add ebx, 0xffffffff
and ebx, eax
sar ebx, 0x1f
not ebx
cmp esi, ecx
jae 0x4ec6a8
lea eax, [esi + esi]
mov edi, eax
not edi
mov ecx, dword [ebp + 0x18]
add edi, ecx
add ecx, 0xfffffffe
cmp ecx, eax
mov dword [esp + 0x1c], edi
jne 0x4ec6b7
mov ecx, 0xffffffff
xor eax, eax
jmp 0x4ec768
mov esi, dword [esp + 8]
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 1
mov ecx, 0xffffffff
jmp 0x4ec7a1
and edi, 0xfffffffe
mov ecx, 0xffffffff
xor eax, eax
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov dword [esp + 0x18], edi
mov edx, dword [esp + 4]
xor edx, eax
mov edi, dword [esp + 4]
mov esi, dword [esp + 8]
movzx ebx, byte [esi + edi]
cmp bl, 1
mov esi, 0
cmove esi, ecx
mov edi, 0
cmove ecx, edi
and esi, edx
xor esi, eax
test bl, bl
mov edx, ecx
cmove edx, edi
mov eax, dword [esp + 8]
mov edi, dword [esp + 4]
movzx eax, byte [eax + edi + 1]
mov byte [esp + 0x10], al
or edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
lea ebx, [eax + 1]
xor ebx, esi
cmp byte [esp + 0x10], 1
mov eax, 0
cmove eax, ecx
mov edi, 0
cmove ecx, edi
and eax, ebx
xor eax, esi
cmp byte [esp + 0x10], 0
mov ebx, ecx
mov edi, 0
cmove ebx, edi
or ebx, edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x18]
add esi, 2
add edi, 0xfffffffe
jne 0x4ec6d0
test byte [esp + 0x1c], 1
je 0x4ec79e
mov edx, dword [esp + 8]
mov dl, byte [edx + esi]
mov byte [esp + 4], dl
xor esi, eax
mov edi, esi
xor edx, edx
cmp byte [esp + 4], 1
mov esi, 0
cmove esi, ecx
cmove ecx, edx
and esi, edi
xor eax, esi
cmp byte [esp + 4], 0
cmovne edx, ecx
or ebx, edx
add eax, 1
or ebx, ecx
mov esi, dword [esp + 8]
jne 0x4ec26b
mov ebx, dword [esp + 0x14]
sub ebx, eax
cmp ebx, dword [ebp + 0x10]
jbe 0x4ec7c9
push 0x1d2
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
jmp 0x4ec27a
mov edi, esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4ec7e3
mov ecx, edi
add ecx, eax
push ebx
push ecx
push dword [ebp + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esi], ebx
push edi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, 1
jmp 0x4ec6a0