Function at 0x6b5614b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb4]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x8c], eax
xor eax, eax
call sym.libcrypto_1_1.dll_EVP_MD_CTX_new
mov ebx, eax
test eax, eax
je 0x6b56180c
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_MD_size
mov ebp, eax
test eax, eax
js 0x6b56180c
cmp dword [esp + 0xc0], 0xffffffff
je 0x6b561890
cmp dword [esp + 0xc0], 0xfffffffd
jl 0x6b5618b8
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_BN_num_bits
mov dword [esp], esi
sub eax, 1
and eax, 7
mov dword [esp + 0x28], eax
call sym.libcrypto_1_1.dll_RSA_size
movzx ecx, byte [esp + 0x28]
movzx esi, byte [edi]
mov edx, 0xff
shl edx, cl
and esi, edx
mov dword [esp + 0x20], esi
jne 0x6b5617e0
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x6b561573
add edi, 1
sub eax, 1
lea edx, [ebp + 2]
cmp edx, eax
jg 0x6b5618d8
mov edx, eax
sub edx, ebp
sub edx, 2
cmp dword [esp + 0xc0], 0xfffffffd
je 0x6b5618a0
cmp dword [esp + 0xc0], edx
jg 0x6b561910
cmp byte [edi + eax - 1], 0xbc
jne 0x6b561860
sub eax, ebp
mov dword [esp + 8], 0x5d
mov dword [esp + 0x34], eax
sub eax, 1
mov dword [esp + 4], str.crypto_rsa_rsa_pss.c
lea ecx, [edi + eax]
mov dword [esp], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
call sym.libcrypto_1_1.dll_CRYPTO_malloc
mov esi, eax
test eax, eax
je 0x6b561978
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], ebp
mov dword [esp], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_PKCS1_MGF1
test eax, eax
js 0x6b561816
mov edx, dword [esp + 0x30]
test edx, edx
jle 0x6b5616aa
lea eax, [esi + 4]
mov ecx, dword [esp + 0x34]
cmp edi, eax
lea eax, [edi + 4]
setae dl
cmp esi, eax
setae al
or eax, edx
lea edx, [ecx - 2]
cmp edx, 2
seta dl
test al, dl
je 0x6b5619b0
mov eax, edi
or eax, esi
test al, 3
jne 0x6b5619b0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ebx
mov eax, esi
mov ecx, edi
and edx, 0xfffffffc
add edx, esi
mov ebx, edx
nop
mov edx, dword [eax]
xor edx, dword [ecx]
add eax, 4
add ecx, 4
mov dword [eax - 4], edx
cmp eax, ebx
jne 0x6b561660
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov eax, ecx
and eax, 0xfffffffc
test cl, 3
je 0x6b5616aa
movzx edx, byte [edi + eax]
xor byte [esi + eax], dl
lea edx, [eax + 1]
cmp ecx, edx
jle 0x6b5616aa
movzx ecx, byte [edi + eax + 1]
xor byte [esi + edx], cl
lea edx, [eax + 2]
cmp dword [esp + 0x30], edx
jle 0x6b5616aa
movzx eax, byte [edi + eax + 2]
xor byte [esi + edx], al
mov eax, dword [esp + 0x28]
movzx edx, byte [esi]
test eax, eax
jne 0x6b561920
test dl, dl
jne 0x6b561a09
mov ecx, dword [esp + 0x34]
sub ecx, 2
test ecx, ecx
jle 0x6b561940
xor eax, eax
jmp 0x6b5616e0
cmp eax, ecx
je 0x6b561940
mov edi, eax
add eax, 1
movzx edx, byte [esi + eax]
test dl, dl
je 0x6b5616d8
add edi, 2
cmp dl, 1
jne 0x6b561940
cmp dword [esp + 0xc0], 0xfffffffe
je 0x6b561716
mov eax, dword [esp + 0x30]
sub eax, edi
cmp dword [esp + 0xc0], eax
jne 0x6b5619d8
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_EVP_DigestInit_ex
test eax, eax
je 0x6b56180e
mov dword [esp + 8], 8
mov dword [esp + 4], 0x6b614e10
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
test eax, eax
je 0x6b56180e
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
test eax, eax
je 0x6b56180e
cmp dword [esp + 0x30], edi
je 0x6b561794
mov eax, dword [esp + 0x30]
mov dword [esp], ebx
sub eax, edi
add edi, esi
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
test eax, eax
je 0x6b56180e
lea edi, [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_EVP_DigestFinal_ex
test eax, eax
je 0x6b56180e
mov eax, dword [esp + 0x38]
mov dword [esp + 8], ebp
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._memcmp
test eax, eax
jne 0x6b561a13
mov dword [esp + 0x20], 1
jmp 0x6b561816
mov dword [esp + 0x10], 0x46
mov dword [esp + 0xc], str.crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x85
mov dword [esp + 4], 0x7e
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
xor esi, esi
mov dword [esp + 0x20], 0
mov dword [esp + 8], 0x83
mov dword [esp + 4], str.crypto_rsa_rsa_pss.c
mov dword [esp], esi
call sym.libcrypto_1_1.dll_CRYPTO_free
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_EVP_MD_CTX_free
mov eax, dword [esp + 0x8c]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b561a44
mov eax, dword [esp + 0x20]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x58
xor esi, esi
mov dword [esp + 0xc], str.crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x86
mov dword [esp + 4], 0x7e
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b561816
mov dword [esp + 0xc0], eax
jmp 0x6b56152d
cmp byte [edi + eax - 1], 0xbc
mov dword [esp + 0xc0], edx
je 0x6b5615ab
jmp 0x6b561860
mov dword [esp + 0x10], 0x3f
mov dword [esp + 0xc], str.crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x88
jmp 0x6b5617f8
mov dword [esp + 0x10], 0x4e
mov dword [esp + 0xc], str.crypto_rsa_rsa_pss.c
xor esi, esi
mov dword [esp + 8], 0x6d
mov dword [esp + 4], 0x7e
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b561816
mov dword [esp + 0x10], 0x54
jmp 0x6b5618e0
mov ecx, 8
mov eax, 0xff
sub ecx, dword [esp + 0x28]
sar eax, cl
and edx, eax
mov byte [esi], dl
jmp 0x6b5616b9
mov dword [esp + 0x10], 0x6a
mov dword [esp + 0xc], str.crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x87
mov dword [esp + 4], 0x7e
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b561816
mov dword [esp + 0x10], 0x5f
mov dword [esp + 0xc], str.crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7e
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b561816
mov ecx, dword [esp + 0x30]
mov eax, esi
lea edx, [esi + ecx]
lea esi, [esi]
movzx ecx, byte [edi]
xor byte [eax], cl
add eax, 1
add edi, 1
cmp eax, edx
jne 0x6b5619c0
jmp 0x6b5616aa
mov dword [esp + 0x10], 0x6e
mov dword [esp + 0xc], str.crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x88
mov dword [esp + 4], 0x7e
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b561816
mov edi, 1
jmp 0x6b5616f0
mov dword [esp + 0x10], 0x7c
mov dword [esp + 0xc], str.crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x68
mov dword [esp + 4], 0x7e
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b561816
call sym.___stack_chk_fail
lea esi, [esi]