Function at 0x46fa80
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 0x46fab1
push 0x460430
push 0x5d96f4
call sym.adb.exe_CRYPTO_once
add esp, 8
mov eax, 0x5d96f8
mov esi, dword [eax + 4]
test ebp, ebp
cmove ebp, eax
lea ecx, [esi + esi + 2]
cmp ecx, ebx
jbe 0x46fac8
push 0x147
jmp 0x46faf6
lea ecx, [esi + esi]
mov edi, ecx
not edi
lea edx, [ebx + edi - 1]
cmp edx, dword [esp + 0x70]
jae 0x46fae7
push 0x14d
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x46fafd
lea edx, [ebx - 1]
or ecx, 1
cmp edx, ecx
jae 0x46fb15
push 0x152
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7e
push 0
push 4
call sym.adb.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.adb.exe_EVP_Digest
add esp, 0x18
xor ecx, ecx
test eax, eax
je 0x46fb0b
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
sub eax, dword [esp + 0x70]
add edi, eax
mov dword [esp + 4], eax
je 0x46fb6e
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 0x46fbb0
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 0x58e277
push esi
push ecx
call fcn.00458f00
add esp, 0xc
sub edi, esi
push edi
call sym.adb.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x46fc0d
mov dword [esp], eax
mov ecx, eax
mov edx, edi
push ebp
push esi
push dword [esp + 0x10]
call fcn.0046fd30
add esp, 0xc
test eax, eax
je 0x46fc1e
mov edx, dword [esp + 0xc]
mov ecx, dword [esp]
test edi, edi
mov dword [esp + 4], 0
je 0x46fca0
xor eax, eax
cmp edi, 0x1f
ja 0x46fc2e
mov ecx, dword [esp]
jmp 0x46fc90
push 0x166
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x46fafd
mov edi, dword [esp]
mov dword [esp + 4], 0
jmp 0x46fd1d
mov ecx, dword [esp]
lea ecx, [ecx + edi]
cmp edx, ecx
mov ecx, dword [esp]
jae 0x46fc43
add ebx, dword [esp + 0x64]
cmp ecx, ebx
jb 0x46fc90
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 0x46fc56
mov edx, dword [esp + 0xc]
mov ecx, edi
mov edi, ebx
cmp ebx, eax
je 0x46fca0
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 0x46fc90
mov ebx, ecx
mov eax, edx
lea ecx, [esp + 0x10]
mov edx, esi
push ebp
push edi
push eax
call fcn.0046fd30
add esp, 0xc
test eax, eax
mov edi, ebx
je 0x46fd1d
test esi, esi
mov dword [esp + 4], 1
je 0x46fd1d
xor eax, eax
cmp esi, 0x1f
jbe 0x46fd08
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 0x46fcd9
cmp esi, eax
je 0x46fd1d
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 0x46fd10
push edi
call sym.adb.exe_OPENSSL_free
add esp, 4
mov ecx, dword [esp + 4]
jmp 0x46fb0b