Function at 0x140301390
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.140327af0
sub rsp, rax
xor ebx, ebx
mov r13, r9
mov qword [rsp + 0x68], rbx
mov rdi, rdx
mov r12, rcx
call fcn.14022eeb0
mov rcx, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rbx
mov r14d, ebx
mov ebp, ebx
mov r15d, ebx
call fcn.14022bcf0
test rax, rax
jne 0x14030140f
mov rcx, rdi
call fcn.1401ad2e0
mov rcx, r12
call fcn.14022fa70
mov rcx, r12
call fcn.14022fa60
mov edi, ebx
mov esi, ebx
jmp 0x1403015a4
mov rcx, rax
call fcn.1401ba800
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.1401ad2e0
mov rcx, r12
mov dword [rsp + 0x74], eax
mov ebp, eax
mov rdi, rbx
mov rsi, rbx
call fcn.14022fa70
mov rcx, r12
mov qword [rsp + 0x98], rax
call fcn.14022fa60
mov qword [rsp + 0xa0], rax
test r15, r15
je 0x14030159e
test ebp, ebp
jle 0x14030159e
mov r8, qword [rsp + 0x118]
mov edx, 0xff
mov rcx, qword [rsp + 0x110]
mov r8, qword [r8]
call fcn.140328b50
lea r9, [0x14040b440]
mov r8d, r13d
lea rdx, [rsp + 0x100]
xor ecx, ecx
call fcn.1401e97c0
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1403014d6
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x134
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
mov edx, 0x64
jmp 0x14030158d
mov rcx, qword [rax + 0x10]
cmp dword [rcx], ebp
je 0x140301505
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x139
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
mov edx, 0x68
jmp 0x14030158d
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 0x140301550
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x141
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
mov edx, WSAGetLastError
jmp 0x14030158d
mov rcx, qword [rsp + 0x98]
call fcn.14020ad90
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140301645
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x147
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
mov edx, 0x80003
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.1401ae1d0
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.140328b50
mov r8d, 0x195
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call fcn.1401a7280
mov r8d, 0x196
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call fcn.1401a7280
mov r8d, 0x197
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r15
call fcn.1401a7280
mov rcx, qword [rsp + 0x78]
call fcn.14022d240
mov rcx, qword [rsp + 0x68]
call fcn.14020aad0
lea rdx, [0x14040b440]
mov rcx, r14
call fcn.1401e9320
mov rcx, rsi
call fcn.1401c6900
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.14020aeb0
mov rcx, qword [rsp + 0x68]
call fcn.14020ab90
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
call fcn.14020ab90
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x14030168c
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x150
jmp 0x14030157c
mov r8d, 0x154
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r13
call fcn.1401a7510
lea rcx, [r15 + r15]
mov r8d, 0x155
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rdi, rax
call fcn.1401a7510
movsxd rcx, dword [rsp + 0x74]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x156
mov qword [rsp + 0x58], rax
call fcn.1401a7510
mov qword [rsp + 0x50], rax
test rdi, rdi
je 0x140301b9a
cmp qword [rsp + 0x58], rbx
je 0x140301b9a
test rax, rax
je 0x140301b9a
mov rcx, qword [rsp + 0x80]
call fcn.14022d7c0
mov qword [rsp + 0x78], rax
mov rcx, rax
test rax, rax
jne 0x140301754
call fcn.1401adf50
mov edx, 0x15d
lea r8, str.ossl_sm2_decrypt
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
mov edx, 0x80010
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.1401ae1d0
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x50]
jmp 0x1403015a4
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.14022d970
test eax, eax
je 0x140301b8b
mov rcx, r12
call fcn.14022eec0
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.14022d620
test eax, eax
je 0x140301b8b
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.14022d280
test eax, eax
je 0x140301b8b
mov r12, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x70]
mov rdx, r12
mov rcx, qword [rsp + 0x88]
call fcn.1401b9ff0
test eax, eax
js 0x140301b4b
mov r8d, dword [rsp + 0x70]
lea rdx, [r15 + r12]
mov rcx, qword [rsp + 0x90]
call fcn.1401b9ff0
test eax, eax
js 0x140301b4b
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.140232c40
test eax, eax
je 0x140301b4b
mov rdx, r13
mov rcx, rdi
call fcn.140301210
test eax, eax
je 0x1403018c3
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x173
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
xor r8d, r8d
lea edx, [r8 + 0x68]
lea ecx, [rdx - 0x33]
call fcn.1401ae1d0
mov r14, qword [rsp + 0x60]
mov rbp, r12
mov r15, qword [rsp + 0x50]
jmp 0x1403015a4
mov r9d, ebx
mov r12, r15
test ebp, ebp
je 0x1403019b8
mov r8, qword [rsp + 0x110]
cmp ebp, 0x40
jb 0x1403019c0
lea eax, [rbp - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + r8]
cmp r8, rax
ja 0x1403018fe
cmp rdx, rdi
jae 0x1403019c0
lea rax, [rcx + r14]
cmp r8, rax
ja 0x140301913
mov r12, r15
cmp rdx, r14
jae 0x1403019c0
mov eax, ebp
and eax, 0x8000003f
jge 0x140301923
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 0x140301950
mov r8, qword [rsp + 0x110]
movsxd rax, r9d
cmp rax, r13
je 0x1403019f5
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 0x1403019e0
call fcn.1401c69b0
mov rsi, rax
test rax, rax
jne 0x140301a29
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x17c
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
mov edx, 0x80006
jmp 0x140301734
mov rdx, qword [rsp + 0xf8]
mov rcx, rsi
call fcn.1401c61f0
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x140301b0e
mov r8, r12
mov rdx, rbp
mov rcx, rsi
call fcn.1401c6270
test eax, eax
je 0x140301b0e
mov rdx, qword [rsp + 0x110]
mov r8, r13
mov rcx, rsi
call fcn.1401c6270
test eax, eax
je 0x140301b0e
mov r8, r12
lea rdx, [r15 + rbp]
mov rcx, rsi
call fcn.1401c6270
mov r15, qword [rsp + 0x50]
test eax, eax
je 0x140301b13
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.1401c5cc0
test eax, eax
je 0x140301b13
movsxd r8, dword [rsp + 0x74]
mov rcx, r15
mov rdx, qword [rsp + 0xa8]
call fcn.1400012b0
test eax, eax
je 0x140301af4
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x18a
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
xor r8d, r8d
lea edx, [r8 + 0x66]
lea ecx, [rdx - 0x31]
call fcn.1401ae1d0
mov r14, qword [rsp + 0x60]
jmp 0x1403015a4
mov rax, qword [rsp + 0x118]
mov ebx, 1
mov r14, qword [rsp + 0x60]
mov qword [rax], r13
jmp 0x1403015be
mov r15, qword [rsp + 0x50]
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x185
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.1401ae1d0
mov r14, qword [rsp + 0x60]
jmp 0x1403015a4
call fcn.1401adf50
lea r8, str.ossl_sm2_decrypt
mov edx, 0x16e
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1401ae070
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.1401ae1d0
mov r14, qword [rsp + 0x60]
mov rbp, r12
mov r15, qword [rsp + 0x50]
jmp 0x1403015a4
call fcn.1401adf50
mov edx, 0x166
jmp 0x14030171c
mov rbp, qword [rsp + 0x58]
mov r15, rax
mov r14, qword [rsp + 0x60]
jmp 0x1403015a4