Function at 0x100b5cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push ebx
xor ebx, ebx
test eax, eax
push ecx
cmove eax, ecx
mov dword [ebp + 0x18], eax
call fcn.1006b560
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
js 0x100b5ef5
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x100b5d73
mov edi, eax
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.10057000
dec eax
and eax, 7
push esi
mov dword [ebp - 0x14], eax
call fcn.10095ee0
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x14], ebx
jne 0x100b5d1a
mov byte [eax], bl
inc eax
dec ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
cmp edi, 0xfffffffe
jne 0x100b5da9
mov edi, ecx
sub edi, dword [ebp - 8]
sub edi, 2
test edi, edi
jle 0x100b5efc
push 0xf2
push str.rsa_rsa_pss.c
push edi
call fcn.1005c350
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100b5dc7
push 0xf5
push str.rsa_rsa_pss.c
push 0x41
push 0x94
push 4
call fcn.10054d40
add esp, 0x14
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffffe
jne 0x100b5d7d
jmp 0x100b5cea
jge 0x100b5cea
push 0xdc
push str.rsa_rsa_pss.c
push 0x88
push 0x94
push 4
call fcn.10054d40
add esp, 0x14
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 2
add eax, edi
cmp ecx, eax
jge 0x100b5d2e
push 0xed
push str.rsa_rsa_pss.c
push 0x6e
jmp 0x100b5d5b
push edi
push esi
call fcn.10053030
add esp, 8
test eax, eax
jle 0x100b5ee6
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
dec ecx
add eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
push eax
call fcn.1006b130
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.1006ace0
add esp, 0x10
test eax, eax
je 0x100b5ee6
push 8
lea eax, [ebp - 0x34]
push 0x10116afc
push eax
call fcn.1006ae90
add esp, 0xc
test eax, eax
je 0x100b5ee6
push dword [ebp - 8]
lea eax, [ebp - 0x34]
push dword [ebp + 0x10]
push eax
call fcn.1006ae90
add esp, 0xc
test eax, eax
je 0x100b5ee6
test edi, edi
je 0x100b5e5f
push edi
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.1006ae90
add esp, 0xc
test eax, eax
je 0x100b5ee6
push 0
push dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
call fcn.1006ac30
add esp, 0xc
test eax, eax
je 0x100b5ee6
lea eax, [ebp - 0x34]
push eax
call fcn.1006aea0
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 4]
call fcn.100b0260
add esp, 0x18
test eax, eax
jne 0x100b5ee6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
sub ecx, edi
add ecx, edx
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x100b5ec2
xor edx, edx
test edi, edi
jle 0x100b5ebf
mov al, byte [edx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x100b5eb1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100b5ed9
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [edx], al
mov eax, dword [ebp - 0xc]
mov ebx, 1
mov byte [eax + edx - 1], 0xbc
test esi, esi
je 0x100b5ef3
push esi
call fcn.1005c2d0
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x100b5ddc