Function at 0x4ef6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
push ebp
call fcn.004f0720
add esp, 4
xor esi, esi
test eax, eax
je 0x4ef85a
mov eax, dword [ebp]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4ef71d
push ebp
call eax
add esp, 4
cmp eax, dword [esp + 0x4c]
ja 0x4ef7d8
jmp 0x4ef7e9
mov edi, dword [ebp + 4]
mov ebx, dword [edi + 4]
xor edx, edx
test ebx, ebx
cmovs edx, ebx
mov eax, ebx
nop dword [eax]
test eax, eax
jle 0x4ef743
mov ecx, dword [edi]
mov ecx, dword [ecx + eax*4 - 4]
add eax, 0xffffffff
test ecx, ecx
je 0x4ef730
jmp 0x4ef758
xor eax, eax
test ebx, ebx
jns 0x4ef7e9
mov eax, dword [edi]
mov ecx, dword [eax + edx*4 - 4]
add edx, 0xffffffff
mov eax, edx
shl eax, 5
mov edi, ecx
shr edi, 0x10
xor ebx, ebx
cmp ecx, 0x10000
cmovb edi, ecx
setae bl
shl ebx, 4
mov ebp, edi
shr ebp, 8
xor edx, edx
cmp edi, 0x100
setae dl
mov dword [esp], edx
cmovb ebp, edi
mov edi, ebp
shr edi, 4
xor edx, edx
cmp ebp, 0x10
setae dl
mov esi, edx
cmovb edi, ebp
mov ebp, edi
shr ebp, 2
xor edx, edx
cmp edi, 4
cmovb ebp, edi
setae dl
cmp ecx, 1
sbb eax, 0
add eax, 8
or eax, ebx
cmp ebp, 2
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp]
lea eax, [eax + ecx*8]
lea eax, [eax + esi*4]
mov esi, 0
lea eax, [eax + edx*2]
sbb eax, 0xffffffff
shr eax, 3
cmp eax, dword [esp + 0x4c]
jbe 0x4ef7e9
push 0x263
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x87
jmp 0x4ef84e
cmp eax, dword [esp + 0x54]
jne 0x4ef842
push 0x18
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4ef864
mov edi, eax
pxor xmm0, xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x12], 0
mov dword [eax + 0xe], 0
push 0x80
push 0
call sym.fastboot.exe_OPENSSL_realloc
add esp, 8
test eax, eax
je 0x4ef873
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0x20
mov ecx, dword [edi + 8]
mov dword [eax + ecx*4], 0
add dword [edi + 8], 1
jmp 0x4ef879
push 0x268
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x70
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6f
push str.external_boringssl_src_crypto_fipsmodule_bn_ctx.c
push 0x41
push 0
push 3
jmp 0x4ef852
mov word [edi + 0x14], 0x101
push edi
call sym.fastboot.exe_BN_CTX_get
add esp, 4
mov ebx, eax
push edi
call sym.fastboot.exe_BN_CTX_get
add esp, 4
test ebx, ebx
je 0x4ef982
mov esi, eax
test eax, eax
je 0x4ef982
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
cmp dword [esp + 0x58], 3
je 0x4ef8c6
push dword [esp + 0x54]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x4efa03
push ebx
push dword [esp + 0x58]
push dword [esp + 0x58]
call sym.fastboot.exe_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x4ef9a7
mov dword [esp + 0x24], esi
mov dword [esp + 4], edi
mov eax, dword [ebp + 4]
mov ebp, dword [ebx]
mov dword [esp + 0x20], ebx
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp], edx
mov dword [esp + 0x28], eax
mov esi, dword [eax + 4]
cmp ecx, esi
mov eax, esi
mov dword [esp + 8], esi
mov dword [esp + 0x18], ecx
cmovb esi, ecx
xor eax, eax
test esi, esi
je 0x4ef950
xor edi, edi
nop word cs:[eax + eax]
mov ebx, dword [ebp + edi*4]
mov edx, ebp
mov ecx, dword [esp]
mov ebp, dword [ecx + edi*4]
mov ecx, eax
mov eax, ebx
sub eax, ebp
xor ebp, ebx
xor eax, ebx
or eax, ebp
xor eax, ebx
sar eax, 0x1f
or eax, 1
test ebp, ebp
mov ebp, edx
cmovne ecx, eax
mov eax, ecx
add edi, 1
cmp esi, edi
jne 0x4ef920
mov edx, dword [esp + 0x18]
mov edi, edx
mov esi, dword [esp + 8]
sub edi, esi
jae 0x4ef9b6
mov dword [esp + 0x14], eax
mov ecx, esi
sub ecx, edx
xor eax, eax
cmp ecx, 8
jae 0x4efa0d
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
jmp 0x4efb2c
push 0x278
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x41
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor esi, esi
xor ebp, ebp
mov ebx, dword [esp + 0x48]
jmp 0x4efc7c
xor esi, esi
mov ebp, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
jmp 0x4efc7c
jbe 0x4efa46
mov dword [esp], ebp
xor esi, esi
cmp edi, 8
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
jb 0x4efc26
mov dword [esp + 0x10], edi
mov edx, edi
and edx, 0xfffffff8
lea eax, [edx - 8]
mov edi, eax
shr edi, 3
add edi, 1
mov ecx, edi
and ecx, 3
cmp eax, 0x18
jae 0x4efb55
pxor xmm0, xmm0
xor ebp, ebp
pxor xmm1, xmm1
jmp 0x4efbca
push 0x282
jmp 0x4ef987
mov eax, ecx
and eax, 0xfffffff8
mov dword [esp + 0x10], eax
add eax, 0xfffffff8
mov edi, eax
shr edi, 3
add edi, 1
mov esi, edi
and esi, 3
mov dword [esp + 0x1c], esi
cmp eax, 0x18
jae 0x4efa53
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
jmp 0x4efac8
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0x48]
jmp 0x4efc56
and edi, 0xfffffffc
mov eax, dword [esp]
lea esi, [eax + edx*4]
add esi, 0x70
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
movdqu xmm2, xmmword [esi + eax*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [esi + eax*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [esi + eax*4 - 0x50]
movdqu xmm3, xmmword [esi + eax*4 - 0x40]
movdqu xmm4, xmmword [esi + eax*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [esi + eax*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [esi + eax*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [esi + eax*4]
por xmm1, xmm2
add eax, 0x20
add edi, 0xfffffffc
jne 0x4efa71
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4efafe
add eax, edx
mov esi, ecx
mov ecx, dword [esp]
lea eax, [ecx + eax*4]
add eax, 0x10
mov ecx, esi
shl edi, 5
xor esi, esi
movdqu xmm2, xmmword [eax + esi - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [eax + esi]
por xmm1, xmm2
add esi, 0x20
cmp edi, esi
jne 0x4efae4
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
mov esi, dword [esp + 0x10]
cmp ecx, esi
mov edi, dword [esp + 4]
je 0x4efb3a
mov ecx, esi
add edx, esi
mov esi, dword [esp + 8]
mov ecx, dword [esp]
nop
or eax, dword [ecx + edx*4]
add edx, 1
cmp esi, edx
jne 0x4efb30
mov edx, eax
not edx
add eax, 0xffffffff
and eax, edx
sar eax, 0x1f
not eax
mov ecx, dword [esp + 0x14]
or ecx, eax
mov eax, ecx
jmp 0x4efc5a
and edi, 0xfffffffc
mov eax, dword [esp + 8]
mov ebp, edx
mov edx, dword [esp]
lea esi, [edx + eax*4]
add esi, 0x70
mov edx, ebp
pxor xmm0, xmm0
xor ebp, ebp
pxor xmm1, xmm1
movdqu xmm2, xmmword [esi + ebp*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [esi + ebp*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [esi + ebp*4 - 0x50]
movdqu xmm3, xmmword [esi + ebp*4 - 0x40]
movdqu xmm4, xmmword [esi + ebp*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [esi + ebp*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [esi + ebp*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [esi + ebp*4]
por xmm1, xmm2
add ebp, 0x20
add edi, 0xfffffffc
jne 0x4efb73
mov eax, ecx
test ecx, ecx
je 0x4efbfc
add ebp, dword [esp + 8]
mov eax, dword [esp]
lea esi, [eax + ebp*4]
add esi, 0x10
shl ecx, 5
xor edi, edi
movdqu xmm2, xmmword [esi + edi - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [esi + edi]
por xmm1, xmm2
add edi, 0x20
cmp ecx, edi
jne 0x4efbe2
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd esi, xmm0
cmp dword [esp + 0x10], edx
jne 0x4efc22
mov edi, dword [esp + 4]
jmp 0x4efc3f
add dword [esp + 8], edx
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
mov edx, dword [esp]
mov ebp, dword [esp + 0x18]
or esi, dword [edx + eax*4]
add eax, 1
cmp ebp, eax
jne 0x4efc35
mov eax, esi
not eax
add esi, 0xffffffff
and esi, eax
sar esi, 0x1f
mov eax, dword [esp + 0x14]
and eax, esi
add eax, esi
add eax, 1
mov ebp, dword [esp + 0x40]
test eax, eax
js 0x4efcd3
push 0x28c
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x73
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor esi, esi
mov ebp, dword [esp + 0xc]
cmp byte [edi + 0x14], 0
jne 0x4efc95
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
lea edx, [ecx - 1]
mov dword [edi + 8], edx
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi + 0x10], eax
push sym.fastboot.exe_BN_free
push 0x4fa650
push dword [edi]
call sym.fastboot.exe_sk_pop_free_ex
add esp, 0xc
push dword [edi + 4]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
push edi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
cmp ebp, ebx
je 0x4ef85a
push ebp
call sym.fastboot.exe_OPENSSL_free
add esp, 4
jmp 0x4ef85a
lea eax, [ebp + 0x34]
lea ecx, [ebp + 0x30]
push edi
push dword [esp + 0x2c]
push ecx
push eax
call fcn.004c5170
add esp, 0x10
xor esi, esi
test eax, eax
je 0x4efc78
mov eax, dword [ebp + 0x34]
push eax
add eax, 0x14
push edi
push eax
push dword [ebp + 8]
push dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
push ebp
call sym.fastboot.exe_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x4efc78
push ebp
push dword [esp + 0x58]
mov ebp, dword [esp + 0x14]
push ebp
call sym.fastboot.exe_BN_bn2bin_padded
add esp, 0xc
test eax, eax
je 0x4efd5a
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
cmp ecx, 3
je 0x4efd68
cmp ecx, 1
jne 0x4efd78
mov ecx, dword [esp + 0x54]
push ecx
push ebp
push ecx
push eax
push ebx
call fcn.004eb8f0
add esp, 0x14
test eax, eax
je 0x4efd89
mov esi, 1
jmp 0x4efc7c
push 0x296
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x44
jmp 0x4efd98
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov esi, 1
jmp 0x4efc7c
push 0x2a4
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x8f
jmp 0x4efd98
push 0x2a9
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x88
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x4efc7c