Function at 0x6b5634c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x6c]
test esi, esi
jle 0x6b563831
test ebx, ebx
jle 0x6b563831
cmp ebx, dword [esp + 0x70]
jg 0x6b563838
cmp dword [esp + 0x70], 0xa
jle 0x6b563838
mov eax, dword [esp + 0x70]
mov dword [esp + 8], 0x4e
mov dword [esp + 4], str.crypto_rsa_rsa_ssl.c
mov dword [esp], eax
call sym.libcrypto_1_1.dll_CRYPTO_malloc
test eax, eax
je 0x6b56386b
mov ecx, dword [esp + 0x68]
add eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x70]
mov esi, eax
mov edx, eax
add ecx, ebx
lea esi, [esi]
mov edi, ebx
lea eax, [ebx - 1]
sub edx, 1
not edi
and edi, eax
sar edi, 0x1f
mov eax, edi
add edi, 1
sub ecx, edi
sub ebx, edi
mov edi, esi
not eax
sub edi, edx
and al, byte [ecx]
mov byte [edx], al
cmp ebp, edi
jg 0x6b563530
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x70]
movzx eax, al
mov dword [esp + 0x24], 0
neg edx
test ecx, ecx
mov ecx, 0xffffffff
cmovle edx, ecx
xor edi, edi
lea ebp, [esi + edx]
mov esi, 2
movzx ebx, byte [ebp + 1]
mov dword [esp + 0x28], ebp
mov edx, ebx
xor ebx, ebx
xor edx, 2
movzx edx, dl
lea ecx, [edx - 1]
not edx
and edx, ecx
mov ecx, eax
sub eax, 1
not ecx
and eax, ecx
mov ecx, ebp
and edx, eax
sar edx, 0x1f
mov dword [esp + 0x2c], edx
not edx
mov eax, edx
mov dword [esp + 0x30], eax
mov eax, 0xffffffff
lea esi, [esi]
movzx ebp, byte [ecx + esi]
mov edx, ebp
sub ebp, 1
not edx
and edx, ebp
sar edx, 0x1f
and eax, edx
or edi, edx
movzx edx, byte [ecx + esi]
mov ebp, eax
not eax
and ebp, esi
and eax, dword [esp + 0x24]
xor edx, 3
add esi, 1
or ebp, eax
mov eax, edi
movzx edx, dl
not eax
mov dword [esp + 0x24], ebp
mov ebp, eax
and ebp, 1
add ebp, ebx
mov ebx, edx
sub edx, 1
not ebx
and ebx, edx
sar ebx, 0x1f
or ebx, edi
and ebx, ebp
cmp dword [esp + 0x70], esi
jg 0x6b5635c0
mov eax, dword [esp + 0x24]
lea esi, [eax - 0xa]
mov edx, esi
mov dword [esp + 0x34], esi
mov esi, eax
xor eax, 0xa
xor edx, 0xa
or edx, eax
mov eax, dword [esp + 0x2c]
xor edx, esi
sar edx, 0x1f
mov ecx, edx
and edx, eax
not ecx
and ecx, eax
mov eax, edx
not eax
mov dword [esp + 0x2c], eax
mov eax, edx
mov edx, ebx
mov dword [esp + 0x3c], eax
lea eax, [ebx - 8]
xor edx, 8
xor eax, 8
or eax, edx
xor ebx, eax
sar ebx, 0x1f
mov edi, ebx
and ebx, ecx
not edi
mov edx, ebx
mov ebp, ebx
mov esi, edi
not edx
and esi, ecx
mov ecx, dword [esp + 0x70]
mov edi, edx
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x64]
sub eax, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x38], eax
sub ecx, eax
mov eax, ecx
xor eax, ebx
xor ebx, dword [esp + 0x64]
or eax, ebx
xor eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x3c]
sar eax, 0x1f
mov edx, eax
and eax, esi
and ebx, 0x71
not edx
mov ecx, eax
and edx, esi
not ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
and edx, dword [esp + 0x2c]
and edx, 0x6b
or edx, ebx
mov ebx, ebp
and eax, 0x6d
and edx, edi
and ebx, 0x73
mov edi, 1
or edx, ebx
and edx, ecx
or edx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x64]
lea esi, [eax - 0xb]
xor edx, esi
mov eax, esi
sub eax, dword [esp + 0x64]
xor eax, dword [esp + 0x64]
or eax, edx
mov dword [esp + 0x30], esi
xor eax, esi
sar eax, 0x1f
mov edx, eax
not eax
and edx, esi
and eax, dword [esp + 0x64]
or edx, eax
mov dword [esp + 0x2c], edx
cmp esi, 1
jle 0x6b563767
lea esi, [esi]
nop
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x70]
and eax, edi
sub ebp, edi
mov ebx, eax
sub eax, 1
not ebx
and ebx, eax
sar ebx, 0x1f
mov eax, ebx
not eax
cmp ebp, 0xb
jle 0x6b56375f
mov ecx, dword [esp + 0x28]
movzx esi, al
or ebx, 0xffffff00
lea eax, [ecx + 0xb]
add ebp, ecx
lea esi, [esi]
nop
movzx edx, byte [eax + edi]
movzx ecx, byte [eax]
add eax, 1
and edx, esi
and ecx, ebx
or edx, ecx
mov byte [eax - 1], dl
cmp ebp, eax
jne 0x6b563748
add edi, edi
cmp dword [esp + 0x30], edi
jg 0x6b563710
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
xor edx, edx
neg ebx
test eax, eax
je 0x6b5637bc
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x60]
nop
mov eax, esi
mov ecx, esi
xor ecx, ebx
xor eax, edx
add ebx, 1
or eax, ecx
mov ecx, dword [esp + 0x28]
xor eax, edx
movzx ecx, byte [ecx + edx + 0xb]
sar eax, 0x1f
and eax, dword [esp + 0x24]
movzx eax, al
mov ebp, eax
not eax
and ecx, ebp
movzx ebp, byte [edi + edx]
and eax, ebp
or eax, ecx
mov byte [edi + edx], al
add edx, 1
cmp edx, dword [esp + 0x2c]
jne 0x6b563780
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], 0xa5
mov dword [esp + 8], str.crypto_rsa_rsa_ssl.c
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_CRYPTO_clear_free
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0xa6
mov dword [esp + 0xc], str.crypto_rsa_rsa_ssl.c
mov dword [esp + 8], eax
mov dword [esp + 4], 0x72
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
mov esi, dword [esp + 0x24]
mov eax, esi
and eax, 1
mov dword [esp], eax
call sym._err_clear_last_constant_time
mov edx, esi
mov eax, esi
and eax, dword [esp + 0x38]
not edx
or eax, edx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x6b563829
mov dword [esp + 0x10], 0x4a
mov dword [esp + 0xc], str.crypto_rsa_rsa_ssl.c
mov dword [esp + 8], 0x6f
mov dword [esp + 4], 0x72
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
mov eax, 0xffffffff
jmp 0x6b563829
mov dword [esp + 0x10], 0x50
mov dword [esp + 0xc], str.crypto_rsa_rsa_ssl.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x72
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
mov eax, 0xffffffff
jmp 0x6b563829