Function at 0x140140240
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.140187030
sub rsp, rax
xor esi, esi
mov rdi, r9
mov r14d, esi
mov r12, r8
mov r15, rdx
mov rbx, rcx
call fcn.14012efd0
mov rcx, rbx
mov qword [rsp + 0x68], rax
call fcn.1400cde90
mov rcx, rax
mov rbp, rax
call fcn.1400b44c0
mov rcx, rbx
mov qword [rsp + 0xb0], rax
call fcn.1400cfd60
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.1400d45b0
mov dword [rsp + 0x48], eax
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], rsi
cmp qword [rsp + 0x68], rbx
je 0x1401408ed
test eax, eax
jle 0x1401408ed
mov rcx, rbp
call fcn.14013f9a0
mov r15, rax
test rax, rax
jne 0x14014030d
mov dword [rsp + 0x20], 0x8a
jmp 0x1401408f5
mov rcx, rbp
call fcn.140130ae0
mov rcx, rbp
mov qword [rsp + 0x58], rax
call fcn.140130ae0
mov qword [rsp + 0x60], rax
call fcn.1400a34b0
mov r14, rax
cmp qword [rsp + 0x58], rbx
je 0x1401408dd
cmp qword [rsp + 0x60], rbx
je 0x1401408dd
test rax, rax
je 0x1401408dd
mov rcx, rax
call fcn.1400a35b0
mov rcx, r14
call fcn.1400a32f0
mov rcx, r14
mov r13, rax
call fcn.1400a32f0
mov rcx, r14
mov qword [rsp + 0x80], rax
call fcn.1400a32f0
mov rcx, r14
mov qword [rsp + 0x78], rax
call fcn.1400a32f0
mov rcx, r14
mov qword [rsp + 0x88], rax
call fcn.1400a32f0
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1401403b3
mov dword [rsp + 0x20], 0x9e
mov r8d, 3
jmp 0x1401408fb
lea rcx, [r15 + r15]
mov r8d, 0xa2
lea rdx, str.crypto_sm2_sm2_crypt.c
call fcn.1400a4000
movsxd rcx, dword [rsp + 0x48]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0xa3
mov qword [rsp + 0x50], rax
call fcn.1400a4000
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x50], rbx
je 0x1401408b2
test rax, rax
je 0x1401408b2
mov rax, qword [rsp + 0x118]
xor edx, edx
mov rcx, qword [rsp + 0x110]
mov r8, qword [rax]
call fcn.1401bbb20
mov rdx, qword [rsp + 0xb0]
mov rcx, r13
call fcn.14011c8e0
test eax, eax
jne 0x14014045a
mov dword [rsp + 0x20], 0xad
lea r9, str.crypto_sm2_sm2_crypt.c
mov edx, 0x67
mov ecx, 0x35
mov r8d, 0x44
call fcn.1400a4ed0
mov rbp, qword [rsp + 0x40]
jmp 0x140140914
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.140130930
test eax, eax
je 0x140140887
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.1401305e0
test eax, eax
je 0x140140887
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.140130930
test eax, eax
je 0x140140887
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.1401305e0
test eax, eax
je 0x140140887
mov rbp, qword [rsp + 0x50]
mov r8d, r15d
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call fcn.1400a21c0
test eax, eax
js 0x14014087a
lea rax, [r15 + rbp]
mov r8d, r15d
mov rdx, rax
mov qword [rsp + 0x70], rax
mov rcx, r13
call fcn.1400a21c0
test eax, eax
js 0x14014087a
mov r8d, 0xbf
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call fcn.1400a4000
mov rbx, rax
test rax, rax
jne 0x140140560
mov dword [rsp + 0x20], 0xc1
jmp 0x1401408ba
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.14013ebf0
test eax, eax
jne 0x1401405a0
mov dword [rsp + 0x20], 0xc8
mov r8d, 6
jmp 0x1401408c0
mov rdx, rsi
test rdi, rdi
je 0x1401406c1
cmp rdi, 8
jb 0x140140694
lea rcx, [rdi - 1]
lea rax, [r12 - 1]
add rcx, rbx
add rax, rdi
cmp rbx, rax
ja 0x1401405d3
cmp rcx, r12
jae 0x140140694
cmp rdi, 0x40
jb 0x140140653
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 0x1401405f0
cmp rcx, 8
jb 0x14014068f
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 0x140140670
cmp rdx, rdi
je 0x1401406c1
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 0x1401406b0
mov rbp, qword [rsp + 0x68]
mov rdx, r13
mov rcx, rbp
call fcn.14012ea40
test eax, eax
je 0x14014084c
mov rdx, qword [rsp + 0x50]
mov r8, r15
mov rcx, rbp
call fcn.14012ecd0
test eax, eax
je 0x14014084c
mov rdx, r12
mov r8, rdi
mov rcx, rbp
mov r12, rbp
call fcn.14012ecd0
test eax, eax
je 0x14014084c
mov rdx, qword [rsp + 0x70]
mov r8, r15
mov rcx, rbp
call fcn.14012ecd0
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x140140851
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.14012e8a0
test eax, eax
je 0x140140851
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x98], rax
call fcn.140126640
mov qword [rsp + 0xa0], rax
call fcn.140126640
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
test rcx, rcx
je 0x140140823
test rax, rax
je 0x140140823
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
call fcn.1401344a0
test eax, eax
je 0x1401407fa
mov rcx, qword [rsp + 0xa8]
mov r8d, edi
mov rdx, rbx
call fcn.1401344a0
test eax, eax
je 0x1401407fa
lea r8, [0x1402102d0]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x90]
call fcn.140125a30
test eax, eax
jns 0x1401407e3
mov dword [rsp + 0x20], 0xea
jmp 0x140140802
mov rcx, qword [rsp + 0x118]
mov esi, 1
cdqe
mov qword [rcx], rax
jmp 0x140140914
mov dword [rsp + 0x20], 0xe3
lea r9, str.crypto_sm2_sm2_crypt.c
mov edx, 0x67
mov ecx, 0x35
mov r8d, 0x44
call fcn.1400a4ed0
jmp 0x140140914
lea r9, str.crypto_sm2_sm2_crypt.c
mov dword [rsp + 0x20], 0xde
mov edx, 0x67
mov ecx, 0x35
mov r8d, 0x41
call fcn.1400a4ed0
jmp 0x140140914
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.1400a4ed0
jmp 0x140140914
mov dword [rsp + 0x20], 0xbb
jmp 0x140140434
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.1400a4ed0
mov rbp, qword [rsp + 0x40]
jmp 0x140140914
mov dword [rsp + 0x20], 0xa6
mov r8d, 0x41
mov ecx, 0x35
lea r9, str.crypto_sm2_sm2_crypt.c
mov edx, 0x67
call fcn.1400a4ed0
mov rbp, qword [rsp + 0x40]
jmp 0x140140914
mov dword [rsp + 0x20], 0x92
mov r8d, 0x41
jmp 0x1401408fb
mov dword [rsp + 0x20], 0x84
mov r8d, 0x44
lea r9, str.crypto_sm2_sm2_crypt.c
mov edx, 0x67
mov ecx, 0x35
call fcn.1400a4ed0
mov rbp, rbx
mov rcx, qword [rsp + 0xa8]
call fcn.1401264d0
mov rcx, qword [rsp + 0xa0]
call fcn.1401264d0
mov r8d, 0xf4
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbx
call fcn.1400a3cc0
mov rcx, qword [rsp + 0x50]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0xf5
call fcn.1400a3cc0
mov r8d, 0xf6
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call fcn.1400a3cc0
mov rcx, qword [rsp + 0x68]
call fcn.14012ef90
mov rcx, r14
call fcn.1400a3230
mov rcx, qword [rsp + 0x58]
call fcn.1401305a0
mov rcx, qword [rsp + 0x60]
call fcn.1401305a0
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