Function at 0x467970
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 0x467c06
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 0x467af0
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 0x467bd0
sub edx, 1
cmp dword [esp + 0x18], edx
jb 0x467ab6
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 sym.adb.exe_EVP_Digest
test eax, eax
je 0x467ae4
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x8c]
add esi, edx
jne 0x467ba6
mov ecx, dword [esp + 0x8c]
mov eax, edx
sub eax, ebp
mov byte [edi + eax - 1], 1
test ecx, ecx
jne 0x467b81
lea eax, [ebx + 1]
test ebp, ebp
mov dword [esp + 0x1c], eax
jne 0x467b70
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 0x467c24
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 fcn.00458020
test eax, eax
jne 0x467b00
xor ebx, ebx
mov dword [esp], esi
call sym.adb.exe_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 sym.adb.exe_ERR_put_error
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x147
jmp 0x467abe
mov edx, dword [esp + 0x18]
xor eax, eax
mov ecx, dword [esp + 0x18]
test edx, edx
je 0x467b1e
nop
movzx edx, byte [esi + eax]
xor byte [edi + eax], dl
add eax, 1
cmp eax, ecx
jne 0x467b10
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 fcn.00458020
test eax, eax
je 0x467aa2
test ebp, ebp
je 0x467b60
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 0x467b50
mov ebx, 1
jmp 0x467aa4
mov ecx, 0x567d00
mov edx, ebp
call fcn.00463c40
jmp 0x467a65
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 sub.msvcrt.dll_memcpy
jmp 0x467a56
lea eax, [edi + ebp]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
jmp 0x467a3e
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 sym.adb.exe_ERR_put_error
add esp, 0x6c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x444830
mov dword [esp], 0x5b1620
call sym.adb.exe_CRYPTO_once
mov eax, 0x5b1640
jmp 0x467994
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 sym.adb.exe_ERR_put_error
xor eax, eax
jmp 0x467ae4