Function at 0x4ec800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x20], xmm0
test esi, esi
cmove esi, ecx
mov ecx, dword [ecx + 4]
mov edx, ecx
cmp eax, 0xffffffff
je 0x4ec867
cmp eax, 0xfffffffe
jne 0x4ec84f
mov edx, 0xfffffffe
jmp 0x4ec867
mov edx, eax
jge 0x4ec867
push 0x202
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4ecbbf
mov dword [esp + 0x10], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov esi, dword [ecx + 4]
xor eax, eax
test esi, esi
cmovs eax, esi
mov dword [esp + 8], eax
mov ebx, esi
mov dword [esp + 4], esi
nop dword [eax]
test ebx, ebx
jle 0x4ec8a3
mov eax, dword [ecx]
mov edi, dword [eax + ebx*4 - 4]
add ebx, 0xffffffff
test edi, edi
je 0x4ec890
jmp 0x4ec8ba
xor ebx, ebx
test esi, esi
jns 0x4ec93b
mov eax, dword [ecx]
mov edx, dword [esp + 8]
lea ebx, [edx - 1]
mov edi, dword [eax + edx*4 - 4]
shl ebx, 5
xor eax, eax
test edi, edi
setne al
mov esi, edi
shr esi, 0x10
xor edx, edx
cmp edi, 0x10000
setae dl
cmovb esi, edi
shl edx, 4
mov dword [esp + 0x14], edx
mov edi, esi
shr edi, 8
xor edx, edx
cmp esi, 0x100
cmovb edi, esi
setae dl
mov dword [esp], edx
mov esi, edi
shr esi, 4
xor edx, edx
cmp edi, 0x10
cmovb esi, edi
setae dl
mov dword [esp + 0xc], edx
mov edi, esi
shr edi, 2
xor edx, edx
cmp esi, 4
cmovb edi, esi
mov esi, dword [esp + 4]
setae dl
or eax, ebx
add eax, dword [esp + 0x14]
mov ebx, dword [esp]
lea eax, [eax + ebx*8]
mov ebx, dword [esp + 0xc]
lea eax, [eax + ebx*4]
cmp edi, 2
lea ebx, [eax + edx*2]
mov edx, dword [ebp + 8]
sbb ebx, 0xffffffff
add ebx, 0xffffffff
and ebx, 7
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4ec96d
push edx
call eax
add esp, 4
mov edx, eax
jmp 0x4eca08
mov eax, dword [ecx]
mov edi, dword [eax + esi*4 - 4]
add esi, 0xffffffff
test edi, edi
jne 0x4ec98b
test esi, esi
jg 0x4ec960
xor edx, edx
cmp dword [esp + 4], 0
jns 0x4eca08
mov eax, dword [ecx]
mov esi, dword [esp + 8]
mov edi, dword [eax + esi*4 - 4]
add esi, 0xffffffff
shl esi, 5
mov dword [esp + 0x14], ebx
mov ebx, edi
shr ebx, 0x10
xor eax, eax
cmp edi, 0x10000
setae al
cmovb ebx, edi
shl eax, 4
mov dword [esp + 4], eax
mov edx, ebx
shr edx, 8
xor eax, eax
cmp ebx, 0x100
cmovb edx, ebx
setae al
mov dword [esp], eax
mov eax, edx
shr eax, 4
xor ebx, ebx
cmp edx, 0x10
cmovb eax, edx
setae bl
mov ecx, eax
shr ecx, 2
xor edx, edx
cmp eax, 4
cmovb ecx, eax
setae dl
cmp edi, 1
sbb esi, 0
add esi, 8
or esi, dword [esp + 4]
cmp ecx, 2
mov eax, dword [esp]
lea eax, [esi + eax*8]
lea eax, [eax + ebx*4]
mov ebx, dword [esp + 0x14]
lea edx, [eax + edx*2]
sbb edx, 0xffffffff
shr edx, 3
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov ecx, ebx
shr eax, cl
test eax, eax
je 0x4eca27
push 0x209
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7a
jmp 0x4ecbbf
xor eax, eax
test ebx, ebx
sete al
mov ecx, edx
mov dword [esp + 4], eax
sub ecx, eax
mov edi, dword [esp + 0x1c]
lea eax, [edi + 2]
cmp ecx, eax
mov eax, dword [esp + 0x34]
jl 0x4ecb97
add eax, edi
add eax, 2
cmp ecx, eax
jl 0x4ecb97
mov eax, dword [ebp + 0x18]
mov esi, dword [esp + 4]
add eax, esi
mov dword [esp + 0xc], eax
cmp byte [ecx + eax - 1], 0xbc
jne 0x4ecba5
mov dword [esp + 8], edx
mov eax, edi
not eax
mov dword [esp + 0x18], eax
add ecx, eax
mov dword [esp], ecx
push ecx
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4ecbb3
mov esi, eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
add eax, edx
mov ecx, esi
push dword [esp + 0x10]
push edi
mov dword [esp + 0x44], eax
push eax
call fcn.004ec090
add esp, 0xc
test eax, eax
je 0x4ecbff
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 4]
neg eax
mov dword [esp + 0x10], eax
cmp dword [esp], 0
mov edi, dword [ebp + 0x18]
jle 0x4ecc9e
xor ecx, ecx
mov ebx, 0
cmp dword [esp], 8
jb 0x4ecc6a
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
add eax, edx
add eax, dword [esp + 4]
add eax, dword [esp + 0x18]
add eax, edi
cmp esi, eax
jae 0x4ecb0f
mov eax, dword [esp]
add eax, esi
mov ebx, 0
cmp dword [esp + 0xc], eax
jb 0x4ecc6a
xor ebx, ebx
cmp dword [esp], 0x20
jb 0x4ecc3f
mov ebx, dword [esp]
and ebx, 0xffffffe0
lea eax, [ebx - 0x20]
mov edx, eax
shr edx, 5
add edx, 1
test eax, eax
mov dword [esp + 0x38], edx
je 0x4ecc03
mov eax, edx
and eax, 0xfffffffe
mov edx, dword [esp + 4]
add edx, edi
add edx, 0x30
xor edi, edi
movups xmm0, xmmword [edx + edi - 0x30]
movups xmm1, xmmword [edx + edi - 0x20]
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
movups xmm0, xmmword [edx + edi - 0x10]
movups xmm1, xmmword [edx + edi]
movups xmm2, xmmword [esi + edi + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + edi + 0x30]
xorps xmm0, xmm1
movups xmmword [esi + edi + 0x20], xmm2
movups xmmword [esi + edi + 0x30], xmm0
add edi, 0x40
add eax, 0xfffffffe
jne 0x4ecb48
jmp 0x4ecc05
push 0x212
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
jmp 0x4ecbbf
push 0x216
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7f
jmp 0x4ecbbf
push 0x21d
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 edi, edi
xor esi, esi
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
push dword [esp + 0x24]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ecbf5
push dword [esp + 0x28]
call dword [eax]
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x4ecbcf
xor edi, edi
test byte [esp + 0x38], 1
je 0x4ecc31
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
cmp dword [esp], ebx
mov edi, dword [ebp + 0x18]
je 0x4ecc9e
test byte [esp], 0x18
je 0x4ecc6a
mov eax, ebx
mov edx, dword [esp]
and edx, 0xfffffff8
mov ebx, dword [esp + 0xc]
movsd xmm0, qword [ebx + eax]
movsd xmm1, qword [esi + eax]
xorps xmm1, xmm0
movlps qword [esi + eax], xmm1
add eax, 8
cmp edx, eax
jne 0x4ecc4b
cmp dword [esp], edx
mov ebx, edx
je 0x4ecc9e
mov eax, dword [esp + 4]
add eax, ebx
add edi, eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
add eax, edx
sub eax, ebx
add eax, dword [esp + 0x18]
lea edx, [esi + ebx]
nop word cs:[eax + eax]
nop
movzx ebx, byte [edi + ecx]
xor byte [edx + ecx], bl
add ecx, 1
cmp eax, ecx
jne 0x4ecc90
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4eccb3
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [esi], al
mov eax, dword [esp]
add eax, 0xffffffff
xor ecx, ecx
nop dword [eax + eax]
movzx edx, byte [esi + ecx]
lea ebx, [ecx + 1]
test dl, dl
jne 0x4eccd1
cmp ecx, eax
mov ecx, ebx
jl 0x4eccc0
cmp dl, 1
jne 0x4ecd03
mov eax, dword [esp + 0x34]
test eax, eax
js 0x4ecd25
mov ecx, dword [esp + 8]
add ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x18]
add eax, ecx
cmp eax, ebx
je 0x4ecd25
push 0x231
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4ecd12
push 0x22d
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8b
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor edi, edi
jmp 0x4ecbcf
sub esp, 4
lea eax, [esp + 0x24]
push dword [ebp + 0x10]
push eax
call sym.fastboot.exe_EVP_DigestInit_ex
add esp, 0xc
xor edi, edi
test eax, eax
je 0x4ecbcf
sub dword [esp], ebx
mov eax, dword [esp + 0x20]
push 8
push 0x56fd61
lea ecx, [esp + 0x28]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x1c]
push dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, esi
add eax, ebx
mov ecx, dword [esp + 0x20]
push dword [esp]
push eax
lea ebx, [esp + 0x28]
push ebx
call dword [ecx + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push ecx
push ebx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x20]
push dword [eax + 0x1c]
push dword [esp + 0x28]
call sym.fastboot.exe_OPENSSL_cleanse
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4ecde6
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4ecde6
push 0x23c
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x69
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x4ecbcf
mov edi, 1
jmp 0x4ecbcf