Function at 0x140146460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x110
call fcn.1401dc320
sub rsp, rax
mov rax, qword [0x14030ef00]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x178]
or ebp, 0xffffffff
mov r15d, dword [rsp + 0x170]
xor r12d, r12d
mov rsi, qword [rsp + 0x190]
xor r14d, r14d
mov qword [rsp + 0x60], rax
mov rdi, r8
mov rax, qword [rsp + 0x188]
mov r13d, edx
movsxd rbx, r9d
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x34], ebp
mov dword [rsp + 0x30], 0
test rax, rax
jne 0x1401464f4
call fcn.1400d53c0
mov qword [rsp + 0x40], rax
test rsi, rsi
mov rcx, rax
cmove rsi, rax
mov qword [rsp + 0x48], rsi
call fcn.1400f0be0
movsxd rsi, eax
test r13d, r13d
jle 0x140146b09
test ebx, ebx
jle 0x140146b09
cmp r15d, ebx
jl 0x140146aef
lea ecx, [rsi*2 + 2]
cmp r15d, ecx
jl 0x140146aef
mov ebp, r15d
lea rdx, str.crypto_rsa_rsa_oaep.c
sub ebp, esi
mov r8d, 0x9d
dec ebp
movsxd rax, ebp
mov rcx, rax
mov qword [rsp + 0x58], rax
call fcn.1400e6790
mov r15, rax
test rax, rax
jne 0x140146580
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov edx, 0x99
lea ecx, [r9 + 4]
lea r8d, [r9 + 0x41]
call fcn.1400ddd60
jmp 0x140146a89
movsxd r13, dword [rsp + 0x50]
lea rdx, str.crypto_rsa_rsa_oaep.c
mov rcx, r13
mov r8d, 0xa3
call fcn.1400e6790
mov r14, rax
test rax, rax
je 0x140146561
mov eax, dword [rsp + 0x50]
add rdi, rbx
add r14, r13
test eax, eax
jle 0x1401465e0
mov edx, eax
mov eax, ebx
lea ecx, [rbx - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec r14
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub ebx, eax
mov eax, ecx
and eax, 1
sub rdi, rax
and cl, byte [rdi]
mov byte [r14], cl
sub rdx, 1
jne 0x1401465b2
movzx eax, byte [r14]
lea rdi, [rsi + 1]
add rdi, r14
mov qword [rsp + 0x68], rsi
mov r9d, ebp
lea rcx, [rsp + 0x80]
mov r8, rdi
lea rbx, [r14 + 1]
lea r12d, [rax - 1]
mov edx, esi
not eax
shr r12d, 0x1f
shr eax, 0x1f
mov r13, rsi
and r12d, eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
neg r12d
call fcn.140145e50
test eax, eax
jne 0x140146a89
xor edx, edx
test esi, esi
jle 0x1401466de
cmp esi, 0x20
jb 0x1401466de
lea eax, [rsi - 1]
movsxd rcx, eax
lea r8, [rsp + 0x80]
add r8, rcx
lea rax, [rcx + rbx]
lea rcx, [rsp + 0x80]
cmp rcx, rax
ja 0x14014666b
cmp r8, rbx
jae 0x1401466de
mov ecx, esi
and ecx, 0x8000001f
jge 0x14014667c
dec ecx
or ecx, 0xffffffe0
inc ecx
mov eax, esi
mov r8, rbx
sub eax, ecx
xor ecx, ecx
movsxd r9, eax
lea rax, [rsp + 0x80]
sub r8, rax
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x80]
add edx, 0x20
add rax, rcx
add rcx, 0x20
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + r8]
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm1, xmmword [rax + r8 + 0x10]
movdqu xmm0, xmmword [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
cmp rcx, r9
jl 0x1401466a0
movsxd rdx, edx
cmp rdx, rsi
jge 0x14014670a
lea rax, [rsp + 0x80]
sub rbx, rax
lea rcx, [rsp + 0x80]
add rcx, rdx
inc rdx
movzx eax, byte [rcx + rbx]
xor byte [rcx], al
cmp rdx, rsi
jl 0x1401466f1
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x80]
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r15
call fcn.140145e50
test eax, eax
jne 0x140146a89
xor edx, edx
test ebp, ebp
jle 0x1401467b8
cmp ebp, 0x20
jb 0x1401467b8
lea eax, [rbp - 1]
movsxd rcx, eax
lea rax, [rdi + rcx]
lea r8, [r15 + rcx]
cmp r15, rax
ja 0x140146758
cmp r8, rdi
jae 0x1401467b8
mov ecx, ebp
and ecx, 0x8000001f
jge 0x140146769
dec ecx
or ecx, 0xffffffe0
inc ecx
mov eax, ebp
mov r8, rdi
sub eax, ecx
sub r8, r15
mov r9, r15
movsxd r10, eax
neg r9
mov rcx, r15
nop
movdqu xmm0, xmmword [rcx]
add edx, 0x20
movdqu xmm1, xmmword [r8 + rcx]
lea rcx, [rcx + 0x20]
lea rax, [r9 + rcx]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
movdqu xmm1, xmmword [r8 + rcx - 0x10]
movdqu xmm0, xmmword [rcx - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x10], xmm1
cmp rax, r10
jl 0x140146780
movsxd rax, edx
movsxd rbx, ebp
cmp rax, rbx
jge 0x1401467e0
sub rdi, r15
lea rdx, [rax + r15]
mov r8, rbx
sub r8, rax
movzx eax, byte [rdx + rdi]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1401467d0
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0xc0]
movsxd rdx, dword [rsp + 0x180]
xor r9d, r9d
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.1400e7cb0
test eax, eax
je 0x140146a8e
mov r8, rsi
lea rdx, [rsp + 0xc0]
mov rcx, r15
call fcn.1400efe90
xor r10d, r10d
mov ebx, esi
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
movsxd rax, ebp
neg ecx
and r12d, ecx
cmp rsi, rax
jge 0x1401468ca
mov r9, rax
lea r11, [r15 + rsi]
sub r9, rsi
mov r13d, r10d
nop dword [rax + rax]
movzx r8d, byte [r11]
lea r11, [r11 + 1]
mov eax, r8d
xor eax, 1
lea edx, [rax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, r10d
not eax
neg edx
and eax, edx
or r10d, edx
mov dword [rsp + 0x34], eax
not eax
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
and ecx, ebx
and r13d, eax
inc ebx
lea eax, [r8 - 1]
or r13d, ecx
shr eax, 0x1f
not r8d
shr r8d, 0x1f
and eax, r8d
neg eax
or eax, r10d
and r12d, eax
sub r9, 1
jne 0x140146860
mov dword [rsp + 0x30], r13d
mov r13, rsi
mov r9d, dword [rsp + 0x38]
mov edi, ebp
sub edi, dword [rsp + 0x30]
mov ecx, r9d
dec edi
mov eax, r9d
sub ecx, edi
mov dword [rsp + 0x34], edi
xor ecx, edi
xor eax, edi
or ecx, eax
mov r8d, ebp
xor ecx, r9d
sub r8d, esi
shr ecx, 0x1f
mov eax, r9d
dec ecx
mov r11d, 1
and ecx, r10d
and r12d, ecx
lea ecx, [r8 - 1]
xor eax, ecx
mov dword [rsp + 0x48], r12d
mov edx, ecx
sub edx, r9d
xor edx, r9d
or edx, eax
xor edx, ecx
lea ecx, [r8 - 1]
shr edx, 0x1f
neg edx
mov dword [rsp + 0x38], edx
not edx
mov dword [rsp + 0x30], edx
mov eax, dword [rsp + 0x38]
mov edx, dword [rsp + 0x30]
and eax, ecx
and edx, r9d
or edx, eax
mov dword [rsp + 0x30], edx
cmp ecx, r11d
jle 0x1401469e9
sub r8d, edi
lea rsi, [r13 + 1]
mov r13d, ecx
lea r12d, [r8 - 1]
nop word [rax + rax]
mov eax, r12d
and eax, r11d
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, ebp
sub eax, r11d
dec ecx
movsxd r9, eax
cmp rsi, r9
jge 0x1401469cf
movzx ebx, cl
lea rax, [rsi + r15]
mov r10d, ebx
movsxd rdi, r11d
not r10d
sub r9, rsi
nop word [rax + rax]
movzx ecx, byte [rax + rdi]
lea rax, [rax + 1]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], r10d
mov r8d, dword [rsp + 0x40]
mov edx, dword [rsp + 0x38]
and r8b, cl
movzx ecx, byte [rax - 1]
and dl, cl
or dl, r8b
mov byte [rax - 1], dl
sub r9, 1
jne 0x1401469a0
add r11d, r11d
cmp r11d, r13d
jl 0x140146960
mov r12d, dword [rsp + 0x48]
mov r13, qword [rsp + 0x68]
mov edx, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
xor r8d, r8d
movsxd r10, edx
test edx, edx
jle 0x140146a61
mov rsi, qword [rsp + 0x70]
mov r9d, edi
mov r11d, edi
shr r9d, 0x1f
neg r11d
movzx ebx, r12b
sub r13, rsi
lea rdi, [r15 + r13]
mov ecx, r8d
lea edx, [r11 + r8]
shr edx, 0x1f
lea rsi, [rsi + 1]
shr ecx, 0x1f
xor dl, r9b
movzx eax, cl
inc r8d
xor al, r9b
or dl, al
xor dl, cl
neg dl
movzx eax, dl
and eax, ebx
mov dword [rsp + 0x48], eax
not eax
mov dword [rsp + 0x40], eax
movzx eax, byte [rsi + rdi]
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
and dl, al
movzx eax, byte [rsi - 1]
and cl, al
or cl, dl
mov byte [rsi - 1], cl
sub r10, 1
jne 0x140146a10
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0x99
lea ecx, [r9 + 4]
lea r8d, [r9 + 0x79]
call fcn.1400ddd60
mov ecx, r12d
and ecx, 1
call fcn.1400ddf70
mov rbx, qword [rsp + 0x58]
mov edx, 0x40
lea rcx, [rsp + 0x80]
call fcn.1400ef4f0
mov r9d, 0x10b
lea r8, str.crypto_rsa_rsa_oaep.c
mov rdx, rbx
mov rcx, r15
call fcn.1400e68f0
movsxd rdx, dword [rsp + 0x50]
lea r8, str.crypto_rsa_rsa_oaep.c
mov r9d, 0x10c
mov rcx, r14
call fcn.1400e68f0
mov dword [rsp + 0x48], r12d
not r12d
mov dword [rsp + 0x40], r12d
mov ecx, dword [rsp + 0x48]
and ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x40]
or eax, ecx
jmp 0x140146b0b
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov edx, 0x99
lea ecx, [r9 + 4]
lea r8d, [r9 + 0x79]
call fcn.1400ddd60
mov eax, ebp
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1401dbdb0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret