Function at 0x480030
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov ebx, dword [esp + 0x68]
test eax, eax
jne 0x480061
push 0x470be0
push 0x53de88
call sym.fastboot.exe_CRYPTO_once
add esp, 8
mov eax, 0x53de90
mov esi, dword [eax + 4]
test ebp, ebp
cmove ebp, eax
lea ecx, [esi + esi + 2]
cmp ecx, ebx
jbe 0x480078
push 0x14a
jmp 0x4800a6
lea ecx, [esi + esi]
mov edi, ecx
not edi
lea edx, [ebx + edi - 1]
cmp edx, dword [esp + 0x70]
jae 0x480097
push 0x150
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x4800ad
lea edx, [ebx - 1]
or ecx, 1
cmp edx, ecx
jae 0x4800c5
push 0x155
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7e
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor ecx, ecx
mov eax, ecx
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x64]
mov dword [esp], edx
mov edx, dword [esp + 0x78]
mov byte [ecx], 0
lea ecx, [ecx + esi + 1]
sub esp, 4
push eax
push 0
mov dword [esp + 0x18], ecx
push ecx
push edx
push dword [esp + 0x88]
call sym.fastboot.exe_EVP_Digest
add esp, 0x18
xor ecx, ecx
test eax, eax
je 0x4800bb
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
sub eax, dword [esp + 0x70]
add edi, eax
mov dword [esp + 4], eax
je 0x48011e
lea eax, [edx + esi]
push edi
push 0
push eax
mov edi, edx
call sub.msvcrt.dll_memset
mov edx, edi
add esp, 0xc
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 4]
lea ecx, [eax + 1]
mov eax, esi
not eax
mov dword [esp + 8], ecx
add edi, eax
mov byte [edx + edi], 1
mov edi, dword [esp + 0x70]
test edi, edi
mov edi, dword [esp]
je 0x480160
lea eax, [edx + edi]
sub eax, dword [esp + 0x70]
sub eax, esi
push dword [esp + 0x70]
push dword [esp + 0x70]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0x522770
push esi
push ecx
call fcn.00469f40
add esp, 0xc
sub edi, esi
push edi
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4801bd
mov dword [esp], eax
mov ecx, eax
mov edx, edi
push ebp
push esi
push dword [esp + 0x10]
call fcn.004802e0
add esp, 0xc
test eax, eax
je 0x4801ce
mov edx, dword [esp + 0xc]
mov ecx, dword [esp]
test edi, edi
mov dword [esp + 4], 0
je 0x480250
xor eax, eax
cmp edi, 0x1f
ja 0x4801de
mov ecx, dword [esp]
jmp 0x480240
push 0x169
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x4800ad
mov edi, dword [esp]
mov dword [esp + 4], 0
jmp 0x4802cd
mov ecx, dword [esp]
lea ecx, [ecx + edi]
cmp edx, ecx
mov ecx, dword [esp]
jae 0x4801f3
add ebx, dword [esp + 0x64]
cmp ecx, ebx
jb 0x480240
mov eax, edi
mov ebx, edi
mov edi, ecx
mov ecx, dword [esp + 0x64]
xor edx, edx
and eax, 0xffffffe0
lea ecx, [ecx + esi + 0x11]
movups xmm0, xmmword [edi + edx]
movups xmm2, xmmword [ecx + edx - 0x10]
movups xmm1, xmmword [edi + edx + 0x10]
movups xmm3, xmmword [ecx + edx]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [ecx + edx - 0x10], xmm2
movups xmmword [ecx + edx], xmm3
add edx, 0x20
cmp eax, edx
jne 0x480206
mov edx, dword [esp + 0xc]
mov ecx, edi
mov edi, ebx
cmp ebx, eax
je 0x480250
nop word [eax + eax]
mov ebx, ecx
movzx ecx, byte [ecx + eax]
xor byte [edx + eax], cl
inc eax
mov ecx, ebx
cmp edi, eax
jne 0x480240
mov ebx, ecx
mov eax, edx
lea ecx, [esp + 0x10]
mov edx, esi
push ebp
push edi
push eax
call fcn.004802e0
add esp, 0xc
test eax, eax
mov edi, ebx
je 0x4802cd
test esi, esi
mov dword [esp + 4], 1
je 0x4802cd
xor eax, eax
cmp esi, 0x1f
jbe 0x4802b8
mov edx, dword [esp + 0x64]
mov eax, esi
xor ecx, ecx
and eax, 0xffffffe0
movups xmm0, xmmword [esp + ecx + 0x10]
movups xmm2, xmmword [edx + ecx + 1]
movups xmm1, xmmword [esp + ecx + 0x20]
movups xmm3, xmmword [edx + ecx + 0x11]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [edx + ecx + 1], xmm2
movups xmmword [edx + ecx + 0x11], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x480289
cmp esi, eax
je 0x4802cd
mov edx, dword [esp + 8]
nop dword [eax]
movzx ecx, byte [esp + eax + 0x10]
xor byte [edx + eax], cl
inc eax
cmp esi, eax
jne 0x4802c0
push edi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov ecx, dword [esp + 4]
jmp 0x4800bb