Function at 0x14016ab50
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, pe_nt_image_headers64
call fcn.14022de60
sub rsp, rax
mov rax, qword [0x1403a9200]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x188]
xor r14d, r14d
mov esi, dword [rsp + 0x180]
mov r12, rcx
mov qword [rsp + 0x78], rcx
mov r13d, 0xffffffff
mov rcx, qword [rsp + 0x198]
mov rdi, r8
mov qword [rsp + 0x60], rax
mov ebp, r14d
mov rax, qword [rsp + 0x1a0]
mov r15d, r14d
mov qword [rsp + 0x50], rax
movsxd rbx, r9d
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x34], r14d
test rcx, rcx
jne 0x14016abf3
call fcn.140129d70
mov rcx, rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
test rax, rax
cmove rax, rcx
mov qword [rsp + 0x50], rax
call fcn.140085a20
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x30], ebp
jle 0x14016b407
test ebx, ebx
jle 0x14016b407
cmp esi, ebx
jl 0x14016b3db
lea ecx, [rax*2 + 2]
cmp esi, ecx
jl 0x14016b3db
mov r13d, esi
lea rdx, str.crypto_rsa_rsa_oaep.c
sub r13d, eax
mov r8d, 0xcd
dec r13d
movsxd rax, r13d
mov rcx, rax
mov qword [rsp + 0x80], rax
call fcn.140078a70
mov rsi, rax
movsxd rax, dword [rsp + 0x38]
test rsi, rsi
jne 0x14016ac9e
call fcn.140078e50
lea r8, str.RSA_padding_check_PKCS1_OAEP_mgf1
mov edx, 0xcf
lea rcx, str.crypto_rsa_rsa_oaep.c
call fcn.140078f70
xor r8d, r8d
lea ecx, [rsi + 4]
mov edx, 0xc0100
call fcn.140079070
movsxd rbx, dword [rsp + 0x38]
jmp 0x14016b37a
mov r8d, 0xd3
lea rdx, str.crypto_rsa_rsa_oaep.c
mov rcx, rax
call fcn.140078a70
mov r15, rax
test rax, rax
jne 0x14016acf3
call fcn.140078e50
lea r8, str.RSA_padding_check_PKCS1_OAEP_mgf1
mov edx, 0xd5
lea rcx, str.crypto_rsa_rsa_oaep.c
call fcn.140078f70
xor r8d, r8d
lea ecx, [r15 + 4]
mov edx, 0xc0100
call fcn.140079070
movsxd rbx, dword [rsp + 0x38]
jmp 0x14016b37a
movsxd r9, dword [rsp + 0x38]
add rdi, rbx
mov eax, dword [rsp + 0x38]
add r15, r9
test eax, eax
jle 0x14016ad3e
mov edx, eax
nop dword [rax + rax]
mov eax, ebx
lea ecx, [rbx - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec r15
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 [r15], cl
sub rdx, 1
jne 0x14016ad10
movsxd rdi, dword [rsp + 0x4c]
lea rcx, [rsp + 0x90]
movzx ebp, byte [r15]
lea rbx, [r15 + 1]
mov rax, qword [rsp + 0x50]
dec ebp
mov qword [rsp + 0x40], r9
mov r8, rdi
inc r8
shr ebp, 0x1f
add r8, r15
mov qword [rsp + 0x70], rdi
mov r9d, r13d
mov qword [rsp + 0x58], r8
mov edx, edi
mov qword [rsp + 0x20], rax
neg ebp
call fcn.14016a900
test eax, eax
jne 0x14016b375
mov edx, r14d
test edi, edi
jle 0x14016aee8
cmp edi, 8
jb 0x14016aee8
lea eax, [rdi - 1]
movsxd rcx, eax
lea r8, [rsp + 0x90]
add r8, rcx
lea rax, [rcx + rbx]
lea rcx, [rsp + 0x90]
cmp rcx, rax
ja 0x14016adcd
cmp r8, rbx
jae 0x14016aee8
cmp edi, 0x40
jb 0x14016ae90
mov ecx, edi
and ecx, 0x8000003f
jge 0x14016ade7
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, edi
sub eax, ecx
lea r8, [rsp + 0x90]
movsxd r11, eax
lea r9, [rsp + 0xa0]
sub r8, rbx
sub r9, rbx
lea rcx, [rbx + 0x20]
mov r10, 0xffffffffffffffe0
sub r10, rbx
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [r8 + rcx - 0x20]
add edx, 0x40
movdqu xmm1, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
lea rax, [r10 + rcx]
xorps xmm1, xmm0
movdqu xmmword [r8 + rcx - 0x60], xmm1
movdqu xmm0, xmmword [r9 + rcx - 0x60]
movdqu xmm1, xmmword [rcx - 0x50]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rcx - 0x40]
movdqu xmmword [r9 + rcx - 0x60], xmm1
movdqu xmm1, xmmword [rcx + r8 - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rcx + r8 - 0x40], xmm1
movdqu xmm0, xmmword [rcx + r9 - 0x40]
movdqu xmm1, xmmword [rcx - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rcx + r9 - 0x40], xmm1
cmp rax, r11
jl 0x14016ae20
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x14016aee8
mov ecx, edi
and ecx, 0x80000007
jge 0x14016aea1
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, edi
sub eax, ecx
movsxd r9, eax
mov r8, rbx
lea rax, [rsp + 0x90]
movsxd rcx, edx
sub r8, rax
nop dword [rax]
lea rax, [rsp + 0x90]
add edx, 8
add rax, rcx
add rcx, 8
movq xmm0, qword [rax]
movq xmm1, qword [rax + r8]
xorps xmm1, xmm0
movq qword [rax], xmm1
cmp rcx, r9
jl 0x14016aec0
movsxd rdx, edx
cmp rdx, rdi
jge 0x14016af19
lea rax, [rsp + 0x90]
sub rbx, rax
nop dword [rax + rax]
lea rcx, [rsp + 0x90]
add rcx, rdx
inc rdx
movzx eax, byte [rcx + rbx]
xor byte [rcx], al
cmp rdx, rdi
jl 0x14016af00
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x90]
movsxd rbx, dword [rsp + 0x38]
mov r9d, edi
mov edx, r13d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.14016a900
test eax, eax
jne 0x14016b373
mov r9, qword [rsp + 0x58]
mov edx, r14d
test r13d, r13d
jle 0x14016b073
cmp r13d, 8
jb 0x14016b073
lea eax, [r13 - 1]
movsxd rcx, eax
lea rax, [rcx + r9]
lea r8, [rcx + rsi]
cmp rsi, rax
ja 0x14016af7e
cmp r8, r9
jae 0x14016b073
cmp r13d, 0x40
jb 0x14016b028
mov ecx, r13d
and ecx, 0x8000003f
jge 0x14016af9a
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r13d
sub eax, ecx
mov r8, r9
movsxd r11, eax
sub r8, rsi
lea rcx, [rsi + 0x10]
mov r10, 0xfffffffffffffff0
sub r10, rsi
nop word [rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
add edx, 0x40
movdqu xmm1, xmmword [r8 + rcx - 0x10]
movdqu xmm2, xmmword [r8 + rcx]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
lea rax, [r10 + rcx]
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm0, xmmword [rcx - 0x40]
movdqu xmm1, xmmword [r8 + rcx - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm0, xmmword [rcx - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm1, xmmword [r8 + rcx - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
cmp rax, r11
jl 0x14016afc0
mov eax, r13d
and al, 0x3f
cmp al, 8
jb 0x14016b073
mov eax, r13d
and eax, 0x80000007
jge 0x14016b039
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, r13d
sub ecx, eax
movsxd rax, edx
mov r8, r9
movsxd r10, ecx
sub r8, rsi
lea rcx, [rax + rsi]
nop
movq xmm0, qword [rcx]
add edx, 8
movq xmm1, qword [rcx + r8]
xorps xmm1, xmm0
movq qword [rcx], xmm1
add rcx, 8
mov rax, rcx
sub rax, rsi
cmp rax, r10
jl 0x14016b050
movsxd rax, edx
movsxd rcx, r13d
cmp rax, rcx
jge 0x14016b0a1
sub r9, rsi
lea rdx, [rax + rsi]
mov r8, rcx
sub r8, rax
nop dword [rax + rax]
movzx eax, byte [rdx + r9]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x14016b090
mov rax, qword [rsp + 0x68]
lea r8, [rsp + 0xd0]
movsxd rdx, dword [rsp + 0x190]
xor r9d, r9d
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.140086750
test eax, eax
je 0x14016b373
mov r8, rdi
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.14013dc70
mov r9d, r14d
mov r11d, edi
mov r8, rdi
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
movsxd rax, r13d
neg ecx
and ebp, ecx
cmp rdi, rax
jge 0x14016b180
mov r10, rdi
movsxd r12, r13d
mov edi, r14d
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r10 + rsi]
mov eax, r9d
not eax
mov edx, r8d
xor edx, 1
inc r10
dec edx
shr edx, 0x1f
neg edx
and eax, edx
or r9d, edx
mov dword [rsp + 0x48], eax
not eax
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x34]
and ecx, r11d
and edi, eax
inc r11d
lea eax, [r8 - 1]
or edi, ecx
shr eax, 0x1f
neg eax
or eax, r9d
and ebp, eax
cmp r10, r12
jl 0x14016b120
mov r12, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov dword [rsp + 0x34], edi
mov edi, dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x30]
mov r10d, r13d
sub r10d, dword [rsp + 0x34]
mov ecx, r11d
dec r10d
mov eax, r11d
sub ecx, r10d
mov dword [rsp + 0x48], r10d
xor ecx, r10d
xor eax, r10d
or ecx, eax
mov edx, r13d
xor ecx, r11d
sub edx, edi
shr ecx, 0x1f
mov eax, r11d
dec ecx
and ecx, r9d
and ebp, ecx
lea r9d, [rdx - 1]
xor eax, r9d
mov ecx, r9d
sub ecx, r11d
xor ecx, r11d
or ecx, eax
xor ecx, r9d
shr ecx, 0x1f
neg ecx
mov dword [rsp + 0x30], ecx
not ecx
mov dword [rsp + 0x34], ecx
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
and eax, r9d
and ecx, r11d
mov r11d, 1
or ecx, eax
mov dword [rsp + 0x34], ecx
cmp r9d, r11d
jle 0x14016b2bf
sub edx, r10d
mov r12d, r9d
lea r14d, [rdx - 1]
lea rdx, [r8 + 1]
mov qword [rsp + 0x60], rdx
nop word [rax + rax]
mov eax, r14d
and eax, r11d
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, r13d
sub eax, r11d
dec ecx
movsxd r9, eax
cmp rdx, r9
jge 0x14016b299
movzx ebx, cl
lea rax, [rdx + rsi]
mov r10d, ebx
movsxd rdi, r11d
sub r9, r8
not r10d
dec r9
nop dword [rax]
movzx ecx, byte [rax + rdi]
lea rax, [rax + 1]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x30], r10d
mov r8d, dword [rsp + 0x40]
mov edx, dword [rsp + 0x30]
and r8b, cl
movzx ecx, byte [rax - 1]
and dl, cl
or dl, r8b
mov byte [rax - 1], dl
sub r9, 1
jne 0x14016b260
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
add r11d, r11d
cmp r11d, r12d
jl 0x14016b220
mov r12, qword [rsp + 0x78]
xor r14d, r14d
mov edi, dword [rsp + 0x4c]
mov r10d, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
movsxd rbx, dword [rsp + 0x38]
movsxd r9, ecx
test ecx, ecx
jle 0x14016b33d
mov r8d, r10d
movsxd r11, edi
shr r8d, 0x1f
sub r11, r12
add r11, rsi
nop word [rax + rax]
mov edx, r14d
lea r12, [r12 + 1]
sub edx, r10d
mov ecx, r14d
shr ecx, 0x1f
movzx eax, r8b
xor al, cl
shr edx, 0x1f
xor dl, r8b
inc r14d
or dl, al
movzx eax, bpl
xor dl, cl
neg dl
movzx ecx, dl
and ecx, eax
movzx eax, byte [r11 + r12]
mov dword [rsp + 0x40], ecx
not ecx
mov dword [rsp + 0x30], ecx
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
and dl, al
movzx eax, byte [r12 - 1]
and cl, al
or cl, dl
mov byte [r12 - 1], cl
sub r9, 1
jne 0x14016b2e0
call fcn.140078e50
lea r8, str.RSA_padding_check_PKCS1_OAEP_mgf1
mov edx, 0x13a
lea rcx, str.crypto_rsa_rsa_oaep.c
call fcn.140078f70
xor r8d, r8d
lea edx, [r8 + 0x79]
lea ecx, [rdx - 0x75]
call fcn.140079070
mov ecx, ebp
and ecx, 1
call fcn.140078300
jmp 0x14016b37a
mov rbx, qword [rsp + 0x40]
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.14007da30
mov rdx, qword [rsp + 0x80]
lea r8, str.crypto_rsa_rsa_oaep.c
mov r9d, 0x13f
mov rcx, rsi
call fcn.140078bb0
mov r9d, 0x140
lea r8, str.crypto_rsa_rsa_oaep.c
mov rdx, rbx
mov rcx, r15
call fcn.140078bb0
mov dword [rsp + 0x40], ebp
not ebp
mov dword [rsp + 0x30], ebp
mov ecx, dword [rsp + 0x40]
and ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x30]
or eax, ecx
jmp 0x14016b40a
call fcn.140078e50
lea r8, str.RSA_padding_check_PKCS1_OAEP_mgf1
mov edx, 0xc8
lea rcx, str.crypto_rsa_rsa_oaep.c
call fcn.140078f70
xor r8d, r8d
lea edx, [r8 + 0x79]
lea ecx, [rdx - 0x75]
call fcn.140079070
mov eax, r13d
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14022dda0
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret