Function at 0x1402d2410
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, 0xb0
call fcn.1402f86d0
sub rsp, rax
xor ebx, ebx
mov r13, r9
mov qword [rsp + 0x68], rbx
mov rdi, rdx
mov r12, rcx
call fcn.1401df270
mov rcx, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rbx
mov r14d, ebx
mov ebp, ebx
mov r15d, ebx
call fcn.14018d280
test rax, rax
jne 0x1402d248f
mov rcx, rdi
call fcn.140196570
mov rcx, r12
call fcn.1401997c0
mov rcx, r12
call fcn.14020e4b0
mov edi, ebx
mov esi, ebx
jmp 0x1402d2624
mov rcx, rax
call fcn.1401b1820
add eax, 7
mov rcx, rdi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [rsp + 0x70], eax
movsxd r15, eax
call fcn.140196570
mov rcx, r12
mov dword [rsp + 0x74], eax
mov ebp, eax
mov rdi, rbx
mov rsi, rbx
call fcn.1401997c0
mov rcx, r12
mov qword [rsp + 0x98], rax
call fcn.14020e4b0
mov qword [rsp + 0xa0], rax
test r15, r15
je 0x1402d261e
test ebp, ebp
jle 0x1402d261e
mov r8, qword [rsp + 0x118]
mov edx, 0xff
mov rcx, qword [rsp + 0x110]
mov r8, qword [r8]
call sub.VCRUNTIME140.dll_memset
lea r9, [0x1403eb920]
mov r8d, r13d
lea rdx, [rsp + 0x100]
xor ecx, ecx
call fcn.1401cdf00
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1402d2556
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x134
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
mov edx, 0x64
jmp 0x1402d260d
mov rcx, qword [rax + 0x10]
cmp dword [rcx], ebp
je 0x1402d2585
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x139
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
mov edx, 0x68
jmp 0x1402d260d
mov rax, qword [rax + 0x18]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xa8], rcx
movsxd rbp, dword [rax]
mov r14, qword [rax + 8]
mov r13, rbp
mov rax, qword [rsp + 0x118]
cmp qword [rax], rbp
jae 0x1402d25d0
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x141
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
mov edx, WSAGetLastError
jmp 0x1402d260d
mov rcx, qword [rsp + 0x98]
call fcn.1401f26d0
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1402d26c5
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x147
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
mov edx, 0x80003
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.140197460
mov r14, qword [rsp + 0x60]
mov rbp, rbx
mov r15, rbx
mov rax, qword [rsp + 0x118]
xor edx, edx
mov rcx, qword [rsp + 0x110]
mov r8, qword [rax]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x195
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call fcn.1401907c0
mov r8d, 0x196
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call fcn.1401907c0
mov r8d, 0x197
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r15
call fcn.1401907c0
mov rcx, qword [rsp + 0x78]
call fcn.14020bcd0
mov rcx, qword [rsp + 0x68]
call fcn.1401f2410
lea rdx, [0x1403eb920]
mov rcx, r14
call fcn.1401caea0
mov rcx, rsi
call fcn.1401ad760
mov eax, ebx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call fcn.1401f27f0
mov rcx, qword [rsp + 0x68]
call fcn.1401f24d0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
call fcn.1401f24d0
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x1402d270c
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x150
jmp 0x1402d25fc
mov r8d, 0x154
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r13
call fcn.140190a60
lea rcx, [r15 + r15]
mov r8d, 0x155
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rdi, rax
call fcn.140190a60
movsxd rcx, dword [rsp + 0x74]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x156
mov qword [rsp + 0x58], rax
call fcn.140190a60
mov qword [rsp + 0x50], rax
test rdi, rdi
je 0x1402d2c1a
cmp qword [rsp + 0x58], rbx
je 0x1402d2c1a
test rax, rax
je 0x1402d2c1a
mov rcx, qword [rsp + 0x80]
call fcn.14020c250
mov qword [rsp + 0x78], rax
mov rcx, rax
test rax, rax
jne 0x1402d27d4
call fcn.1401971e0
mov edx, 0x15d
lea r8, str.ossl_sm2_decrypt
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
mov edx, 0x80010
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.140197460
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x50]
jmp 0x1402d2624
mov rax, qword [rsp + 0x68]
mov rdx, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 8]
mov r8, qword [rax]
call fcn.14020c400
test eax, eax
je 0x1402d2c0b
mov rcx, r12
call fcn.140196420
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov r9, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rdx, r9
mov qword [rsp + 0x28], rcx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14020c0b0
test eax, eax
je 0x1402d2c0b
mov rax, qword [rsp + 0x68]
mov rcx, r12
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.14020bd10
test eax, eax
je 0x1402d2c0b
mov r12, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x70]
mov rdx, r12
mov rcx, qword [rsp + 0x88]
call fcn.1401b1080
test eax, eax
js 0x1402d2bcb
mov r8d, dword [rsp + 0x70]
lea rdx, [r15 + r12]
mov rcx, qword [rsp + 0x90]
call fcn.1401b1080
test eax, eax
js 0x1402d2bcb
mov rax, qword [rsp + 0xa0]
lea r9, [r15 + r15]
mov qword [rsp + 0x40], rax
mov r8, r12
mov rax, qword [rsp + 0x98]
mov rdx, r13
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.140211520
test eax, eax
je 0x1402d2bcb
mov rdx, r13
mov rcx, rdi
call fcn.1402d2290
test eax, eax
je 0x1402d2943
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x173
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
xor r8d, r8d
lea edx, [r8 + 0x68]
lea ecx, [rdx - 0x33]
call fcn.140197460
mov r14, qword [rsp + 0x60]
mov rbp, r12
mov r15, qword [rsp + 0x50]
jmp 0x1402d2624
mov r9d, ebx
mov r12, r15
test ebp, ebp
je 0x1402d2a38
mov r8, qword [rsp + 0x110]
cmp ebp, 0x40
jb 0x1402d2a40
lea eax, [rbp - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + r8]
cmp r8, rax
ja 0x1402d297e
cmp rdx, rdi
jae 0x1402d2a40
lea rax, [rcx + r14]
cmp r8, rax
ja 0x1402d2993
mov r12, r15
cmp rdx, r14
jae 0x1402d2a40
mov eax, ebp
and eax, 0x8000003f
jge 0x1402d29a3
dec eax
or eax, 0xffffffc0
inc eax
sub ebp, eax
lea rcx, [rdi + 0x10]
mov rdx, r14
movsxd r11, ebp
sub rdx, rdi
sub r8, rdi
mov r10, 0xfffffffffffffff0
mov r12, r15
sub r10, rdi
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rcx + rdx - 0x10]
movdqu xmm2, xmmword [rdx + rcx]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
lea rax, [rcx + r10]
movdqu xmm0, xmmword [rcx - 0x40]
movdqu xmmword [rcx + r8 - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rcx - 0x30]
movdqu xmm1, xmmword [rdx + rcx - 0x30]
movdqu xmmword [r8 + rcx - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm2, xmmword [rdx + rcx - 0x20]
movdqu xmmword [r8 + rcx - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rcx + r8 - 0x20], xmm2
cmp rax, r11
jne 0x1402d29d0
mov r8, qword [rsp + 0x110]
movsxd rax, r9d
cmp rax, r13
je 0x1402d2a75
sub r14, rdi
lea rcx, [rax + rdi]
sub r8, rdi
mov rdx, r13
sub rdx, rax
nop dword [rax + rax]
movzx eax, byte [r14 + rcx]
xor al, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1402d2a60
call fcn.1401ad810
mov rsi, rax
test rax, rax
jne 0x1402d2aa9
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x17c
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
mov edx, 0x80006
jmp 0x1402d27b4
mov rdx, qword [rsp + 0xf8]
mov rcx, rsi
call fcn.1401ad090
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x1402d2b8e
mov r8, r12
mov rdx, rbp
mov rcx, rsi
call fcn.1401ad110
test eax, eax
je 0x1402d2b8e
mov rdx, qword [rsp + 0x110]
mov r8, r13
mov rcx, rsi
call fcn.1401ad110
test eax, eax
je 0x1402d2b8e
mov r8, r12
lea rdx, [r15 + rbp]
mov rcx, rsi
call fcn.1401ad110
mov r15, qword [rsp + 0x50]
test eax, eax
je 0x1402d2b93
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.1401acb60
test eax, eax
je 0x1402d2b93
movsxd r8, dword [rsp + 0x74]
mov rcx, r15
mov rdx, qword [rsp + 0xa8]
call fcn.1400012b0
test eax, eax
je 0x1402d2b74
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x18a
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
xor r8d, r8d
lea edx, [r8 + 0x66]
lea ecx, [rdx - 0x31]
call fcn.140197460
mov r14, qword [rsp + 0x60]
jmp 0x1402d2624
mov rax, qword [rsp + 0x118]
mov ebx, 1
mov r14, qword [rsp + 0x60]
mov qword [rax], r13
jmp 0x1402d263e
mov r15, qword [rsp + 0x50]
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x185
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.140197460
mov r14, qword [rsp + 0x60]
jmp 0x1402d2624
call fcn.1401971e0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x16e
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.140197300
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.140197460
mov r14, qword [rsp + 0x60]
mov rbp, r12
mov r15, qword [rsp + 0x50]
jmp 0x1402d2624
call fcn.1401971e0
mov edx, 0x166
jmp 0x1402d279c
mov rbp, qword [rsp + 0x58]
mov r15, rax
mov r14, qword [rsp + 0x60]
jmp 0x1402d2624