Function at 0x44bc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x60]
mov dword [esp], eax
test ebx, ebx
cmove ebx, dword [esp + 0x6c]
call sym.adb.exe_EVP_MD_size
mov edi, eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym.adb.exe_BN_is_zero
test eax, eax
jne 0x44be80
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym.adb.exe_BN_num_bits
mov dword [esp], esi
lea ebp, [eax - 1]
call sym.adb.exe_RSA_size
and ebp, 7
test ebp, ebp
mov dword [esp + 0x20], eax
jne 0x44bcbb
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 0x44bf08
cmp dword [esp + 0x74], 0xffffffff
je 0x44bf25
cmp dword [esp + 0x74], 0xfffffffe
mov eax, dword [esp + 0x74]
je 0x44bf30
test eax, eax
mov dword [esp + 0x24], eax
js 0x44bf60
mov eax, dword [esp + 0x20]
sub eax, edi
mov dword [esp + 0x28], eax
sub eax, 2
cmp dword [esp + 0x24], eax
ja 0x44bf50
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x44bed0
xor esi, esi
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.adb.exe_EVP_MD_CTX_init
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.adb.exe_EVP_DigestInit_ex
mov dword [esp + 0x1c], 0
test eax, eax
je 0x44beb6
lea eax, [esp + 0x30]
mov dword [esp + 8], 8
mov dword [esp + 4], 0x537024
mov dword [esp], eax
call sym.adb.exe_EVP_DigestUpdate
test eax, eax
je 0x44beb6
mov eax, dword [esp + 0x68]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.adb.exe_EVP_DigestUpdate
test eax, eax
je 0x44beb6
mov eax, dword [esp + 0x24]
test eax, eax
je 0x44bdb7
mov eax, dword [esp + 0x24]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.adb.exe_EVP_DigestUpdate
test eax, eax
je 0x44beb6
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
sub eax, 1
mov dword [esp + 0x28], eax
add eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.adb.exe_EVP_DigestFinal_ex
mov dword [esp + 0x1c], 0
test eax, eax
je 0x44beb6
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.adb.exe_EVP_MD_CTX_cleanup
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0044aa60
test eax, eax
je 0x44beb6
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
sub eax, edi
sub edx, ecx
lea edx, [edx + eax - 2]
xor byte [edx], 1
test ecx, ecx
je 0x44be4f
mov ebx, dword [esp + 0x24]
xor eax, eax
nop
movzx ecx, byte [esi + eax]
xor byte [edx + eax + 1], cl
add eax, 1
cmp eax, ebx
jne 0x44be40
test ebp, ebp
je 0x44be67
mov ecx, 8
mov eax, 0xff
sub ecx, ebp
sar eax, cl
mov ecx, dword [esp + 0x64]
and byte [ecx], al
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], 1
mov byte [eax + ecx - 1], 0xbc
jmp 0x44beb6
mov dword [esp + 0x10], 0x265
mov dword [esp + 0xc], str.external_boringssl_src_crypto_rsa_padding.c
mov dword [esp + 8], 0x78
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], 4
call sym.adb.exe_ERR_put_error
mov dword [esp + 0x1c], 0
mov dword [esp], esi
call fcn.004bd938
mov eax, dword [esp + 0x1c]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x44bf80
mov eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.adb.exe_RAND_bytes
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x44bd13
jmp 0x44beb6
mov dword [esp + 0x10], 0x272
mov dword [esp + 0xc], str.external_boringssl_src_crypto_rsa_padding.c
mov dword [esp + 8], 0x72
jmp 0x44be98
mov dword [esp + 0x24], edi
jmp 0x44bcee
sub eax, edi
mov edx, eax
mov eax, dword [esp + 0x20]
add edx, eax
sub eax, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x44bd05
mov dword [esp + 0x10], 0x287
jmp 0x44bf10
mov dword [esp + 0x10], 0x280
mov dword [esp + 0xc], str.external_boringssl_src_crypto_rsa_padding.c
mov dword [esp + 8], 0x8a
jmp 0x44be98
mov dword [esp + 0x10], 0x28e
mov dword [esp + 0xc], str.external_boringssl_src_crypto_rsa_padding.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0
mov dword [esp], 4
call sym.adb.exe_ERR_put_error
mov dword [esp + 0x1c], 0
jmp 0x44beb6