Function at 0x14016f420
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc0
call fcn.1401cd3c0
sub rsp, rax
xor edi, edi
mov rsi, r9
mov r15d, edi
mov r14, rdx
mov rbx, rcx
call fcn.1400d97d0
mov rcx, rbx
mov qword [rsp + 0x68], rax
call fcn.1400fead0
mov rcx, rax
mov rbp, rax
call fcn.1400c7990
mov rcx, rbx
mov qword [rsp + 0xa0], rax
call fcn.14014bf00
mov rcx, r14
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x58], rdi
mov ebx, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rdi
call fcn.1400e1e50
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x90], rdi
cmp qword [rsp + 0x68], rbx
je 0x14016f9a8
test eax, eax
jle 0x14016f9a8
mov rcx, rbp
call fcn.14016ec80
mov r14, rax
test rax, rax
je 0x14016f9a8
mov rcx, rbp
call fcn.1400ff690
mov rcx, rbp
mov qword [rsp + 0x58], rax
call fcn.1400ff690
mov qword [rsp + 0x60], rax
call fcn.1400d2250
mov r15, rax
cmp qword [rsp + 0x58], rbx
je 0x14016f9a0
cmp qword [rsp + 0x60], rbx
je 0x14016f9a0
test rax, rax
je 0x14016f9a0
mov rcx, rax
call fcn.1400d2320
mov rcx, r15
call fcn.1400d21c0
mov rcx, r15
mov r12, rax
call fcn.1400d21c0
mov rcx, r15
mov qword [rsp + 0x70], rax
call fcn.1400d21c0
mov rcx, r15
mov qword [rsp + 0xb0], rax
call fcn.1400d21c0
mov rcx, r15
mov qword [rsp + 0x78], rax
call fcn.1400d21c0
mov r13, rax
test rax, rax
jne 0x14016f575
lea r8d, [rdi + 3]
jmp 0x14016f9ae
lea rcx, [r14 + r14]
mov r8d, 0xa2
lea rdx, str.crypto_sm2_sm2_crypt.c
call fcn.1400d7e60
movsxd rcx, dword [rsp + 0x48]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0xa3
mov qword [rsp + 0x50], rax
call fcn.1400d7e60
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x50], rbx
je 0x14016f982
test rax, rax
je 0x14016f982
mov rax, qword [rsp + 0x128]
xor edx, edx
mov rcx, qword [rsp + 0x120]
mov r8, qword [rax]
call fcn.1401ce320
mov rdx, qword [rsp + 0xa0]
mov rcx, r12
call fcn.1400d8130
xor r9d, r9d
test eax, eax
jne 0x14016f612
mov r8d, 0x44
mov ecx, gethostname
mov dword [rsp + 0x20], edi
lea edx, [rcx + 0x32]
call fcn.1400cef30
mov r14, qword [rsp + 0x40]
jmp 0x14016f9c4
mov rdx, qword [rsp + 0x58]
mov r8, r12
mov qword [rsp + 0x28], r15
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call fcn.1400ff630
test eax, eax
je 0x14016f964
mov r9, qword [rsp + 0x78]
mov rcx, rbp
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r15
call fcn.1400ff350
test eax, eax
je 0x14016f964
mov r9, qword [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, rbp
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
call fcn.1400ff630
test eax, eax
je 0x14016f964
mov r12, qword [rsp + 0xb0]
mov r9, r13
mov rdx, qword [rsp + 0x60]
mov r8, r12
mov rcx, rbp
mov qword [rsp + 0x20], r15
call fcn.1400ff350
test eax, eax
je 0x14016f964
mov rbp, qword [rsp + 0x50]
mov r8d, r14d
mov rdx, rbp
mov rcx, r12
call fcn.1400d0d90
test eax, eax
js 0x14016f95c
lea r12, [r14 + rbp]
mov r8d, r14d
mov rdx, r12
mov rcx, r13
call fcn.1400d0d90
test eax, eax
js 0x14016f95c
mov r8d, 0xbf
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rsi
call fcn.1400d7e60
mov rbx, rax
test rax, rax
je 0x14016f982
mov r13, qword [rsp + 0x108]
lea r9, [r14 + r14]
mov qword [rsp + 0x30], r13
mov r8, rbp
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], rdi
call fcn.14016dfc0
test eax, eax
jne 0x14016f739
xor r9d, r9d
lea r8d, [rax + 6]
jmp 0x14016f5f7
mov r8, rdi
test rsi, rsi
je 0x14016f7e1
mov r9, qword [rsp + 0x110]
cmp rsi, 0x20
jb 0x14016f7b3
lea rcx, [rsi - 1]
lea rax, [r9 - 1]
add rcx, rbx
add rax, rsi
cmp rbx, rax
ja 0x14016f76b
cmp rcx, r9
jae 0x14016f7b3
mov rax, rsi
mov rdx, rsi
and eax, 0x1f
mov rcx, r9
sub rdx, rax
mov rax, rbx
sub rcx, rbx
movdqu xmm0, xmmword [rax]
add r8, 0x20
movdqu xmm1, xmmword [rcx + rax]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm0, xmmword [rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
cmp r8, rdx
jne 0x14016f780
cmp r8, rsi
je 0x14016f7e1
sub r9, rbx
lea rcx, [r8 + rbx]
mov rdx, rsi
sub rdx, r8
nop word [rax + rax]
movzx eax, byte [rcx + r9]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14016f7d0
mov rbp, qword [rsp + 0x68]
mov rdx, r13
mov rcx, rbp
call fcn.1400d92a0
test eax, eax
je 0x14016f93e
mov rdx, qword [rsp + 0x50]
mov r8, r14
mov rcx, rbp
call fcn.1400d9510
test eax, eax
je 0x14016f93e
mov rdx, qword [rsp + 0x110]
mov r8, rsi
mov rcx, rbp
call fcn.1400d9510
test eax, eax
je 0x14016f93e
mov r8, r14
mov rdx, r12
mov rcx, rbp
call fcn.1400d9510
mov r14, qword [rsp + 0x40]
test eax, eax
je 0x14016f943
xor r8d, r8d
mov rdx, r14
mov rcx, rbp
call fcn.1400d9110
test eax, eax
je 0x14016f943
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
call fcn.1400f0500
mov qword [rsp + 0x90], rax
call fcn.1400f0500
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
test rcx, rcx
je 0x14016f922
test rax, rax
je 0x14016f922
mov r8d, dword [rsp + 0x48]
mov rdx, r14
call fcn.1400e3db0
test eax, eax
je 0x14016f906
mov rcx, qword [rsp + 0x98]
mov r8d, esi
mov rdx, rbx
call fcn.1400e3db0
test eax, eax
je 0x14016f906
lea r8, [0x14023c920]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x80]
call fcn.1400f34e0
test eax, eax
js 0x14016f906
mov rcx, qword [rsp + 0x128]
mov edi, 1
cdqe
mov qword [rcx], rax
jmp 0x14016f9c4
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea edx, [r9 + 0x67]
lea ecx, [rdx - 0x32]
lea r8d, [r9 + 0x44]
call fcn.1400cef30
jmp 0x14016f9c4
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea edx, [r9 + 0x67]
lea ecx, [rdx - 0x32]
lea r8d, [r9 + 0x41]
call fcn.1400cef30
jmp 0x14016f9c4
mov r14, qword [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea edx, [r9 + 0x67]
lea ecx, [rdx - 0x32]
lea r8d, [r9 + 6]
call fcn.1400cef30
jmp 0x14016f9c4
xor r9d, r9d
jmp 0x14016f5f1
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea edx, [r9 + 0x67]
lea ecx, [rdx - 0x32]
lea r8d, [r9 + 0x10]
call fcn.1400cef30
mov r14, qword [rsp + 0x40]
jmp 0x14016f9c4
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea edx, [r9 + 0x67]
lea ecx, [rdx - 0x32]
lea r8d, [r9 + 0x41]
call fcn.1400cef30
mov r14, qword [rsp + 0x40]
jmp 0x14016f9c4
mov r8d, 0x41
jmp 0x14016f9ae
mov r8d, 0x44
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea edx, [r9 + 0x67]
lea ecx, [rdx - 0x32]
call fcn.1400cef30
mov r14, rbx
mov rcx, qword [rsp + 0x98]
call fcn.1400f03f0
mov rcx, qword [rsp + 0x90]
call fcn.1400f03f0
mov r8d, 0xf4
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbx
call fcn.1400d7b70
mov rcx, qword [rsp + 0x50]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0xf5
call fcn.1400d7b70
mov r8d, 0xf6
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r14
call fcn.1400d7b70
mov rcx, qword [rsp + 0x68]
call fcn.1400d9790
mov rcx, r15
call fcn.1400d2160
mov rcx, qword [rsp + 0x58]
call fcn.1400ff310
mov rcx, qword [rsp + 0x60]
call fcn.1400ff310
mov rbx, qword [rsp + 0x100]
mov eax, edi
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret