Function at 0x4688d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x70]
mov edi, dword [eax + 4]
mov eax, dword [esi + 4]
test ebx, ebx
cmove ebx, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4689d8
mov dword [esp], eax
call sym.adb.exe_BN_num_bits
mov dword [esp], esi
sub eax, 1
mov dword [esp + 0x24], eax
and dword [esp + 0x24], 7
call sym.adb.exe_RSA_size
mov edx, dword [esp + 0x24]
test edx, edx
mov dword [esp + 0x20], eax
jne 0x468936
mov eax, dword [esp + 0x64]
sub dword [esp + 0x20], 1
mov byte [eax], 0
add eax, 1
mov dword [esp + 0x64], eax
lea eax, [edi + 2]
cmp dword [esp + 0x20], eax
jb 0x468a43
cmp dword [esp + 0x74], 0xffffffff
je 0x468a60
cmp dword [esp + 0x74], 0xfffffffe
je 0x468b77
mov ebp, dword [esp + 0x74]
test ebp, ebp
js 0x468ba0
mov eax, dword [esp + 0x20]
sub eax, edi
mov dword [esp + 0x28], eax
sub eax, 2
cmp ebp, eax
ja 0x468b90
test ebp, ebp
jne 0x468a20
xor esi, esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call sym.adb.exe_EVP_DigestInit_ex
test eax, eax
jne 0x468a67
lea eax, [esp + 0x30]
xor ebx, ebx
mov dword [esp], eax
call sym.adb.exe_EVP_MD_CTX_cleanup
jmp 0x468a08
mov dword [esp + 0x10], 0x256
mov dword [esp + 0xc], str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
mov dword [esp + 8], 0x78
mov dword [esp + 4], 0
xor esi, esi
xor ebx, ebx
mov dword [esp], 4
call sym.adb.exe_ERR_put_error
mov dword [esp], esi
call sym.adb.exe_OPENSSL_free
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call sym.adb.exe_OPENSSL_malloc
test eax, eax
mov esi, eax
je 0x468bbd
mov ecx, 0x567d00
mov edx, ebp
call fcn.00463c40
jmp 0x468984
mov dword [esp + 0x10], 0x263
mov dword [esp + 0xc], str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
mov dword [esp + 8], 0x71
jmp 0x4689f0
mov ebp, edi
jmp 0x468965
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov dword [esp + 8], 8
mov dword [esp + 4], 0x5684c4
sub eax, 1
mov dword [esp + 0x2c], eax
add eax, dword [esp + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
call dword [eax + 0x10]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
call dword [eax + 0x10]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.adb.exe_EVP_DigestFinal_ex
test eax, eax
je 0x4689c8
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.adb.exe_EVP_MD_CTX_cleanup
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], edi
call fcn.00458020
test eax, eax
je 0x468a08
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
sub eax, edi
sub edx, ebp
lea edx, [edx + eax - 2]
xor byte [edx], 1
test ebp, ebp
je 0x468b42
xor eax, eax
movzx ecx, byte [esi + eax]
xor byte [edx + eax + 1], cl
add eax, 1
cmp eax, ebp
jne 0x468b33
mov eax, dword [esp + 0x24]
test eax, eax
je 0x468b60
mov ecx, 8
mov eax, 0xff
sub ecx, dword [esp + 0x24]
sar eax, cl
mov ecx, dword [esp + 0x64]
and byte [ecx], al
mov eax, dword [esp + 0x64]
mov ebx, 1
mov ecx, dword [esp + 0x20]
mov byte [eax + ecx - 1], 0xbc
jmp 0x468a08
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
sub eax, edi
lea ebp, [eax + edx]
sub edx, edi
mov dword [esp + 0x28], edx
jmp 0x46897a
mov dword [esp + 0x10], 0x278
jmp 0x468a4b
mov dword [esp + 0x10], 0x271
mov dword [esp + 0xc], str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
mov dword [esp + 8], 0x8a
jmp 0x4689f0
mov dword [esp + 0x10], 0x27f
xor ebx, ebx
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 sym.adb.exe_ERR_put_error
jmp 0x468a08