Function at 0x1402e8480
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, 0xe0
call fcn.14036dd20
sub rsp, rax
xor ebp, ebp
mov rdi, r9
mov r14d, ebp
mov r13, rdx
mov rbx, rcx
call fcn.1401c3350
mov rcx, rbx
mov qword [rsp + 0x68], rax
call fcn.1401ee630
mov rcx, rax
mov r15, rax
call fcn.1401b0b30
mov rcx, rbx
mov qword [rsp + 0x88], rax
call fcn.1401a51d0
mov rcx, r13
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x60], rbp
mov esi, ebp
mov qword [rsp + 0x70], rbp
mov r12d, ebp
call fcn.1401a5330
mov rcx, rbx
mov dword [rsp + 0x58], eax
mov qword [rsp + 0xb0], rbp
call fcn.1401a6d20
mov rcx, rbx
mov qword [rsp + 0x98], rax
mov r13, rax
call fcn.14021c390
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xc8], rbp
cmp qword [rsp + 0x68], rbp
je 0x1402e8e2a
cmp dword [rsp + 0x58], esi
jle 0x1402e8e2a
mov rcx, r15
call fcn.1401bbdc0
test rax, rax
je 0x1402e8df4
mov rcx, rax
call fcn.1401b9430
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd rbx, eax
test eax, eax
je 0x1402e8df4
mov rcx, r15
call fcn.14021a140
mov rcx, r15
mov qword [rsp + 0x60], rax
call fcn.14021a140
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x60], rbp
je 0x1402e8dbe
test rax, rax
je 0x1402e8dbe
mov rcx, r13
call fcn.14020e070
mov r14, rax
test rax, rax
jne 0x1402e85f7
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0x9f
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
lea ecx, [rbp + 0x35]
mov edx, 0x80003
call fcn.1401a6230
mov ebx, ebp
jmp 0x1402e8942
mov rcx, r14
call fcn.14020e190
mov rcx, r14
call fcn.14020de70
mov rcx, r14
mov r13, rax
call fcn.14020de70
mov rcx, r14
mov qword [rsp + 0xa0], rax
call fcn.14020de70
mov rcx, r14
mov qword [rsp + 0x78], rax
call fcn.14020de70
mov rcx, r14
mov qword [rsp + 0xa8], rax
call fcn.14020de70
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x1402e8682
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xab
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
mov edx, 0x80003
lea ecx, [r8 + 0x35]
call fcn.1401a6230
mov rbx, rsi
jmp 0x1402e8942
lea rcx, [rbx + rbx]
mov r8d, 0xaf
lea rdx, str.crypto_sm2_sm2_crypt.c
call fcn.14019f770
movsxd rcx, dword [rsp + 0x58]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0xb0
mov r12, rax
call fcn.14019f770
mov qword [rsp + 0x50], rax
test r12, r12
je 0x1402e8e60
test rax, rax
je 0x1402e8e60
mov rax, qword [rsp + 0x148]
xor edx, edx
mov rcx, qword [rsp + 0x140]
mov r8, qword [rax]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0xb7
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call fcn.14019f770
mov rsi, rax
test rax, rax
je 0x1402e893d
mov rdx, qword [rsp + 0x88]
mov r9, r14
xor r8d, r8d
mov rcx, r13
call fcn.1402b7d30
test eax, eax
je 0x1402e890f
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], r14
mov r8, r13
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.140219fa0
test eax, eax
je 0x1402e8d97
mov r9, qword [rsp + 0xa8]
mov rcx, r15
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], r14
call fcn.140219c00
test eax, eax
je 0x1402e8d97
mov r9, qword [rsp + 0xd8]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
call fcn.140219fa0
test eax, eax
je 0x1402e8d97
mov r9, qword [rsp + 0x80]
mov rcx, r15
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], r14
call fcn.140219c00
test eax, eax
je 0x1402e8d97
mov rcx, qword [rsp + 0x78]
mov r8d, ebx
mov rdx, r12
call fcn.1401b8ca0
test eax, eax
js 0x1402e8d81
mov rcx, qword [rsp + 0x80]
lea rdx, [rbx + r12]
mov r8d, ebx
call fcn.1401b8ca0
test eax, eax
js 0x1402e8d81
mov rax, qword [rsp + 0x90]
lea r9, [rbx + rbx]
mov qword [rsp + 0x40], rax
mov r8, r12
mov rax, qword [rsp + 0x98]
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov rcx, rsi
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.14021f430
test eax, eax
je 0x1402e8d5a
xor cl, cl
mov rax, rbp
test rdi, rdi
je 0x1402e88c1
cmp rdi, 0x20
jb 0x1402e88d0
mov rcx, rdi
xorps xmm2, xmm2
and rcx, 0xffffffffffffffe0
xorps xmm1, xmm1
nop dword [rax]
movdqu xmm0, xmmword [rax + rsi]
orps xmm2, xmm0
movdqu xmm0, xmmword [rsi + rax + 0x10]
add rax, 0x20
orps xmm1, xmm0
cmp rax, rcx
jb 0x1402e8870
orps xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
orps xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
orps xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
orps xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
orps xmm1, xmm0
movd ecx, xmm1
cmp rax, rdi
jae 0x1402e88db
nop word [rax + rax]
or cl, byte [rax + rsi]
inc rax
cmp rax, rdi
jb 0x1402e88d0
test cl, cl
jne 0x1402e89eb
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rsp + 0x88]
mov r9, r14
xor r8d, r8d
mov rcx, r13
call fcn.1402b7d30
test eax, eax
jne 0x1402e8730
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xbd
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
mov edx, 0xc0103
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.1401a6230
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xb0]
call fcn.1401c3460
mov rcx, qword [rsp + 0xd0]
call fcn.1401c1b40
mov rcx, qword [rsp + 0xc8]
call fcn.1401c1b40
mov r8d, 0x109
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rsi
call fcn.14019f4d0
mov r8d, 0x10a
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r12
call fcn.14019f4d0
mov r8d, 0x10b
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbx
call fcn.14019f4d0
mov rcx, qword [rsp + 0x68]
call fcn.1401c32a0
mov rcx, r14
call fcn.14020ddb0
mov rcx, qword [rsp + 0x60]
call fcn.140219bc0
mov rcx, qword [rsp + 0x70]
call fcn.140219bc0
mov rbx, qword [rsp + 0x120]
mov eax, ebp
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r15, qword [rsp + 0x130]
mov rdx, rbp
test rdi, rdi
je 0x1402e8b11
cmp rdi, 8
jb 0x1402e8ae4
lea rcx, [rdi - 1]
lea rax, [r15 - 1]
add rcx, rsi
add rax, rdi
cmp rsi, rax
ja 0x1402e8a25
cmp rcx, r15
jae 0x1402e8ae4
cmp rdi, 0x40
jb 0x1402e8aae
mov r8, rdi
mov r9, rdi
and r8d, 0x3f
sub r9, r8
mov rcx, r15
lea rax, [rsi + 0x10]
sub rcx, rsi
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rcx + rax - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rcx + rax - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp rdx, r9
jne 0x1402e8a50
cmp r8, 8
jb 0x1402e8adf
mov rcx, rdi
and rcx, 0xfffffffffffffff8
mov r8, r15
lea rax, [rdx + rsi]
sub r8, rsi
nop
movq xmm0, qword [rax]
add rdx, 8
movq xmm1, qword [rax + r8]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp rdx, rcx
jne 0x1402e8ac0
cmp rdx, rdi
je 0x1402e8b11
mov r9, r15
lea rcx, [rdx + rsi]
sub r9, rsi
mov r8, rdi
sub r8, rdx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r9]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1402e8b00
mov rcx, qword [rsp + 0x128]
call fcn.1401a5270
mov r8, qword [rsp + 0x90]
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call fcn.1401c3410
mov qword [rsp + 0xb0], rax
test rax, rax
jne 0x1402e8b59
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xe0
jmp 0x1402e8920
mov r13, qword [rsp + 0x68]
mov rdx, rax
mov rcx, r13
call fcn.1401c2bb0
test eax, eax
je 0x1402e8d22
mov r8, rbx
mov rdx, r12
mov rcx, r13
call fcn.1401c2c30
test eax, eax
je 0x1402e8d22
mov rdx, r15
mov r8, rdi
mov rcx, r13
mov r15, r13
call fcn.1401c2c30
test eax, eax
je 0x1402e8d22
mov r8, rbx
lea rdx, [rbx + r12]
mov rcx, r13
call fcn.1401c2c30
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x1402e8d27
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call fcn.1401c2670
test eax, eax
je 0x1402e8d27
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xc0], rax
call fcn.1401c1cb0
mov qword [rsp + 0xc8], rax
call fcn.1401c1cb0
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
test rcx, rcx
je 0x1402e8cef
test rax, rax
je 0x1402e8cef
mov r8d, dword [rsp + 0x58]
mov rdx, rbx
call fcn.1401e4920
test eax, eax
je 0x1402e8cbc
mov rcx, qword [rsp + 0xd0]
mov r8d, edi
mov rdx, rsi
call fcn.1401e4920
test eax, eax
je 0x1402e8cbc
lea r8, [0x140408600]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0xb8]
call fcn.1401e37a0
test eax, eax
jns 0x1402e8ca5
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xfe
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.1401a6230
jmp 0x1402e8942
mov rcx, qword [rsp + 0x148]
mov ebp, 1
cdqe
mov qword [rcx], rax
jmp 0x1402e8942
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xf7
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.1401a6230
jmp 0x1402e8942
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xf2
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
mov edx, 0x8000d
lea ecx, [r8 + 0x35]
call fcn.1401a6230
jmp 0x1402e8942
mov rbx, qword [rsp + 0x50]
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xe8
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.1401a6230
jmp 0x1402e8942
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, Ordinal_211
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
mov edx, 0x80006
jmp 0x1402e8931
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xcb
jmp 0x1402e8920
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, Ordinal_200
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
mov edx, 0x80010
jmp 0x1402e8931
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, 0x9a
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
mov edx, 0x80010
lea ecx, [r8 + 0x35]
call fcn.1401a6230
mov rbx, rsi
jmp 0x1402e8942
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, __WSAFDIsSet
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.1401a6230
mov rbx, rsi
jmp 0x1402e8942
call fcn.1401a5fb0
lea r8, str.ossl_sm2_encrypt
mov edx, Ordinal_143
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401a60d0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.1401a6230
mov rbx, rsi
jmp 0x1402e8942
mov rbx, rax
jmp 0x1402e8942