Function at 0x467c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [esp + 0xec]
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xe0]
test ebx, ebx
je 0x467f11
mov ecx, dword [esp + 0xf0]
mov eax, dword [esp + 0xf0]
test ecx, ecx
cmove eax, dword [esp + 0xec]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xec]
mov ebx, dword [eax + 4]
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
add eax, eax
cmp eax, edi
ja 0x467ea0
mov eax, ebx
not eax
add eax, edi
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sym.adb.exe_OPENSSL_malloc
test eax, eax
mov edi, eax
je 0x467ee3
mov eax, dword [esp + 0x20]
mov edx, ebx
lea ebp, [esi + eax]
mov eax, dword [esp + 0xf0]
mov ecx, ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
lea eax, [esp + 0x30]
call fcn.00458020
test eax, eax
je 0x467ece
test ebx, ebx
je 0x467d21
xor eax, eax
movzx edx, byte [esi + eax + 1]
xor byte [esp + eax + 0x30], dl
add eax, 1
cmp eax, ebx
jne 0x467d11
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, edi
call fcn.00458020
test eax, eax
je 0x467ece
mov edx, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [esp + 0x1c]
test edx, edx
je 0x467d63
movzx edx, byte [ebp + eax]
xor byte [edi + eax], dl
add eax, 1
cmp eax, ecx
jne 0x467d54
mov eax, dword [esp + 0xec]
lea ebp, [esp + 0x70]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call sym.adb.exe_EVP_Digest
test eax, eax
je 0x467ece
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], edi
call sym.adb.exe_CRYPTO_memcmp
movzx ecx, byte [esi]
lea edx, [eax - 1]
not eax
and edx, eax
lea eax, [ecx - 1]
not ecx
and eax, ecx
and eax, edx
cdq
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x28], edx
not dword [esp + 0x28]
jbe 0x467ea2
xor esi, esi
mov ebp, 0xffffffff
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], esi
jmp 0x467df6
add edi, 1
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + ebx]
mov ecx, eax
xor ecx, 1
movzx ecx, cl
lea edx, [ecx - 1]
not ecx
and edx, ecx
sar edx, 0x1f
mov ecx, edx
not edx
and ecx, ebp
and ebp, edx
lea edx, [eax - 1]
not eax
and edx, eax
mov esi, ecx
sar edx, 0x1f
not esi
not edx
and ecx, ebx
and dword [esp + 0x24], esi
and edx, ebp
or dword [esp + 0x24], ecx
mov ebx, edi
or dword [esp + 0x28], edx
cmp edi, dword [esp + 0x1c]
jne 0x467df3
mov eax, dword [esp + 0x28]
mov ebx, edi
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
or eax, ebp
jne 0x467ea2
lea eax, [esi + 1]
sub ebx, eax
cmp ebx, dword [esp + 0xd8]
ja 0x467f35
test ebx, ebx
je 0x467e81
add eax, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0xd4]
mov dword [eax], ebx
mov dword [esp], edi
call sym.adb.exe_OPENSSL_free
mov eax, 1
jmp 0x467ed8
xor edi, edi
mov dword [esp + 0x10], 0x1db
mov dword [esp + 0xc], str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
mov dword [esp + 8], 0x85
mov dword [esp + 4], 0
mov dword [esp], 4
call sym.adb.exe_ERR_put_error
mov dword [esp], edi
call sym.adb.exe_OPENSSL_free
xor eax, eax
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x19c
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 0x467ece
mov dword [esp + 4], 0x444830
mov dword [esp], 0x5b1620
call sym.adb.exe_CRYPTO_once
mov dword [esp + 0xec], 0x5b1640
jmp 0x467c87
mov dword [esp + 0x10], 0x1cf
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 sym.adb.exe_ERR_put_error
jmp 0x467ece