Function at 0x14039c6e0
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, 0xc0
call fcn.1404881b0
sub rsp, rax
xor esi, esi
mov r15, r9
mov qword [rsp + 0x60], rsi
mov rbx, rdx
mov r12, rcx
call fcn.1402173c0
mov rcx, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x70], rsi
mov r14d, esi
mov qword [rsp + 0x90], rsi
call fcn.140212190
mov r13, qword [rsp + 0x120]
test rax, rax
jne 0x14039c76d
mov rcx, rbx
call fcn.1402253c0
mov rcx, r12
call fcn.14022a0f0
mov rcx, r12
call fcn.1402807d0
mov ebx, esi
mov ebp, esi
mov r15d, esi
jmp 0x14039c900
mov rcx, rax
call fcn.1402547c0
add eax, 7
mov rcx, rbx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [rsp + 0x6c], eax
movsxd r14, eax
call fcn.1402253c0
mov rcx, r12
mov dword [rsp + 0x68], eax
mov edi, eax
mov rbx, rsi
mov rbp, rsi
call fcn.14022a0f0
mov rcx, r12
mov qword [rsp + 0xa8], rax
call fcn.1402807d0
mov qword [rsp + 0xb0], rax
test r14, r14
je 0x14039c8fa
test edi, edi
jle 0x14039c8fa
mov rax, qword [rsp + 0x128]
mov edx, 0xff
mov rcx, r13
mov r8, qword [rax]
call sub.VCRUNTIME140.dll_memset
lea r9, [0x140572370]
mov r8d, r15d
lea rdx, [rsp + 0x110]
xor ecx, ecx
call fcn.14023ce80
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x14039c832
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x122
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
mov edx, 0x64
jmp 0x14039c8ee
mov rcx, qword [rax + 0x10]
cmp dword [rcx], edi
je 0x14039c861
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x127
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
mov edx, 0x68
jmp 0x14039c8ee
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x98], rcx
mov rcx, qword [rsp + 0x128]
movsxd rdi, dword [rax]
mov r15, qword [rax + 8]
mov qword [rsp + 0x88], rdi
cmp qword [rcx], rdi
jae 0x14039c8b1
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x12f
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
mov edx, WSAGetLastError
jmp 0x14039c8ee
mov rcx, qword [rsp + 0xa8]
call fcn.1402c44b0
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14039c9a1
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x135
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
mov edx, 0x80003
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.14021aae0
mov r14, rbx
mov r15, rbx
mov rax, qword [rsp + 0x128]
xor edx, edx
mov rcx, r13
mov r8, qword [rax]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x17e
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbx
call fcn.14021a590
mov r8d, 0x17f
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r14
call fcn.14021a590
mov r8d, 0x180
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r15
call fcn.14021a590
mov rcx, qword [rsp + 0x70]
call fcn.14028bfa0
mov rcx, qword [rsp + 0x60]
call fcn.1402c41f0
mov rcx, qword [rsp + 0x90]
lea rdx, [0x140572370]
call fcn.14023ca10
mov rcx, rbp
call fcn.1402158b0
mov rbx, qword [rsp + 0x100]
mov eax, esi
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call fcn.1402c45d0
mov rcx, qword [rsp + 0x60]
call fcn.1402c42b0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
call fcn.1402c42b0
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x14039c9e5
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x13e
jmp 0x14039c8dd
mov r8d, 0x142
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call fcn.14021a820
lea rcx, [r14 + r14]
mov r8d, 0x143
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rbx, rax
call fcn.14021a820
movsxd rcx, dword [rsp + 0x68]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x144
mov qword [rsp + 0x50], rax
call fcn.14021a820
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x14039ceda
cmp qword [rsp + 0x50], rsi
je 0x14039ceda
test rax, rax
je 0x14039ceda
mov rcx, qword [rsp + 0x80]
call fcn.14028c520
mov qword [rsp + 0x70], rax
mov rcx, rax
test rax, rax
jne 0x14039caa8
call fcn.14021a860
mov edx, 0x14b
lea r8, str.ossl_sm2_decrypt
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
mov edx, 0x80010
xor r8d, r8d
lea ecx, [r8 + 0x35]
call fcn.14021aae0
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
jmp 0x14039c900
mov rax, qword [rsp + 0x60]
mov rdx, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x90]
mov r9, qword [rax + 8]
mov r8, qword [rax]
call fcn.14028c6d0
test eax, eax
je 0x14039cecb
mov rcx, r12
call fcn.140225270
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov r9, qword [rsp + 0x70]
mov r12, qword [rsp + 0x80]
mov rdx, r9
mov qword [rsp + 0x28], rcx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14028c380
test eax, eax
je 0x14039cecb
mov rax, qword [rsp + 0x60]
mov rcx, r12
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.14028bfe0
test eax, eax
je 0x14039cecb
mov r12d, dword [rsp + 0x6c]
mov r8d, r12d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
call fcn.140254040
test eax, eax
js 0x14039cea4
mov rax, qword [rsp + 0x50]
mov r8d, r12d
mov rcx, qword [rsp + 0xa0]
add rax, r14
mov rdx, rax
mov qword [rsp + 0x78], rax
call fcn.140254040
test eax, eax
js 0x14039cea4
mov rax, qword [rsp + 0xb0]
lea r9, [r14 + r14]
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov rcx, rbx
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.1402afc60
test eax, eax
je 0x14039cea4
mov edx, esi
mov r12, r14
test edi, edi
je 0x14039cd25
cmp edi, 8
jb 0x14039cd25
lea eax, [rdi - 1]
movsxd rcx, eax
lea rax, [rcx + rbx]
lea r8, [rcx + r13]
cmp r13, rax
ja 0x14039cc05
cmp r8, rbx
jae 0x14039cd25
lea rax, [rcx + r15]
cmp r13, rax
ja 0x14039cc1a
mov r12, r14
cmp r8, r15
jae 0x14039cd25
cmp edi, 0x40
jb 0x14039ccd1
mov ecx, edi
and ecx, 0x8000003f
jge 0x14039cc34
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, edi
sub eax, ecx
mov r8, r15
movsxd r11, eax
mov r9, r13
lea rcx, [rbx + 0x10]
sub r8, rbx
sub r9, rbx
mov r10, 0xfffffffffffffff0
mov r12, r14
sub r10, rbx
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
add edx, 0x40
movdqu xmm1, xmmword [r8 + rcx - 0x10]
movdqu xmm2, xmmword [rcx]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
lea rax, [r10 + rcx]
movdqu xmm0, xmmword [r8 + rcx - 0x40]
movdqu xmmword [r9 + rcx - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rcx - 0x30]
movdqu xmm1, xmmword [r8 + rcx - 0x30]
movdqu xmmword [r9 + rcx - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm2, xmmword [r8 + rcx - 0x20]
movdqu xmmword [r9 + rcx - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [r9 + rcx - 0x20], xmm2
cmp rax, r11
jne 0x14039cc60
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x14039cd25
jmp 0x14039ccd4
mov r12, r14
mov eax, edi
and eax, 0x80000007
jge 0x14039cce4
dec eax
or eax, 0xfffffff8
inc eax
sub edi, eax
movsxd rcx, edx
mov r8, r15
add rcx, rbx
movsxd r10, edi
sub r8, rbx
mov r9, r13
sub r9, rbx
nop dword [rax + rax]
movq xmm1, qword [rcx + r8]
add edx, 8
movq xmm0, qword [rcx]
xorps xmm1, xmm0
movq qword [r9 + rcx], xmm1
add rcx, 8
mov rax, rcx
sub rax, rbx
cmp rax, r10
jne 0x14039cd00
mov rdi, qword [rsp + 0x88]
movsxd rax, edx
cmp rax, rdi
je 0x14039cd65
mov r8, r13
lea rcx, [rax + rbx]
sub r8, rbx
sub r15, rbx
mov rdx, rdi
sub rdx, rax
nop dword [rax + rax]
movzx eax, byte [rcx + r15]
xor al, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14039cd50
call fcn.140215960
mov rbp, rax
test rax, rax
jne 0x14039cd99
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x165
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
mov edx, 0x80006
jmp 0x14039ca8d
mov rdx, qword [rsp + 0x108]
mov rcx, rbp
call fcn.140214f40
mov r14, qword [rsp + 0x50]
test eax, eax
je 0x14039ce6c
mov r8, r12
mov rdx, r14
mov rcx, rbp
call fcn.140214fc0
test eax, eax
je 0x14039ce6c
mov r8, rdi
mov rdx, r13
mov rcx, rbp
call fcn.140214fc0
test eax, eax
je 0x14039ce6c
mov rdx, qword [rsp + 0x78]
mov r8, r12
mov rcx, rbp
call fcn.140214fc0
mov r15, qword [rsp + 0x58]
test eax, eax
je 0x14039ce71
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
call fcn.140214a00
test eax, eax
je 0x14039ce71
movsxd r8, dword [rsp + 0x68]
mov rcx, r15
mov rdx, qword [rsp + 0x98]
call fcn.1400012b0
test eax, eax
je 0x14039ce57
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x173
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
xor r8d, r8d
lea edx, [r8 + 0x66]
lea ecx, [rdx - 0x31]
call fcn.14021aae0
jmp 0x14039c900
mov rax, qword [rsp + 0x128]
mov esi, 1
mov qword [rax], rdi
jmp 0x14039c915
mov r15, qword [rsp + 0x58]
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x16e
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.14021aae0
jmp 0x14039c900
call fcn.14021a860
lea r8, str.ossl_sm2_decrypt
mov edx, 0x15c
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.14021a980
mov edx, 0xc0103
jmp 0x14039ca8d
call fcn.14021a860
mov edx, 0x154
jmp 0x14039ca75
mov r14, qword [rsp + 0x50]
mov r15, rax
jmp 0x14039c900