Function at 0x4ee020
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebp, dword [esp + 0x44]
push ebp
call fcn.004f0720
add esp, 4
xor edi, edi
test eax, eax
je 0x4ee71d
mov eax, dword [ebp]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4ee05f
push ebp
call eax
add esp, 4
mov ebx, eax
cmp ebx, dword [esp + 0x50]
ja 0x4ee11e
jmp 0x4ee13e
mov esi, dword [ebp + 4]
mov ebx, dword [esi + 4]
xor edx, edx
test ebx, ebx
cmovs edx, ebx
mov eax, ebx
nop
test eax, eax
jle 0x4ee083
mov ecx, dword [esi]
mov ecx, dword [ecx + eax*4 - 4]
add eax, 0xffffffff
test ecx, ecx
je 0x4ee070
jmp 0x4ee09b
test ebx, ebx
mov ebx, 0
jns 0x4ee13e
mov eax, dword [esi]
mov ecx, dword [eax + edx*4 - 4]
add edx, 0xffffffff
mov eax, edx
shl eax, 5
mov esi, ecx
shr esi, 0x10
xor ebx, ebx
cmp ecx, 0x10000
cmovb esi, ecx
setae bl
shl ebx, 4
mov ebp, esi
shr ebp, 8
xor edx, edx
cmp esi, 0x100
setae dl
mov dword [esp + 8], edx
cmovb ebp, esi
mov esi, ebp
shr esi, 4
xor edx, edx
cmp ebp, 0x10
setae dl
mov dword [esp + 0x18], edx
cmovb esi, ebp
mov ebp, esi
shr ebp, 2
xor edx, edx
cmp esi, 4
cmovb ebp, esi
setae dl
cmp ecx, 1
sbb eax, 0
add eax, 8
or eax, ebx
cmp ebp, 2
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 8]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x18]
lea eax, [eax + ecx*4]
lea ebx, [eax + edx*2]
sbb ebx, 0xffffffff
shr ebx, 3
cmp ebx, dword [esp + 0x50]
jbe 0x4ee13e
push 0x115
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x87
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x4ee71d
push 0x18
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4ee191
mov esi, 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 0x4ee1af
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0x20
mov ecx, dword [esi + 8]
mov dword [eax + ecx*4], 0
add dword [esi + 8], 1
jmp 0x4ee1b5
push 0x6f
push str.external_boringssl_src_crypto_fipsmodule_bn_ctx.c
push 0x41
push 0
push 3
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor edi, edi
xor ebx, ebx
jmp 0x4ee714
mov word [esi + 0x14], 0x101
push esi
call sym.fastboot.exe_BN_CTX_get
add esp, 4
mov edi, eax
push esi
call sym.fastboot.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
push ebx
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
mov ebx, eax
test edi, edi
je 0x4ee21f
cmp dword [esp + 0x18], 0
je 0x4ee21f
test ebx, ebx
je 0x4ee21f
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
cmp edx, 4
je 0x4ee23e
cmp edx, 3
je 0x4ee271
cmp edx, 1
jne 0x4ee285
push ecx
push eax
push dword [esp + 0x1c]
push ebx
call fcn.004eb9d0
add esp, 0x10
test eax, eax
jg 0x4ee2b5
jmp 0x4ee26a
push 0x123
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 edi, edi
jmp 0x4ee6d3
sub esp, 0x20
pxor xmm0, xmm0
movdqu xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.fastboot.exe_RSA_padding_add_PKCS1_OAEP_mgf1
add esp, 0x20
test eax, eax
jg 0x4ee2b5
xor edi, edi
jmp 0x4ee6d3
cmp dword [esp + 0x14], ecx
jae 0x4ee296
push 0x104
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x4ee22b
push 0x134
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x8f
jmp 0x4ee22b
jbe 0x4ee2a6
push 0x109
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x74
jmp 0x4ee22b
test ecx, ecx
je 0x4ee2b5
push ecx
push eax
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp], edi
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4ee308
lea ebp, [ebx - 1]
mov edi, ebp
shr edi, 2
add edi, 1
push edi
push dword [esp + 4]
call fcn.004b36f0
add esp, 8
test eax, eax
je 0x4ee6cd
mov eax, dword [esp]
mov dword [eax + 4], edi
mov dword [eax + 0xc], 0
and ebp, 3
xor ecx, ecx
cmp ebx, 1
mov dword [esp + 0x10], esi
jne 0x4ee31d
mov eax, dword [esp + 4]
mov ebx, dword [esp]
jmp 0x4ee37a
mov dword [esp + 0x10], esi
mov ebx, dword [esp]
mov dword [ebx + 4], 0
xor edx, edx
jmp 0x4ee39a
mov edx, ebx
and edx, 0xfffffffe
xor ecx, ecx
mov esi, dword [esp + 4]
mov ebx, dword [esp]
jmp 0x4ee338
lea esi, [eax + 2]
add edx, 0xfffffffe
je 0x4ee377
mov eax, esi
shl ecx, 8
movzx esi, byte [esi]
or esi, ecx
sub ebp, 1
jae 0x4ee357
mov ecx, dword [ebx]
mov dword [ecx + edi*4 - 4], esi
add edi, 0xffffffff
xor esi, esi
mov ebp, 3
shl esi, 8
movzx ecx, byte [eax + 1]
or ecx, esi
sub ebp, 1
jae 0x4ee330
mov esi, dword [ebx]
mov dword [esi + edi*4 - 4], ecx
add edi, 0xffffffff
xor ecx, ecx
mov ebp, 3
jmp 0x4ee330
add eax, 2
test byte [esp + 0x14], 1
je 0x4ee393
test ebp, ebp
jne 0x4ee393
shl ecx, 8
movzx eax, byte [eax]
or eax, ecx
mov ecx, dword [ebx]
mov dword [ecx + edi*4 - 4], eax
mov edx, dword [ebx + 4]
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp + 4]
mov ecx, dword [ebx]
mov dword [esp + 0xc], ecx
mov ebp, dword [eax]
mov dword [esp + 0x24], eax
mov esi, dword [eax + 4]
cmp edx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
cmovb esi, edx
test esi, esi
mov dword [esp + 8], ebp
je 0x4ee3fe
xor ecx, ecx
xor ebx, ebx
mov edx, dword [esp + 0xc]
nop dword [eax]
mov edi, dword [edx + ebx*4]
mov eax, dword [esp + 8]
mov ebp, dword [eax + ebx*4]
mov eax, edi
sub eax, ebp
xor ebp, edi
xor eax, edi
or eax, ebp
xor eax, edi
sar eax, 0x1f
or eax, 1
test ebp, ebp
mov ebp, dword [esp + 8]
cmovne ecx, eax
add ebx, 1
cmp esi, ebx
jne 0x4ee3d0
jmp 0x4ee400
xor ecx, ecx
mov edx, dword [esp + 0x28]
mov eax, edx
mov edi, dword [esp + 0x2c]
sub eax, edi
jae 0x4ee425
mov esi, edi
sub esi, edx
xor eax, eax
cmp esi, 8
jae 0x4ee46d
mov esi, dword [esp + 0x10]
mov ebp, dword [esp]
jmp 0x4ee580
jbe 0x4ee49d
xor esi, esi
cmp eax, 8
mov ebp, dword [esp + 0x44]
jb 0x4ee689
mov dword [esp + 8], eax
and eax, 0xfffffff8
mov dword [esp + 0x20], eax
add eax, 0xfffffff8
mov ebx, eax
shr ebx, 3
add ebx, 1
mov esi, ebx
and esi, 3
mov dword [esp + 0x1c], esi
cmp eax, 0x18
jae 0x4ee5b5
pxor xmm0, xmm0
xor ebp, ebp
pxor xmm1, xmm1
jmp 0x4ee623
mov dword [esp + 0xc], esi
and esi, 0xfffffff8
mov dword [esp + 0x20], esi
lea eax, [esi - 8]
mov ebx, eax
shr ebx, 3
add ebx, 1
mov esi, ebx
and esi, 3
mov dword [esp + 0x1c], esi
cmp eax, 0x18
jae 0x4ee4ad
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
jmp 0x4ee51a
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp]
jmp 0x4ee6b1
and ebx, 0xfffffffc
lea esi, [edx*4 + 0x70]
add esi, ebp
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
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 ebx, 0xfffffffc
jne 0x4ee4c3
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4ee54d
add eax, edx
mov esi, dword [esp + 8]
lea eax, [esi + eax*4]
add eax, 0x10
shl ebx, 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 ebx, esi
jne 0x4ee533
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
mov esi, dword [esp + 0x20]
cmp dword [esp + 0xc], esi
mov ebp, dword [esp]
jne 0x4ee57a
mov esi, dword [esp + 0x10]
jmp 0x4ee59a
add edx, esi
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 8]
nop word cs:[eax + eax]
nop
or eax, dword [ebx + edx*4]
add edx, 1
cmp edi, edx
jne 0x4ee590
mov edx, eax
not edx
add eax, 0xffffffff
and eax, edx
sar eax, 0x1f
not eax
or ecx, eax
mov ebx, ebp
mov ebp, dword [esp + 0x44]
jmp 0x4ee6b1
and ebx, 0xfffffffc
mov eax, dword [esp + 0xc]
lea esi, [eax + edi*4]
add esi, 0x70
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 ebx, 0xfffffffc
jne 0x4ee5cc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ee656
add ebp, edi
mov esi, dword [esp + 0xc]
lea esi, [esi + ebp*4]
add esi, 0x10
shl eax, 5
xor ebx, ebx
movdqu xmm2, xmmword [esi + ebx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [esi + ebx]
por xmm1, xmm2
add ebx, 0x20
cmp eax, ebx
jne 0x4ee63c
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd esi, xmm0
mov ebx, dword [esp + 0x20]
cmp dword [esp + 8], ebx
jne 0x4ee683
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp]
jmp 0x4ee69a
add edi, ebx
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp]
mov eax, dword [esp + 0xc]
or esi, dword [eax + edi*4]
add edi, 1
cmp edx, edi
jne 0x4ee690
mov eax, esi
not eax
add esi, 0xffffffff
and esi, eax
sar esi, 0x1f
and ecx, esi
add ecx, esi
add ecx, 1
mov esi, dword [esp + 0x10]
test ecx, ecx
js 0x4ee727
push 0x142
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 edi, edi
mov ebx, dword [esp + 4]
cmp byte [esi + 0x14], 0
jne 0x4ee6ec
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
lea edx, [ecx - 1]
mov dword [esi + 8], edx
mov eax, dword [eax + ecx*4 - 4]
mov dword [esi + 0x10], eax
push sym.fastboot.exe_BN_free
push 0x4fa650
push dword [esi]
call sym.fastboot.exe_sk_pop_free_ex
add esp, 0xc
push dword [esi + 4]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
push ebx
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp + 0x34]
lea ecx, [ebp + 0x30]
push esi
push dword [esp + 0x28]
push ecx
push eax
call fcn.004c5170
add esp, 0x10
xor edi, edi
test eax, eax
je 0x4ee6cf
mov eax, dword [ebp + 0x34]
push eax
add eax, 0x14
push esi
push eax
push dword [ebp + 8]
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
call sym.fastboot.exe_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x4ee6cf
push ebx
mov ebx, dword [esp + 0x18]
push ebx
push dword [esp + 0x54]
call sym.fastboot.exe_BN_bn2bin_padded
add esp, 0xc
test eax, eax
je 0x4ee78a
mov eax, dword [esp + 0x48]
mov dword [eax], ebx
mov edi, 1
jmp 0x4ee6cf
push 0x14e
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x44
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x4ee6cf