Function at 0x14013f520
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc0
call fcn.140186310
sub rsp, rax
xor esi, esi
mov rdi, r9
mov r14d, esi
mov r12, r8
mov r15, rdx
mov rbx, rcx
call fcn.14012e2b0
mov rcx, rbx
mov qword [rsp + 0x68], rax
call fcn.1400cd170
mov rcx, rax
mov rbp, rax
call fcn.1400b37a0
mov rcx, rbx
mov qword [rsp + 0xb0], rax
call fcn.1400cf040
mov rcx, r15
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x58], rsi
mov ebx, esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x50], rsi
call fcn.1400d3890
mov dword [rsp + 0x48], eax
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], rsi
cmp qword [rsp + 0x68], rbx
je 0x14013fbcd
test eax, eax
jle 0x14013fbcd
mov rcx, rbp
call fcn.14013ec80
mov r15, rax
test rax, rax
jne 0x14013f5ed
mov dword [rsp + 0x20], 0x8a
jmp 0x14013fbd5
mov rcx, rbp
call fcn.14012fdc0
mov rcx, rbp
mov qword [rsp + 0x58], rax
call fcn.14012fdc0
mov qword [rsp + 0x60], rax
call fcn.1400a2790
mov r14, rax
cmp qword [rsp + 0x58], rbx
je 0x14013fbbd
cmp qword [rsp + 0x60], rbx
je 0x14013fbbd
test rax, rax
je 0x14013fbbd
mov rcx, rax
call fcn.1400a2890
mov rcx, r14
call fcn.1400a25d0
mov rcx, r14
mov r13, rax
call fcn.1400a25d0
mov rcx, r14
mov qword [rsp + 0x80], rax
call fcn.1400a25d0
mov rcx, r14
mov qword [rsp + 0x78], rax
call fcn.1400a25d0
mov rcx, r14
mov qword [rsp + 0x88], rax
call fcn.1400a25d0
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x14013f693
mov dword [rsp + 0x20], 0x9e
mov r8d, 3
jmp 0x14013fbdb
lea rcx, [r15 + r15]
mov r8d, 0xa2
lea rdx, str.crypto_sm2_sm2_crypt.c
call fcn.1400a32e0
movsxd rcx, dword [rsp + 0x48]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0xa3
mov qword [rsp + 0x50], rax
call fcn.1400a32e0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x50], rbx
je 0x14013fb92
test rax, rax
je 0x14013fb92
mov rax, qword [rsp + 0x118]
xor edx, edx
mov rcx, qword [rsp + 0x110]
mov r8, qword [rax]
call fcn.1401bace0
mov rdx, qword [rsp + 0xb0]
mov rcx, r13
call fcn.14011bbc0
test eax, eax
jne 0x14013f73a
mov dword [rsp + 0x20], 0xad
lea r9, str.crypto_sm2_sm2_crypt.c
mov edx, 0x67
mov ecx, 0x35
mov r8d, 0x44
call fcn.1400a41b0
mov rbp, qword [rsp + 0x40]
jmp 0x14013fbf4
mov rdx, qword [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], r14
mov r8, r13
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call fcn.14012fc10
test eax, eax
je 0x14013fb67
mov r9, qword [rsp + 0x88]
mov rcx, rbp
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r14
call fcn.14012f8c0
test eax, eax
je 0x14013fb67
mov r9, qword [rsp + 0xb8]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
call fcn.14012fc10
test eax, eax
je 0x14013fb67
mov r13, qword [rsp + 0x70]
mov rcx, rbp
mov r8, qword [rsp + 0x78]
mov r9, r13
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], r14
call fcn.14012f8c0
test eax, eax
je 0x14013fb67
mov rbp, qword [rsp + 0x50]
mov r8d, r15d
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call fcn.1400a14a0
test eax, eax
js 0x14013fb5a
lea rax, [r15 + rbp]
mov r8d, r15d
mov rdx, rax
mov qword [rsp + 0x70], rax
mov rcx, r13
call fcn.1400a14a0
test eax, eax
js 0x14013fb5a
mov r8d, 0xbf
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call fcn.1400a32e0
mov rbx, rax
test rax, rax
jne 0x14013f840
mov dword [rsp + 0x20], 0xc1
jmp 0x14013fb9a
mov r13, qword [rsp + 0xf8]
lea r9, [r15 + r15]
mov qword [rsp + 0x30], r13
mov r8, rbp
mov qword [rsp + 0x28], rsi
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.14013ded0
test eax, eax
jne 0x14013f880
mov dword [rsp + 0x20], 0xc8
mov r8d, 6
jmp 0x14013fba0
mov rdx, rsi
test rdi, rdi
je 0x14013f9a1
cmp rdi, 8
jb 0x14013f974
lea rcx, [rdi - 1]
lea rax, [r12 - 1]
add rcx, rbx
add rax, rdi
cmp rbx, rax
ja 0x14013f8b3
cmp rcx, r12
jae 0x14013f974
cmp rdi, 0x40
jb 0x14013f933
mov rcx, rdi
mov r8, rdi
and ecx, 0x3f
sub r8, rcx
mov r9, r12
lea rax, [rbx + 0x10]
sub r9, rbx
nop
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [rax + r9 - 0x10]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax + r9 - 0x40]
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm2, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + r9 - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax + r9 - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp rdx, r8
jne 0x14013f8d0
cmp rcx, 8
jb 0x14013f96f
mov rcx, rdi
and rcx, 0xfffffffffffffff8
mov r8, r12
lea rax, [rdx + rbx]
sub r8, rbx
nop dword [rax]
nop dword [rax + rax]
movq xmm0, qword [rax]
add rdx, 8
movq xmm1, qword [r8 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp rdx, rcx
jne 0x14013f950
cmp rdx, rdi
je 0x14013f9a1
mov r9, r12
lea rcx, [rdx + rbx]
sub r9, rbx
mov r8, rdi
sub r8, rdx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x14013f990
mov rbp, qword [rsp + 0x68]
mov rdx, r13
mov rcx, rbp
call fcn.14012dd20
test eax, eax
je 0x14013fb2c
mov rdx, qword [rsp + 0x50]
mov r8, r15
mov rcx, rbp
call fcn.14012dfb0
test eax, eax
je 0x14013fb2c
mov rdx, r12
mov r8, rdi
mov rcx, rbp
mov r12, rbp
call fcn.14012dfb0
test eax, eax
je 0x14013fb2c
mov rdx, qword [rsp + 0x70]
mov r8, r15
mov rcx, rbp
call fcn.14012dfb0
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x14013fb31
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.14012db80
test eax, eax
je 0x14013fb31
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x98], rax
call fcn.140125920
mov qword [rsp + 0xa0], rax
call fcn.140125920
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
test rcx, rcx
je 0x14013fb03
test rax, rax
je 0x14013fb03
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
call fcn.140133780
test eax, eax
je 0x14013fada
mov rcx, qword [rsp + 0xa8]
mov r8d, edi
mov rdx, rbx
call fcn.140133780
test eax, eax
je 0x14013fada
lea r8, [0x14020f310]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x90]
call fcn.140124d10
test eax, eax
jns 0x14013fac3
mov dword [rsp + 0x20], 0xea
jmp 0x14013fae2
mov rcx, qword [rsp + 0x118]
mov esi, 1
cdqe
mov qword [rcx], rax
jmp 0x14013fbf4
mov dword [rsp + 0x20], 0xe3
lea r9, str.crypto_sm2_sm2_crypt.c
mov edx, 0x67
mov ecx, 0x35
mov r8d, 0x44
call fcn.1400a41b0
jmp 0x14013fbf4
lea r9, str.crypto_sm2_sm2_crypt.c
mov dword [rsp + 0x20], 0xde
mov edx, 0x67
mov ecx, 0x35
mov r8d, 0x41
call fcn.1400a41b0
jmp 0x14013fbf4
mov rbp, qword [rsp + 0x40]
lea r9, str.crypto_sm2_sm2_crypt.c
mov dword [rsp + 0x20], 0xd4
mov edx, 0x67
mov ecx, 0x35
mov r8d, 6
call fcn.1400a41b0
jmp 0x14013fbf4
mov dword [rsp + 0x20], 0xbb
jmp 0x14013f714
lea r9, str.crypto_sm2_sm2_crypt.c
mov dword [rsp + 0x20], 0xb5
mov edx, 0x67
mov ecx, 0x35
mov r8d, reloc.WS2_32.dll_recv
call fcn.1400a41b0
mov rbp, qword [rsp + 0x40]
jmp 0x14013fbf4
mov dword [rsp + 0x20], 0xa6
mov r8d, 0x41
mov ecx, 0x35
lea r9, str.crypto_sm2_sm2_crypt.c
mov edx, 0x67
call fcn.1400a41b0
mov rbp, qword [rsp + 0x40]
jmp 0x14013fbf4
mov dword [rsp + 0x20], 0x92
mov r8d, 0x41
jmp 0x14013fbdb
mov dword [rsp + 0x20], 0x84
mov r8d, 0x44
lea r9, str.crypto_sm2_sm2_crypt.c
mov edx, 0x67
mov ecx, 0x35
call fcn.1400a41b0
mov rbp, rbx
mov rcx, qword [rsp + 0xa8]
call fcn.1401257b0
mov rcx, qword [rsp + 0xa0]
call fcn.1401257b0
mov r8d, 0xf4
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbx
call fcn.1400a2fa0
mov rcx, qword [rsp + 0x50]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0xf5
call fcn.1400a2fa0
mov r8d, 0xf6
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call fcn.1400a2fa0
mov rcx, qword [rsp + 0x68]
call fcn.14012e270
mov rcx, r14
call fcn.1400a2510
mov rcx, qword [rsp + 0x58]
call fcn.14012f880
mov rcx, qword [rsp + 0x60]
call fcn.14012f880
lea r11, [rsp + 0xc0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret