Function at 0x1402e8f60
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.14030f180
sub rsp, rax
xor ebx, ebx
mov r13, r9
mov qword [rsp + 0x68], rbx
mov rdi, rdx
mov r12, rcx
call fcn.1401e60e0
mov rcx, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rbx
mov r14d, ebx
mov ebp, ebx
mov r15d, ebx
call fcn.1401ae950
test rax, rax
jne 0x1402e8fdf
mov rcx, rdi
call fcn.14019c950
mov rcx, r12
call fcn.14019fb90
mov rcx, r12
call fcn.14020cd70
mov edi, ebx
mov esi, ebx
jmp 0x1402e9174
mov rcx, rax
call fcn.1401a9dc0
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.14019c950
mov rcx, r12
mov dword [rsp + 0x74], eax
mov ebp, eax
mov rdi, rbx
mov rsi, rbx
call fcn.14019fb90
mov rcx, r12
mov qword [rsp + 0x98], rax
call fcn.14020cd70
mov qword [rsp + 0xa0], rax
test r15, r15
je 0x1402e916e
test ebp, ebp
jle 0x1402e916e
mov r8, qword [rsp + 0x118]
mov edx, 0xff
mov rcx, qword [rsp + 0x110]
mov r8, qword [r8]
call fcn.140310190
lea r9, [0x1403ed880]
mov r8d, r13d
lea rdx, [rsp + 0x100]
xor ecx, ecx
call fcn.1401d8580
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1402e90a6
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x134
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
mov edx, 0x64
jmp 0x1402e915d
mov rcx, qword [rax + 0x10]
cmp dword [rcx], ebp
je 0x1402e90d5
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x139
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
mov edx, 0x68
jmp 0x1402e915d
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 0x1402e9120
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x141
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
mov edx, WSAGetLastError
jmp 0x1402e915d
mov rcx, qword [rsp + 0x98]
call fcn.1401f9700
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1402e9215
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x147
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
mov edx, 0x80003
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.14019d840
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 fcn.140310190
mov r8d, 0x195
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call fcn.140196bb0
mov r8d, 0x196
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call fcn.140196bb0
mov r8d, 0x197
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r15
call fcn.140196bb0
mov rcx, qword [rsp + 0x78]
call fcn.14021a930
mov rcx, qword [rsp + 0x68]
call fcn.1401f9440
lea rdx, [0x1403ed880]
mov rcx, r14
call fcn.1401d80e0
mov rcx, rsi
call fcn.1401b5da0
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.1401f9820
mov rcx, qword [rsp + 0x68]
call fcn.1401f9500
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
call fcn.1401f9500
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x1402e925c
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x150
jmp 0x1402e914c
mov r8d, 0x154
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r13
call fcn.140196e40
lea rcx, [r15 + r15]
mov r8d, 0x155
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rdi, rax
call fcn.140196e40
movsxd rcx, dword [rsp + 0x74]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x156
mov qword [rsp + 0x58], rax
call fcn.140196e40
mov qword [rsp + 0x50], rax
test rdi, rdi
je 0x1402e976a
cmp qword [rsp + 0x58], rbx
je 0x1402e976a
test rax, rax
je 0x1402e976a
mov rcx, qword [rsp + 0x80]
call fcn.14021aeb0
mov qword [rsp + 0x78], rax
mov rcx, rax
test rax, rax
jne 0x1402e9324
call fcn.14019d5c0
mov edx, 0x15d
lea r8, str.ossl_sm2_decrypt
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
mov edx, 0x80010
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.14019d840
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x50]
jmp 0x1402e9174
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.14021b060
test eax, eax
je 0x1402e975b
mov rcx, r12
call fcn.14019c800
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.14021ad10
test eax, eax
je 0x1402e975b
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.14021a970
test eax, eax
je 0x1402e975b
mov r12, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x70]
mov rdx, r12
mov rcx, qword [rsp + 0x88]
call fcn.1401a9620
test eax, eax
js 0x1402e971b
mov r8d, dword [rsp + 0x70]
lea rdx, [r15 + r12]
mov rcx, qword [rsp + 0x90]
call fcn.1401a9620
test eax, eax
js 0x1402e971b
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.140220100
test eax, eax
je 0x1402e971b
mov rdx, r13
mov rcx, rdi
call fcn.1402e8de0
test eax, eax
je 0x1402e9493
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x173
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
xor r8d, r8d
lea edx, [r8 + 0x68]
lea ecx, [rdx - 0x33]
call fcn.14019d840
mov r14, qword [rsp + 0x60]
mov rbp, r12
mov r15, qword [rsp + 0x50]
jmp 0x1402e9174
mov r9d, ebx
mov r12, r15
test ebp, ebp
je 0x1402e9588
mov r8, qword [rsp + 0x110]
cmp ebp, 0x40
jb 0x1402e9590
lea eax, [rbp - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + r8]
cmp r8, rax
ja 0x1402e94ce
cmp rdx, rdi
jae 0x1402e9590
lea rax, [rcx + r14]
cmp r8, rax
ja 0x1402e94e3
mov r12, r15
cmp rdx, r14
jae 0x1402e9590
mov eax, ebp
and eax, 0x8000003f
jge 0x1402e94f3
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 0x1402e9520
mov r8, qword [rsp + 0x110]
movsxd rax, r9d
cmp rax, r13
je 0x1402e95c5
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 0x1402e95b0
call fcn.1401b5e50
mov rsi, rax
test rax, rax
jne 0x1402e95f9
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x17c
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
mov edx, 0x80006
jmp 0x1402e9304
mov rdx, qword [rsp + 0xf8]
mov rcx, rsi
call fcn.1401b5690
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x1402e96de
mov r8, r12
mov rdx, rbp
mov rcx, rsi
call fcn.1401b5710
test eax, eax
je 0x1402e96de
mov rdx, qword [rsp + 0x110]
mov r8, r13
mov rcx, rsi
call fcn.1401b5710
test eax, eax
je 0x1402e96de
mov r8, r12
lea rdx, [r15 + rbp]
mov rcx, rsi
call fcn.1401b5710
mov r15, qword [rsp + 0x50]
test eax, eax
je 0x1402e96e3
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.1401b5160
test eax, eax
je 0x1402e96e3
movsxd r8, dword [rsp + 0x74]
mov rcx, r15
mov rdx, qword [rsp + 0xa8]
call fcn.1400012b0
test eax, eax
je 0x1402e96c4
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x18a
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
xor r8d, r8d
lea edx, [r8 + 0x66]
lea ecx, [rdx - 0x31]
call fcn.14019d840
mov r14, qword [rsp + 0x60]
jmp 0x1402e9174
mov rax, qword [rsp + 0x118]
mov ebx, 1
mov r14, qword [rsp + 0x60]
mov qword [rax], r13
jmp 0x1402e918e
mov r15, qword [rsp + 0x50]
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x185
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.14019d840
mov r14, qword [rsp + 0x60]
jmp 0x1402e9174
call fcn.14019d5c0
lea r8, str.ossl_sm2_decrypt
mov edx, 0x16e
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14019d6e0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.14019d840
mov r14, qword [rsp + 0x60]
mov rbp, r12
mov r15, qword [rsp + 0x50]
jmp 0x1402e9174
call fcn.14019d5c0
mov edx, 0x166
jmp 0x1402e92ec
mov rbp, qword [rsp + 0x58]
mov r15, rax
mov r14, qword [rsp + 0x60]
jmp 0x1402e9174