Function at 0x140377790
Capabilities:
Encode data using xor

Disassembly:
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, 0xb8
call fcn.1403831c0
sub rsp, rax
xor ebx, ebx
mov rdi, rdx
mov qword [rsp + 0x60], rbx
mov r15, rcx
call fcn.140210bf0
mov rcx, rax
mov qword [rsp + 0x70], rbx
mov r13, rax
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x58], rbx
call fcn.140377610
mov rcx, rdi
mov qword [rsp + 0x88], rax
mov r14, rax
call fcn.140206560
mov rcx, r15
mov dword [rsp + 0x68], eax
mov edi, eax
mov ebp, ebx
mov esi, ebx
call fcn.14023a700
mov rcx, r15
mov qword [rsp + 0x98], rax
call fcn.14023a730
mov r12, qword [rsp + 0x120]
mov qword [rsp + 0xa0], rax
test r14, r14
je 0x1403778ae
test edi, edi
jle 0x1403778ae
mov r8, qword [rsp + 0x128]
mov edx, 0xff
mov rcx, r12
mov r8, qword [r8]
call fcn.1403850b0
mov r8d, dword [rsp + 0x118]
lea r9, [0x140478e10]
lea rdx, [rsp + 0x110]
xor ecx, ecx
call fcn.14023cd30
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x14037794d
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x12f
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
lea edx, [rbx + 0x64]
mov ecx, getservbyport
call fcn.1402042a0
mov rdi, rbx
mov rax, qword [rsp + 0x128]
xor edx, edx
mov rcx, r12
mov r8, qword [rax]
call fcn.1403850b0
mov r8d, 0x18d
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call fcn.1401ffe60
mov rcx, qword [rsp + 0x58]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x18e
call fcn.1401ffe60
mov r8d, 0x18f
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rdi
call fcn.1401ffe60
mov rcx, qword [rsp + 0x70]
call fcn.140243360
mov rcx, qword [rsp + 0x60]
call fcn.1402992d0
mov rcx, qword [rsp + 0x80]
lea rdx, [0x140478e10]
call fcn.14023c8c0
mov rcx, rsi
call fcn.14020b8c0
mov eax, ebx
add rsp, 0xb8
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], edi
je 0x14037797e
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x134
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
lea edx, [r8 + 0x68]
jmp 0x1403778a4
mov rax, qword [rax + 0x18]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xa8], rcx
movsxd r14, dword [rax]
mov rdi, qword [rax + 8]
mov r15, r14
mov rax, qword [rsp + 0x128]
cmp qword [rax], r14
jae 0x1403779ce
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x13c
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
lea edx, [r8 + 0x6b]
jmp 0x1403778a4
mov rcx, qword [rsp + 0x98]
call fcn.140299570
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140377a0f
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x142
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
mov edx, 0xc0100
jmp 0x1403778a4
mov rcx, rax
call fcn.140299660
mov rcx, qword [rsp + 0x60]
call fcn.140299390
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
call fcn.140299390
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x140377a67
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x14b
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
mov edx, 0x80003
jmp 0x1403778a4
mov r8d, 0x14f
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r15
call fcn.140200160
mov rbp, rax
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rax, qword [rsp + 0x88]
mov r8d, 0x150
lea rcx, [rax + rax]
call fcn.140200160
movsxd rcx, dword [rsp + 0x68]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x151
mov qword [rsp + 0x58], rax
call fcn.140200160
mov qword [rsp + 0x50], rax
test rbp, rbp
je 0x140377f30
cmp qword [rsp + 0x58], rbx
je 0x140377f30
test rax, rax
je 0x140377f30
mov rcx, r13
call fcn.1402438e0
mov qword [rsp + 0x70], rax
mov rcx, rax
test rax, rax
jne 0x140377b28
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x15a
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
mov edx, 0xc0100
lea ecx, [r8 + 0x35]
call fcn.1402042a0
mov rdi, qword [rsp + 0x50]
jmp 0x1403778b1
mov rax, qword [rsp + 0x60]
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov rcx, r13
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 8]
mov r8, qword [rax]
call fcn.140243ac0
test eax, eax
je 0x140377ef8
mov rcx, qword [rsp + 0x100]
call fcn.140206420
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov rdx, r9
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140243740
test eax, eax
je 0x140377ef8
mov rax, qword [rsp + 0x60]
mov rcx, r13
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.1402433a0
test eax, eax
je 0x140377ef8
mov r13, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x58]
mov r8d, r13d
mov rcx, qword [rsp + 0x78]
call fcn.14022fe40
test eax, eax
js 0x140377ec0
mov rax, qword [rsp + 0x58]
mov r8d, r13d
mov rcx, qword [rsp + 0x90]
add rax, r13
mov rdx, rax
mov qword [rsp + 0x78], rax
call fcn.14022fe40
test eax, eax
js 0x140377ec0
mov rax, qword [rsp + 0xa0]
lea r9, [r13*2]
mov r8, qword [rsp + 0x58]
mov rdx, r15
mov qword [rsp + 0x40], rax
mov rcx, rbp
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.1402e96c0
test eax, eax
je 0x140377ec0
mov r9d, ebx
test r14d, r14d
je 0x140377d38
cmp r14d, 0x40
jb 0x140377d38
lea eax, [r14 - 1]
movsxd rcx, eax
lea rax, [rcx + rbp]
lea rdx, [rcx + r12]
cmp r12, rax
ja 0x140377c85
cmp rdx, rbp
jae 0x140377d38
lea rax, [rcx + rdi]
cmp r12, rax
ja 0x140377c97
cmp rdx, rdi
jae 0x140377d38
mov eax, r14d
and eax, 0x8000003f
jge 0x140377ca8
dec eax
or eax, 0xffffffc0
inc eax
sub r14d, eax
lea rcx, [rbp + 0x10]
mov rdx, rdi
movsxd r11, r14d
mov r8, r12
sub rdx, rbp
sub r8, rbp
mov r10, 0xfffffffffffffff0
sub r10, rbp
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rcx + rdx - 0x10]
movdqu xmm2, xmmword [rcx + rdx]
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 [rcx + r8 - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm2, xmmword [rcx + rdx - 0x20]
movdqu xmmword [r8 + rcx - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rcx + r8 - 0x20], xmm2
cmp rax, r11
jne 0x140377cd0
movsxd rax, r9d
cmp rax, r15
je 0x140377d74
mov r8, r12
lea rcx, [rax + rbp]
sub r8, rbp
sub rdi, rbp
mov rdx, r15
sub rdx, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
xor al, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140377d60
call fcn.14020b970
mov rsi, rax
test rax, rax
jne 0x140377db8
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x174
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
lea ecx, [rsi + 0x35]
mov edx, 0xc0100
call fcn.1402042a0
mov rdi, qword [rsp + 0x50]
jmp 0x1403778b1
mov rdx, qword [rsp + 0x108]
mov rcx, rsi
call fcn.14020aeb0
test eax, eax
je 0x140377e88
mov rdx, qword [rsp + 0x58]
mov r8, r13
mov rcx, rsi
call fcn.14020af30
test eax, eax
je 0x140377e88
mov r8, r15
mov rdx, r12
mov rcx, rsi
call fcn.14020af30
test eax, eax
je 0x140377e88
mov rdx, qword [rsp + 0x78]
mov r8, r13
mov rcx, rsi
call fcn.14020af30
mov rdi, qword [rsp + 0x50]
test eax, eax
je 0x140377e8d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.14020aae0
test eax, eax
je 0x140377e8d
movsxd r8, dword [rsp + 0x68]
mov rcx, rdi
mov rdx, qword [rsp + 0xa8]
call fcn.1400012b0
test eax, eax
je 0x140377e73
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x182
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
lea edx, [r8 + 0x66]
lea ecx, [rdx - 0x31]
call fcn.1402042a0
jmp 0x1403778b1
mov rax, qword [rsp + 0x128]
mov ebx, 1
mov qword [rax], r15
jmp 0x1403778c6
mov rdi, qword [rsp + 0x50]
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x17d
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.1402042a0
jmp 0x1403778b1
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x16b
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.1402042a0
mov rdi, qword [rsp + 0x50]
jmp 0x1403778b1
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x163
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
mov edx, 0x80010
lea ecx, [r8 + 0x35]
call fcn.1402042a0
mov rdi, qword [rsp + 0x50]
jmp 0x1403778b1
call fcn.140204080
lea r8, str.ossl_sm2_decrypt
mov edx, 0x154
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.1402041a0
xor r8d, r8d
mov edx, 0xc0100
lea ecx, [r8 + 0x35]
call fcn.1402042a0
mov rdi, qword [rsp + 0x50]
jmp 0x1403778b1