Function at 0x140287740
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.140311a40
sub rsp, rax
xor ebx, ebx
mov r13, r9
mov qword [rsp + 0x68], rbx
mov rdi, rdx
mov r12, rcx
call fcn.140184880
mov rcx, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rbx
mov r14d, ebx
mov ebp, ebx
mov r15d, ebx
call fcn.14014d010
test rax, rax
jne 0x1402877bf
mov rcx, rdi
call fcn.14013afd0
mov rcx, r12
call fcn.14013e220
mov rcx, r12
call fcn.1401ab510
mov edi, ebx
mov esi, ebx
jmp 0x140287954
mov rcx, rax
call fcn.140148460
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.14013afd0
mov rcx, r12
mov dword [rsp + 0x74], eax
mov ebp, eax
mov rdi, rbx
mov rsi, rbx
call fcn.14013e220
mov rcx, r12
mov qword [rsp + 0x98], rax
call fcn.1401ab510
mov qword [rsp + 0xa0], rax
test r15, r15
je 0x14028794e
test ebp, ebp
jle 0x14028794e
mov r8, qword [rsp + 0x118]
mov edx, 0xff
mov rcx, qword [rsp + 0x110]
mov r8, qword [r8]
call sub.VCRUNTIME140.dll_memset
lea r9, [0x1403aed60]
mov r8d, r13d
lea rdx, [rsp + 0x100]
xor ecx, ecx
call fcn.140176d20
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140287886
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x134
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
mov edx, 0x64
jmp 0x14028793d
mov rcx, qword [rax + 0x10]
cmp dword [rcx], ebp
je 0x1402878b5
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x139
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
mov edx, 0x68
jmp 0x14028793d
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 0x140287900
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x141
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
mov edx, WSAGetLastError
jmp 0x14028793d
mov rcx, qword [rsp + 0x98]
call fcn.140197ea0
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1402879f5
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x147
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
mov edx, 0x80003
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.14013bec0
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.140135210
mov r8d, 0x196
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call fcn.140135210
mov r8d, 0x197
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r15
call fcn.140135210
mov rcx, qword [rsp + 0x78]
call fcn.1401b9100
mov rcx, qword [rsp + 0x68]
call fcn.140197be0
lea rdx, [0x1403aed60]
mov rcx, r14
call fcn.140176880
mov rcx, rsi
call fcn.140154460
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.140197fc0
mov rcx, qword [rsp + 0x68]
call fcn.140197ca0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
call fcn.140197ca0
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x140287a3c
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x150
jmp 0x14028792c
mov r8d, 0x154
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r13
call fcn.1401354a0
lea rcx, [r15 + r15]
mov r8d, 0x155
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rdi, rax
call fcn.1401354a0
movsxd rcx, dword [rsp + 0x74]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x156
mov qword [rsp + 0x58], rax
call fcn.1401354a0
mov qword [rsp + 0x50], rax
test rdi, rdi
je 0x140287f4a
cmp qword [rsp + 0x58], rbx
je 0x140287f4a
test rax, rax
je 0x140287f4a
mov rcx, qword [rsp + 0x80]
call fcn.1401b9680
mov qword [rsp + 0x78], rax
mov rcx, rax
test rax, rax
jne 0x140287b04
call fcn.14013bc40
mov edx, 0x15d
lea r8, str.ossl_sm2_decrypt
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
mov edx, 0x80010
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.14013bec0
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x50]
jmp 0x140287954
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.1401b9830
test eax, eax
je 0x140287f3b
mov rcx, r12
call fcn.14013ae80
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.1401b94e0
test eax, eax
je 0x140287f3b
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.1401b9140
test eax, eax
je 0x140287f3b
mov r12, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x70]
mov rdx, r12
mov rcx, qword [rsp + 0x88]
call fcn.140147cc0
test eax, eax
js 0x140287efb
mov r8d, dword [rsp + 0x70]
lea rdx, [r15 + r12]
mov rcx, qword [rsp + 0x90]
call fcn.140147cc0
test eax, eax
js 0x140287efb
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.1401be8d0
test eax, eax
je 0x140287efb
mov rdx, r13
mov rcx, rdi
call fcn.1402875c0
test eax, eax
je 0x140287c73
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x173
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
xor r8d, r8d
lea edx, [r8 + 0x68]
lea ecx, [rdx - 0x33]
call fcn.14013bec0
mov r14, qword [rsp + 0x60]
mov rbp, r12
mov r15, qword [rsp + 0x50]
jmp 0x140287954
mov r9d, ebx
mov r12, r15
test ebp, ebp
je 0x140287d68
mov r8, qword [rsp + 0x110]
cmp ebp, 0x40
jb 0x140287d70
lea eax, [rbp - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + r8]
cmp r8, rax
ja 0x140287cae
cmp rdx, rdi
jae 0x140287d70
lea rax, [rcx + r14]
cmp r8, rax
ja 0x140287cc3
mov r12, r15
cmp rdx, r14
jae 0x140287d70
mov eax, ebp
and eax, 0x8000003f
jge 0x140287cd3
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 0x140287d00
mov r8, qword [rsp + 0x110]
movsxd rax, r9d
cmp rax, r13
je 0x140287da5
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 0x140287d90
call fcn.140154510
mov rsi, rax
test rax, rax
jne 0x140287dd9
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x17c
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
mov edx, 0x80006
jmp 0x140287ae4
mov rdx, qword [rsp + 0xf8]
mov rcx, rsi
call fcn.140153d50
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x140287ebe
mov r8, r12
mov rdx, rbp
mov rcx, rsi
call fcn.140153dd0
test eax, eax
je 0x140287ebe
mov rdx, qword [rsp + 0x110]
mov r8, r13
mov rcx, rsi
call fcn.140153dd0
test eax, eax
je 0x140287ebe
mov r8, r12
lea rdx, [r15 + rbp]
mov rcx, rsi
call fcn.140153dd0
mov r15, qword [rsp + 0x50]
test eax, eax
je 0x140287ec3
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.140153820
test eax, eax
je 0x140287ec3
movsxd r8, dword [rsp + 0x74]
mov rcx, r15
mov rdx, qword [rsp + 0xa8]
call fcn.1400012b0
test eax, eax
je 0x140287ea4
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x18a
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
xor r8d, r8d
lea edx, [r8 + 0x66]
lea ecx, [rdx - 0x31]
call fcn.14013bec0
mov r14, qword [rsp + 0x60]
jmp 0x140287954
mov rax, qword [rsp + 0x118]
mov ebx, 1
mov r14, qword [rsp + 0x60]
mov qword [rax], r13
jmp 0x14028796e
mov r15, qword [rsp + 0x50]
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x185
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.14013bec0
mov r14, qword [rsp + 0x60]
jmp 0x140287954
call fcn.14013bc40
lea r8, str.ossl_sm2_decrypt
mov edx, 0x16e
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14013bd60
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.14013bec0
mov r14, qword [rsp + 0x60]
mov rbp, r12
mov r15, qword [rsp + 0x50]
jmp 0x140287954
call fcn.14013bc40
mov edx, 0x166
jmp 0x140287acc
mov rbp, qword [rsp + 0x58]
mov r15, rax
mov r14, qword [rsp + 0x60]
jmp 0x140287954