Function at 0x46f120
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
test eax, eax
je 0x46f3b6
mov esi, dword [esp + 0x9c]
mov ecx, eax
mov ebp, dword [eax + 4]
test esi, esi
cmovne ecx, dword [esp + 0x9c]
mov dword [esp + 0x9c], ecx
lea ecx, [ebp + 1]
lea edx, [ecx + ecx]
cmp edx, edi
ja 0x46f2a0
lea esi, [edi - 1]
mov edi, esi
mov dword [esp + 0x18], esi
mov esi, 1
sub esi, edx
add edi, esi
cmp edi, dword [esp + 0x8c]
jb 0x46f380
sub edx, 1
cmp dword [esp + 0x18], edx
jb 0x46f266
mov byte [ebx], 0
lea edi, [ebx + ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call dbg.EVP_Digest
test eax, eax
je 0x46f294
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x8c]
add esi, edx
jne 0x46f356
mov ecx, dword [esp + 0x8c]
mov eax, edx
sub eax, ebp
mov byte [edi + eax - 1], 1
test ecx, ecx
jne 0x46f331
lea eax, [ebx + 1]
test ebp, ebp
mov dword [esp + 0x1c], eax
jne 0x46f320
mov eax, dword [esp + 0x18]
sub eax, ebp
mov dword [esp], eax
mov dword [esp + 0x18], eax
call sym.adb.exe_OPENSSL_malloc
test eax, eax
mov esi, eax
je 0x46f3d4
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, esi
call dbg.PKCS1_MGF1
test eax, eax
jne 0x46f2b0
xor ebx, ebx
mov dword [esp], esi
call dbg.OPENSSL_free
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x152
mov dword [esp + 0xc], str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
mov dword [esp + 8], 0x7e
mov dword [esp + 4], 0
mov dword [esp], 4
call dbg.ERR_put_error
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x147
jmp 0x46f26e
mov edx, dword [esp + 0x18]
xor eax, eax
mov ecx, dword [esp + 0x18]
test edx, edx
je 0x46f2ce
nop
movzx edx, byte [esi + eax]
xor byte [edi + eax], dl
add eax, 1
cmp eax, ecx
jne 0x46f2c0
mov eax, dword [esp + 0x9c]
mov ecx, edi
mov edx, ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea eax, [esp + 0x20]
call dbg.PKCS1_MGF1
test eax, eax
je 0x46f252
test ebp, ebp
je 0x46f310
xor eax, eax
nop
lea esi, [esi]
movzx edx, byte [esp + eax + 0x20]
xor byte [ebx + eax + 1], dl
add eax, 1
cmp eax, ebp
jne 0x46f300
mov ebx, 1
jmp 0x46f254
mov ecx, 0x572780
mov edx, ebp
call sym._RAND_bytes_with_additional_data.part.87
jmp 0x46f215
mov ecx, dword [esp + 0x8c]
add eax, edi
mov edx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sym._memcpy
jmp 0x46f206
lea eax, [edi + ebp]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call sym._memset
mov edx, dword [esp + 0x1c]
jmp 0x46f1ee
mov dword [esp + 0x10], 0x14d
mov dword [esp + 0xc], str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
mov dword [esp + 8], 0x71
mov dword [esp + 4], 0
mov dword [esp], 4
call dbg.ERR_put_error
add esp, 0x6c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], dbg.EVP_sha1_init
mov dword [esp], 0x5bc5e0
call dbg.CRYPTO_once
mov eax, 0x5bc600
jmp 0x46f144
mov dword [esp + 0x10], 0x166
mov dword [esp + 0xc], str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0
mov dword [esp], 4
call dbg.ERR_put_error
xor eax, eax
jmp 0x46f294