Function at 0x1017bf90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.101b79b0
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x38], esi
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
jne 0x1017bfba
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x38]
push ecx
call fcn.100e91a0
mov ebx, eax
add esp, 4
cmp ebx, esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x18], ebx
jl 0x1017c1f3
cmp esi, 0xffffffff
jne 0x1017c045
mov esi, ebx
mov edi, dword [esp + 0x2c]
mov edx, dword [edi + 0x10]
push edx
call fcn.100d4560
mov ebp, eax
sub ebp, 1
and ebp, 7
push edi
mov dword [esp + 0x2c], ebp
call fcn.100e41e0
add esp, 8
mov edi, eax
test ebp, ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
jne 0x1017c01e
mov byte [ebp], 0
add ebp, 1
sub edi, 1
mov dword [esp + 0x1c], edi
lea eax, [ebx + 2]
cmp edi, eax
jge 0x1017c079
push 0xba
push str.crypto_rsa_rsa_pss.c
push 0x6e
push 0x98
push 4
call fcn.100dc5a0
add esp, 0x14
jmp 0x1017c1f3
cmp esi, 0xfffffffe
jne 0x1017c051
mov esi, 0xfffffffd
jmp 0x1017bfe0
cmp esi, 0xfffffffd
jge 0x1017bfe0
push 0xae
push str.crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.100dc5a0
add esp, 0x14
jmp 0x1017c1f3
sub edi, ebx
cmp esi, 0xfffffffd
jne 0x1017c0c2
lea esi, [edi - 2]
test esi, esi
jle 0x1017c0e5
push 0xc5
push str.crypto_rsa_rsa_pss.c
push esi
call fcn.100de150
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1017c0d3
push 0xc8
push str.crypto_rsa_rsa_pss.c
push 0x41
push 0x98
push 4
call fcn.100dc5a0
add esp, 0x14
jmp 0x1017c1f3
lea ecx, [edi - 2]
cmp esi, ecx
jle 0x1017c083
push 0xc1
jmp 0x1017c02a
push esi
push eax
call fcn.100da080
add esp, 8
test eax, eax
jle 0x1017c1f3
lea ebx, [edi - 1]
call fcn.100e32b0
test eax, eax
mov dword [esp + 0x10], eax
je 0x1017c1f3
mov edx, dword [esp + 0x38]
push 0
push edx
push eax
call fcn.100e32f0
add esp, 0xc
test eax, eax
je 0x1017c1f3
mov ecx, dword [esp + 0x10]
push 8
push 0x1024ee40
push ecx
call fcn.100e3480
add esp, 0xc
test eax, eax
je 0x1017c1f3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call fcn.100e3480
add esp, 0xc
test eax, eax
je 0x1017c1f3
test esi, esi
je 0x1017c16b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push esi
push edx
push eax
call fcn.100e3480
add esp, 0xc
test eax, eax
je 0x1017c1f3
mov ecx, dword [esp + 0x10]
push 0
lea eax, [ebx + ebp]
push eax
push ecx
call fcn.100e34a0
add esp, 0xc
test eax, eax
je 0x1017c1f3
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea eax, [ebx + ebp]
push eax
push ebx
push ebp
call fcn.10153eb0
add esp, 0x14
test eax, eax
jne 0x1017c1f3
sub edi, esi
xor byte [edi + ebp - 2], 1
lea eax, [edi + ebp - 2]
add eax, 1
test esi, esi
jle 0x1017c1c9
xor ecx, ecx
test esi, esi
jle 0x1017c1c9
mov edx, dword [esp + 0x14]
mov dl, byte [ecx + edx]
xor byte [eax], dl
add ecx, 1
add eax, 1
cmp ecx, esi
jl 0x1017c1b6
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1017c1e2
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebp], al
mov ecx, dword [esp + 0x1c]
mov byte [ecx + ebp - 1], 0xbc
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x10]
push edx
call fcn.100e32d0
mov eax, dword [esp + 0x18]
push 0xf7
push str.crypto_rsa_rsa_pss.c
push esi
push eax
call fcn.100de220
mov eax, dword [esp + 0x34]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret