Function at 0x4c5330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [edx + 4]
test eax, eax
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c5403
mov ecx, dword [ecx + 4]
xor esi, esi
cmp eax, 8
mov edi, 0
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
jb 0x4c53c7
mov esi, eax
lea edi, [ecx + 0x10]
pxor xmm0, xmm0
pxor xmm1, xmm1
and esi, 0xfffffff8
mov edx, esi
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm2, xmmword [edi - 0x10]
movdqu xmm3, xmmword [edi]
add edi, 0x20
add edx, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x4c5390
por xmm1, xmm0
cmp eax, esi
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd edi, xmm1
je 0x4c53d8
sub eax, esi
lea ecx, [ecx + esi*4]
nop dword [eax]
or edi, dword [ecx]
add ecx, 4
dec eax
jne 0x4c53d0
mov esi, dword [ebp + 8]
test edi, edi
je 0x4c5403
push ebx
call sym.fastboot.exe_BN_num_bits
add esp, 4
dec eax
and eax, 7
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4c5411
push esi
call eax
add esp, 4
mov esi, eax
jmp 0x4c5422
push 0x259
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x78
jmp 0x4c547c
push ebx
call sym.fastboot.exe_BN_num_bits
add esp, 4
mov esi, eax
add esi, 7
shr esi, 3
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp dword [esp + 0x34], 0
jne 0x4c5435
mov byte [ecx], 0
dec esi
inc ecx
lea eax, [edx + 2]
cmp esi, eax
jae 0x4c5443
push 0x266
jmp 0x4c5475
mov eax, dword [ebp + 0x1c]
mov edi, edx
cmp eax, 0xffffffff
je 0x4c5465
cmp eax, 0xfffffffe
jne 0x4c545b
mov edi, esi
sub edi, edx
add edi, 0xfffffffe
jmp 0x4c5465
test eax, eax
mov edi, eax
js 0x4c5612
mov ebx, esi
sub ebx, edx
lea eax, [ebx - 2]
cmp eax, edi
jae 0x4c549f
push 0x27b
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor esi, esi
xor edi, edi
push edi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc], ecx
je 0x4c54d9
push edi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4c5626
mov ecx, edi
mov edi, eax
push 0x520af4
mov dword [esp + 0xc], ecx
push ecx
push eax
call fcn.004aedb0
add esp, 0xc
mov ecx, dword [esp + 0xc]
jmp 0x4c54df
mov dword [esp + 8], edi
xor edi, edi
mov edx, dword [ebp + 0x14]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
test edx, edx
je 0x4c5526
push dword [edx + 0x1c]
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4c5637
push 0
mov dword [esp + 0x1c], eax
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov edx, edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], esi
lea esi, [eax - 1]
lea ebx, [ecx + eax - 1]
mov dword [esp + 0x38], esi
lea esi, [esp + 0x20]
push esi
call dword [edx + 0xc]
add esp, 4
mov eax, dword [esp + 0x20]
push 8
push 0x520b83
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x10]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 8]
push edi
push esi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
push ebx
push esi
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
add esp, 8
push dword [esp + 0x24]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4c55b8
push dword [esp + 0x28]
call dword [eax]
add esp, 4
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x38]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
mov ecx, ebx
push dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push dword [esp + 0x20]
call fcn.004c4aa0
add esp, 0xc
test eax, eax
je 0x4c5663
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x30]
sub eax, esi
xor byte [eax + ebx - 2], 1
test esi, esi
je 0x4c570d
mov ebx, dword [esp + 0xc]
xor ecx, ecx
cmp esi, 0x20
lea eax, [eax + ebx - 2]
jae 0x4c566a
xor edx, edx
jmp 0x4c56f4
push 0x274
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x4c547c
push 0x282
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x4c547c
push 0xc2
push str.external_boringssl_src_crypto_fipsmodule_digest_digest.c
push 0x41
push 0
push 0x1d
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
push 0
call sym.fastboot.exe_OPENSSL_free
add esp, 4
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
xor esi, esi
jmp 0x4c548c
mov edx, dword [esp + 0x14]
mov dword [esp + 8], esi
dec edx
mov dword [esp + 0x1c], edx
sub edx, esi
add esi, edi
sub edx, dword [esp + 0x10]
add edx, ebx
cmp edx, esi
jae 0x4c569d
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x10]
add edx, dword [esp + 0xc]
cmp edi, edx
jae 0x4c569d
mov esi, dword [esp + 8]
xor edx, edx
jmp 0x4c56f4
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0x14]
sub esi, ebx
mov edx, ebx
mov ebx, dword [esp + 0xc]
sub esi, dword [esp + 0x10]
and edx, 0xffffffe0
add eax, edx
lea esi, [esi + ebx + 0xf]
xor ebx, ebx
movdqu xmm0, xmmword [edi + ebx]
movdqu xmm2, xmmword [esi + ebx - 0x10]
movdqu xmm1, xmmword [edi + ebx + 0x10]
movdqu xmm3, xmmword [esi + ebx]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [esi + ebx - 0x10], xmm2
movdqu xmmword [esi + ebx], xmm3
add ebx, 0x20
cmp edx, ebx
jne 0x4c56bc
mov esi, dword [esp + 8]
cmp esi, edx
je 0x4c570d
sub esi, edx
add edx, edi
nop dword [eax + eax]
movzx ebx, byte [edx + ecx]
xor byte [eax + ecx + 1], bl
inc ecx
cmp esi, ecx
jne 0x4c5700
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x4c5726
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [edx], al
mov eax, dword [esp + 0x14]
mov esi, 1
mov byte [eax + edx - 1], 0xbc
jmp 0x4c548c