Function at 0x10086740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x1010d170]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x40], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp ecx, eax
jne 0x1008679c
mov dword [esp + 0x1c], edx
cmp edx, eax
jne 0x100867c1
push 0x10e
mov eax, 0x9f
push str...cryptoevpevp_lib.c
push 6
lea ecx, [eax + 3]
call fcn.1002c650
add esp, 0xc
jmp 0x10086b07
mov ebx, dword [edx + 8]
mov dword [esp + 0x10], ebx
test ebx, ebx
jl 0x10086b07
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x100867ea
mov dword [ebp + 0x14], ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 4]
lea edx, [eax - 1]
test eax, eax
jne 0x10086814
jmp 0x10086823
cmp eax, 0xfffffffe
jne 0x100867f4
mov dword [ebp + 0x14], eax
jmp 0x100867db
jge 0x100867db
push 0x6c
mov eax, 0x88
push str...crypto_rsa_rsa_pss.c
push 4
lea ecx, [eax + 0xd]
call fcn.1002c650
add esp, 0xc
jmp 0x10086b07
mov eax, dword [ecx]
mov eax, dword [eax + edx*4]
call fcn.100240a0
shl edx, 5
add eax, edx
lea esi, [eax - 1]
mov eax, dword [ecx + 4]
and esi, 7
mov dword [esp + 0x40], esi
lea edx, [eax - 1]
test eax, eax
je 0x10086846
mov ecx, dword [ecx]
mov eax, dword [ecx + edx*4]
call fcn.100240a0
shl edx, 5
add eax, edx
add eax, 7
cdq
and edx, 7
add eax, edx
mov ecx, esi
mov edx, 0xff
shl edx, cl
mov cl, byte [edi]
sar eax, 3
test cl, dl
je 0x1008687f
push 0x74
mov eax, 0x85
push str...crypto_rsa_rsa_pss.c
push 4
lea ecx, [eax + 0x10]
call fcn.1002c650
add esp, 0xc
jmp 0x10086b07
test esi, esi
jne 0x10086889
inc edi
mov dword [esp + 0x20], edi
dec eax
mov edx, dword [ebp + 0x14]
lea ecx, [ebx + edx + 2]
cmp eax, ecx
jge 0x100868b2
push 0x7e
mov eax, 0x6d
push str...crypto_rsa_rsa_pss.c
push 4
lea ecx, [eax + 0x28]
call fcn.1002c650
add esp, 0xc
jmp 0x10086b07
cmp byte [edi + eax - 1], 0xbc
je 0x100868da
push 0x83
mov eax, 0x86
push str...crypto_rsa_rsa_pss.c
push 4
lea ecx, [eax + 0xf]
call fcn.1002c650
add esp, 0xc
jmp 0x10086b07
sub eax, ebx
dec eax
mov esi, eax
add edi, esi
mov dword [esp + 0x18], edi
mov edi, 0x88
mov ebx, str...crypto_rsa_rsa_pss.c
call fcn.1002aa90
mov ebx, eax
test ebx, ebx
jne 0x10086919
push 0x8b
push str...crypto_rsa_rsa_pss.c
push 4
lea eax, [edi - 0x47]
lea ecx, [edi + 0xd]
call fcn.1002c650
add esp, 0xc
jmp 0x10086ad6
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
push eax
push esi
push ebx
call fcn.100794f0
add esp, 0x10
test eax, eax
jl 0x10086ad6
test esi, esi
jle 0x10086952
mov edi, dword [esp + 0x20]
mov eax, ebx
sub edi, ebx
mov ecx, esi
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x10086947
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1008696a
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebx], al
xor edi, edi
cmp byte [ebx], 0
jne 0x1008697f
lea eax, [esi - 1]
cmp edi, eax
jge 0x1008697f
inc edi
cmp byte [edi + ebx], 0
je 0x10086974
mov cl, byte [edi + ebx]
inc edi
cmp cl, 1
je 0x100869a9
push 0x97
mov eax, 0x87
push str...crypto_rsa_rsa_pss.c
push 4
lea ecx, [eax + 0xe]
call fcn.1002c650
add esp, 0xc
jmp 0x10086ad6
mov eax, dword [ebp + 0x14]
test eax, eax
jl 0x100869d9
mov edx, esi
sub edx, edi
cmp edx, eax
je 0x100869d9
push 0x9c
mov eax, 0x88
push str...crypto_rsa_rsa_pss.c
push 4
lea ecx, [eax + 0xd]
call fcn.1002c650
add esp, 0xc
jmp 0x10086ad6
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
xor eax, eax
call fcn.1002b980
add esp, 8
test eax, eax
je 0x10086ad6
push 8
lea edx, [esp + 0x28]
push 0x100dc4ec
push edx
call dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x10086ad6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x10086ad6
sub esi, edi
je 0x10086a4a
push esi
add edi, ebx
lea eax, [esp + 0x28]
push edi
push eax
call dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x10086ad6
xor edi, edi
lea ecx, [esp + 0x48]
lea esi, [esp + 0x24]
call fcn.1002bbf0
test eax, eax
je 0x10086ad6
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x48]
cmp eax, 4
jb 0x10086a84
mov edi, edi
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x10086aa8
sub eax, 4
add esi, 4
add edi, 4
cmp eax, 4
jae 0x10086a70
test eax, eax
je 0x10086ace
mov dl, byte [esi]
cmp dl, byte [edi]
jne 0x10086aa8
cmp eax, 1
jbe 0x10086ace
mov cl, byte [esi + 1]
cmp cl, byte [edi + 1]
jne 0x10086aa8
cmp eax, 2
jbe 0x10086ace
mov dl, byte [esi + 2]
cmp dl, byte [edi + 2]
je 0x10086ace
push 0xac
mov eax, 0x68
push str...crypto_rsa_rsa_pss.c
push 4
lea ecx, [eax + 0x2d]
call fcn.1002c650
add esp, 0xc
mov dword [esp + 0x14], 0
jmp 0x10086ad6
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x10086b07
mov eax, dword [0x10114e28]
test eax, eax
je 0x10086aeb
push 0
push ebx
call eax
add esp, 8
push ebx
call dword [0x1010f130]
mov eax, dword [0x10114e28]
add esp, 4
test eax, eax
je 0x10086b07
push 1
push 0
call eax
add esp, 8
lea edi, [esp + 0x24]
call fcn.1002be80
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ae60d
mov esp, ebp
pop ebp
ret