Function at 0x10139d50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.1005d3c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, ecx
push ebx
xor ebx, ebx
mov dword [esp + 0x10], 0
test eax, eax
mov dword [esp + 4], ebx
push ebp
cmovne edx, eax
push ecx
mov dword [esp + 0x1c], edx
call fcn.100c4460
mov ebp, eax
add esp, 4
test ebp, ebp
js 0x1013a01b
push edi
mov edi, dword [esp + 0x3c]
cmp edi, 0xffffffff
jne 0x10139e23
mov edi, ebp
push esi
mov esi, dword [esp + 0x2c]
push dword [esi + 0x10]
call fcn.100d04c0
dec eax
and eax, 7
push esi
mov dword [esp + 0x20], eax
call fcn.100b34f0
mov esi, dword [esp + 0x38]
add esp, 8
mov ecx, eax
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x18], ebx
jne 0x10139dd6
mov byte [esi], bl
inc esi
dec ecx
mov dword [esp + 0x3c], ecx
cmp edi, 0xfffffffe
jne 0x10139e56
mov edi, ecx
sub edi, ebp
sub edi, 2
test edi, edi
jle 0x10139e95
push 0xba
push str.crypto_rsa_rsa_pss.c
push edi
call fcn.100ac710
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10139e7f
push 0xbd
push str.crypto_rsa_rsa_pss.c
push 0x41
push 0x98
push 4
call fcn.100b9ee0
add esp, 0x14
jmp 0x1013a019
cmp edi, 0xfffffffe
jne 0x10139e2d
jmp 0x10139da0
jge 0x10139da0
push 0xa8
push str.crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.100b9ee0
add esp, 0x14
jmp 0x1013a01a
lea eax, [ebp + 2]
add eax, edi
cmp ecx, eax
jge 0x10139de2
push 0xb6
push str.crypto_rsa_rsa_pss.c
push 0x6e
push 0x98
push 4
call fcn.100b9ee0
add esp, 0x14
jmp 0x1013a019
push edi
push ebx
call fcn.100b7490
add esp, 8
test eax, eax
jle 0x1013a019
mov ecx, dword [esp + 0x3c]
sub ecx, ebp
mov dword [esp + 0x24], ecx
dec ecx
mov dword [esp + 0x14], ecx
call fcn.100b2260
mov dword [esp + 0x10], eax
test eax, eax
je 0x1013a019
push 0
push dword [esp + 0x3c]
push eax
call fcn.100b1da0
add esp, 0xc
test eax, eax
je 0x1013a019
push 8
push 0x101b6028
push dword [esp + 0x18]
call fcn.100b1f40
add esp, 0xc
test eax, eax
je 0x1013a019
push ebp
push dword [esp + 0x38]
push dword [esp + 0x18]
call fcn.100b1f40
add esp, 0xc
test eax, eax
je 0x1013a019
test edi, edi
je 0x10139f16
push edi
push ebx
push dword [esp + 0x18]
call fcn.100b1f40
add esp, 0xc
test eax, eax
je 0x1013a019
mov eax, dword [esp + 0x14]
push 0
add eax, esi
push eax
push dword [esp + 0x18]
call fcn.100b1d00
add esp, 0xc
test eax, eax
je 0x1013a019
mov ecx, dword [esp + 0x14]
push dword [esp + 0x20]
push ebp
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.10121230
add esp, 0x14
test eax, eax
jne 0x1013a019
mov ecx, dword [esp + 0x24]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
lea eax, [ecx - 2]
dec ecx
test edi, edi
jle 0x10139ff0
xor edx, edx
cmp edi, 0x40
jb 0x10139fde
lea ebp, [eax + edi]
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x10139f81
cmp ebp, ebx
jae 0x10139fde
mov eax, edi
and eax, 0x8000003f
jns 0x10139f8f
dec eax
or eax, 0xffffffc0
inc eax
mov ebp, edi
sub ebp, eax
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ebx + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [ebx + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movups xmm0, xmmword [ecx + 0x20]
movups xmm1, xmmword [ebx + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmm1, xmmword [ebx + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, ebp
jl 0x10139f93
cmp edx, edi
jge 0x10139ff0
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x10139fe2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1013a008
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], 1
mov byte [eax + esi - 1], 0xbc
pop esi
pop edi
push dword [esp + 8]
call fcn.100b2240
push 0xec
push str.crypto_rsa_rsa_pss.c
push ebx
call fcn.100ac740
mov eax, dword [esp + 0x24]
add esp, 0x10
pop ebp
pop ebx
add esp, 0x18
ret