Function at 0x18015cc40
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18015cc40
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x98
call fcn.180001055
sub rsp, rax
xor ebx, ebx
mov rdi, rdx
mov r15d, ebx
call sym.libcrypto_1_1_x64.dll_EC_KEY_get0_group
mov rcx, rax
mov qword [rsp + 0x60], rbx
mov r13, rax
mov qword [rsp + 0x50], rbx
mov r12d, ebx
call fcn.18015ca30
mov rcx, rdi
mov qword [rsp + 0x70], rax
mov r14, rax
call sym.libcrypto_1_1_x64.dll_EVP_MD_size
mov dword [rsp + 0x58], eax
mov ebp, eax
mov edi, ebx
mov esi, ebx
test r14, r14
je 0x18015cd21
test eax, eax
jle 0x18015cd21
mov r8, qword [rsp + 0x108]
mov edx, 0xff
mov rcx, qword [rsp + 0x100]
mov r8, qword [r8]
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0xf8]
lea r9, [0x180234380]
lea rdx, [rsp + 0xf0]
xor ecx, ecx
call sym.libcrypto_1_1_x64.dll_ASN1_item_d2i
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x18015cdbe
mov dword [rsp + 0x20], 0x11d
lea r9, str.crypto_sm2_sm2_crypt.c
lea edx, [rbx + 0x66]
lea ecx, [rbx + 0x35]
lea r8d, [rbx + 0x64]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r12, qword [rsp + 0x48]
mov rbp, rbx
mov rax, qword [rsp + 0x108]
xor edx, edx
mov rcx, qword [rsp + 0x100]
mov r8, qword [rax]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x17b
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call sym.libcrypto_1_1_x64.dll_CRYPTO_free
mov rcx, qword [rsp + 0x50]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x17c
call sym.libcrypto_1_1_x64.dll_CRYPTO_free
mov r8d, 0x17d
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call sym.libcrypto_1_1_x64.dll_CRYPTO_free
mov rcx, qword [rsp + 0x60]
call sym.libcrypto_1_1_x64.dll_EC_POINT_free
mov rcx, r15
call sym.libcrypto_1_1_x64.dll_BN_CTX_free
lea rdx, [0x180234380]
mov rcx, r12
call sym.libcrypto_1_1_x64.dll_ASN1_item_free
mov rcx, rsi
call sym.libcrypto_1_1_x64.dll_EVP_MD_CTX_free
mov eax, ebx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rax + 0x10]
cmp dword [rcx], ebp
je 0x18015cde6
mov edx, 0x66
mov dword [rsp + 0x20], 0x122
lea r9, str.crypto_sm2_sm2_crypt.c
lea ecx, [rdx - 0x31]
lea r8d, [rdx + 2]
jmp 0x18015cd17
mov rax, qword [rax + 0x18]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x80], rcx
movsxd rbp, dword [rax]
mov r14, qword [rax + 8]
mov r12, rbp
mov rax, qword [rsp + 0x108]
cmp qword [rax], rbp
jae 0x18015ce2d
mov edx, 0x66
mov dword [rsp + 0x20], 0x12a
lea r9, str.crypto_sm2_sm2_crypt.c
lea ecx, [rdx - 0x31]
lea r8d, [rdx + 5]
jmp 0x18015cd17
call sym.libcrypto_1_1_x64.dll_BN_CTX_new
mov r15, rax
test rax, rax
jne 0x18015ce58
mov dword [rsp + 0x20], 0x130
lea r9, str.crypto_sm2_sm2_crypt.c
lea edx, [rax + 0x66]
lea ecx, [rax + 0x35]
lea r8d, [rax + 0x41]
jmp 0x18015cd17
mov rcx, r15
call sym.libcrypto_1_1_x64.dll_BN_CTX_start
mov rcx, r15
call sym.libcrypto_1_1_x64.dll_BN_CTX_get
mov rcx, r15
mov qword [rsp + 0x68], rax
call sym.libcrypto_1_1_x64.dll_BN_CTX_get
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x18015ce9d
mov dword [rsp + 0x20], 0x139
lea r9, str.crypto_sm2_sm2_crypt.c
lea edx, [rax + 0x66]
lea ecx, [rax + 0x35]
lea r8d, [rax + 3]
jmp 0x18015cd17
mov r8d, 0x13d
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r12
call sym.libcrypto_1_1_x64.dll_CRYPTO_zalloc
mov rdi, rax
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rax, qword [rsp + 0x70]
mov r8d, 0x13e
lea rcx, [rax + rax]
call sym.libcrypto_1_1_x64.dll_CRYPTO_zalloc
movsxd rcx, dword [rsp + 0x58]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x13f
mov qword [rsp + 0x50], rax
call sym.libcrypto_1_1_x64.dll_CRYPTO_zalloc
mov qword [rsp + 0x40], rax
test rdi, rdi
je 0x18015d2a6
cmp qword [rsp + 0x50], rbx
je 0x18015d2a6
test rax, rax
je 0x18015d2a6
mov rcx, r13
call sym.libcrypto_1_1_x64.dll_EC_POINT_new
mov qword [rsp + 0x60], rax
mov rcx, rax
test rax, rax
jne 0x18015cf54
mov dword [rsp + 0x20], 0x148
mov r8d, 0x41
mov edx, 0x66
lea r9, str.crypto_sm2_sm2_crypt.c
lea ecx, [rdx - 0x31]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
jmp 0x18015cd24
mov rax, qword [rsp + 0x48]
mov rdx, rcx
mov rcx, r13
mov qword [rsp + 0x20], r15
mov r9, qword [rax + 8]
mov r8, qword [rax]
call sym.libcrypto_1_1_x64.dll_EC_POINT_set_affine_coordinates
test eax, eax
je 0x18015d293
mov rcx, qword [rsp + 0xe0]
call sym.libcrypto_1_1_x64.dll_EC_KEY_get0_private_key
mov r9, qword [rsp + 0x60]
xor r8d, r8d
mov rdx, r9
mov qword [rsp + 0x28], r15
mov rcx, r13
mov qword [rsp + 0x20], rax
call sym.libcrypto_1_1_x64.dll_EC_POINT_mul
test eax, eax
je 0x18015d293
mov r9, qword [rsp + 0x78]
mov rcx, r13
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], r15
call sym.libcrypto_1_1_x64.dll_EC_POINT_get_affine_coordinates
test eax, eax
je 0x18015d293
mov r13, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
mov r8d, r13d
mov rcx, qword [rsp + 0x68]
call sym.libcrypto_1_1_x64.dll_BN_bn2binpad
test eax, eax
js 0x18015d280
mov rax, qword [rsp + 0x50]
mov r8d, r13d
mov rcx, qword [rsp + 0x78]
add rax, r13
mov rdx, rax
mov qword [rsp + 0x68], rax
call sym.libcrypto_1_1_x64.dll_BN_bn2binpad
test eax, eax
js 0x18015d280
mov rax, qword [rsp + 0xe8]
lea r9, [r13*2]
mov r8, qword [rsp + 0x50]
mov rdx, r12
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.180002121
test eax, eax
je 0x18015d280
mov r13, qword [rsp + 0x100]
mov r9d, ebx
test ebp, ebp
je 0x18015d128
cmp ebp, 0x40
jb 0x18015d128
lea eax, [rbp - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + r13]
cmp r13, rax
ja 0x18015d081
cmp rdx, rdi
jae 0x18015d128
lea rax, [rcx + r14]
cmp r13, rax
ja 0x18015d093
cmp rdx, r14
jae 0x18015d128
mov eax, ebp
and eax, 0x8000003f
jge 0x18015d0a3
dec eax
or eax, 0xffffffc0
inc eax
sub ebp, eax
mov rdx, r14
sub rdx, rdi
movsxd r10, ebp
mov r8, r13
mov rcx, rdi
sub r8, rdi
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
add r9d, 0x40
movdqu xmm1, xmmword [rdx + rcx]
movdqu xmm2, xmmword [rdx + rcx + 0x10]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
movdqu xmmword [r8 + rcx], xmm1
movdqu xmm1, xmmword [rdx + rcx + 0x20]
pxor xmm2, xmm0
movdqu xmm0, xmmword [rcx + 0x20]
movdqu xmmword [r8 + rcx + 0x10], xmm2
movdqu xmm2, xmmword [rdx + rcx + 0x30]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x30]
movdqu xmmword [r8 + rcx + 0x20], xmm1
pxor xmm2, xmm0
movdqu xmmword [r8 + rcx + 0x30], xmm2
add rcx, 0x40
mov rax, rcx
sub rax, rdi
cmp rax, r10
jne 0x18015d0c0
movsxd rax, r9d
cmp rax, r12
je 0x18015d165
mov r8, r13
lea rcx, [rax + rdi]
sub r8, rdi
sub r14, rdi
mov rdx, r12
sub rdx, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14 + rcx]
xor al, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18015d150
call sym.libcrypto_1_1_x64.dll_EVP_MD_CTX_new
mov rsi, rax
test rax, rax
jne 0x18015d17f
mov dword [rsp + 0x20], 0x162
jmp 0x18015cf2b
mov rdx, qword [rsp + 0xe8]
mov rcx, rsi
call sym.libcrypto_1_1_x64.dll_EVP_DigestInit
test eax, eax
je 0x18015d251
mov r14, qword [rsp + 0x70]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
mov r8, r14
call sym.libcrypto_1_1_x64.dll_EVP_DigestUpdate
test eax, eax
je 0x18015d251
mov r8, r12
mov rdx, r13
mov rcx, rsi
call sym.libcrypto_1_1_x64.dll_EVP_DigestUpdate
test eax, eax
je 0x18015d251
mov rdx, qword [rsp + 0x68]
mov r8, r14
mov rcx, rsi
call sym.libcrypto_1_1_x64.dll_EVP_DigestUpdate
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x18015d256
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call sym.libcrypto_1_1_x64.dll_EVP_DigestFinal
test eax, eax
je 0x18015d256
movsxd r8, dword [rsp + 0x58]
mov rcx, rbp
mov rdx, qword [rsp + 0x80]
call sym.libcrypto_1_1_x64.dll_CRYPTO_memcmp
test eax, eax
je 0x18015d237
mov edx, 0x66
mov dword [rsp + 0x20], 0x170
lea r9, str.crypto_sm2_sm2_crypt.c
mov r8d, edx
lea ecx, [rdx - 0x31]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r12, qword [rsp + 0x48]
jmp 0x18015cd24
mov rax, qword [rsp + 0x108]
mov ebx, 1
mov qword [rax], r12
mov r12, qword [rsp + 0x48]
jmp 0x18015cd3e
mov rbp, qword [rsp + 0x40]
mov edx, 0x66
mov dword [rsp + 0x20], 0x16b
lea r9, str.crypto_sm2_sm2_crypt.c
lea ecx, [rdx - 0x31]
lea r8d, [rdx - 0x60]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r12, qword [rsp + 0x48]
jmp 0x18015cd24
mov dword [rsp + 0x20], 0x159
mov r8d, 0x44
jmp 0x18015cf31
mov dword [rsp + 0x20], 0x151
mov r8d, reloc.WS2_32.dll_recv
jmp 0x18015cf31
mov dword [rsp + 0x20], 0x142
jmp 0x18015cf2b