Function at 0x445ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [esp + 0xe8]
mov edi, dword [esp + 0xd8]
mov esi, dword [esp + 0xdc]
test ebx, ebx
je 0x44617c
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0xec]
test ecx, ecx
cmove eax, dword [esp + 0xe8]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
call sym.adb.exe_EVP_MD_size
mov ebx, eax
lea eax, [eax + 1]
mov dword [esp + 0x2c], eax
add eax, eax
cmp eax, esi
ja 0x44612a
lea eax, [esi - 1]
mov dword [esp + 0x20], eax
sub dword [esp + 0x20], ebx
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x24], eax
je 0x44618d
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], esi
lea ebp, [edi + eax]
mov eax, dword [esp + 0xec]
mov dword [esp + 8], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00445a40
test eax, eax
jne 0x44615e
test ebx, ebx
je 0x445f76
xor eax, eax
movzx edx, byte [edi + eax + 1]
xor byte [esi + eax], dl
add eax, 1
cmp eax, ebx
jne 0x445f67
mov eax, dword [esp + 0xec]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00445a40
test eax, eax
jne 0x44615e
mov edx, dword [esp + 0x20]
xor eax, eax
test edx, edx
je 0x445fc6
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
movzx edx, byte [ebp + eax]
xor byte [ecx + eax], dl
add eax, 1
cmp eax, esi
jne 0x445fb7
mov eax, dword [esp + 0xe8]
lea esi, [esp + 0x70]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call sym.adb.exe_EVP_Digest
test eax, eax
je 0x44615e
mov eax, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.adb.exe_CRYPTO_memcmp
movzx ecx, byte [edi]
lea edx, [eax - 1]
not eax
and edx, eax
lea eax, [ecx - 1]
not ecx
and eax, ecx
and eax, edx
sar eax, 0x1f
cmp ebx, dword [esp + 0x20]
mov ebp, eax
not ebp
jae 0x446132
xor eax, eax
mov edx, 0xffffffff
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x44605b
add ebp, 1
mov eax, dword [esp + 0x24]
movzx ecx, byte [eax + ebx]
mov edi, ecx
xor edi, 1
mov eax, edi
movzx edi, al
lea esi, [edi - 1]
not edi
and esi, edi
sar esi, 0x1f
mov edi, esi
not esi
and edi, edx
and edx, esi
mov eax, edi
and ebx, edi
not eax
and dword [esp + 0x1c], eax
or dword [esp + 0x1c], ebx
lea ebx, [ecx - 1]
not ecx
and ebx, ecx
sar ebx, 0x1f
not ebx
and ebx, edx
or dword [esp + 0x28], ebx
mov ebx, ebp
cmp ebp, dword [esp + 0x20]
jne 0x446058
mov ebx, ebp
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
or ebp, edx
jne 0x446132
add eax, 1
sub ebx, eax
cmp ebx, dword [esp + 0xd4]
ja 0x4460f7
add eax, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004b2a58
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x1d9
mov ebx, 0xffffffff
mov dword [esp + 0xc], str.external_boringssl_src_crypto_rsa_padding.c
mov dword [esp + 8], 0x6e
mov dword [esp + 4], 0
mov dword [esp], 4
call sym.adb.exe_ERR_put_error
jmp 0x4460de
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0x1e5
mov dword [esp + 0xc], str.external_boringssl_src_crypto_rsa_padding.c
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
mov dword [esp], 4
call sym.adb.exe_ERR_put_error
mov eax, dword [esp + 0x24]
mov ebx, 0xffffffff
mov dword [esp], eax
call fcn.004b2a58
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.adb.exe_EVP_sha1
mov dword [esp + 0xe8], eax
jmp 0x445ec7
mov dword [esp + 0x10], 0x1a9
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
jmp 0x44615e