Function at 0x18037d210
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, 0xe0
call fcn.1803e3dd0
sub rsp, rax
xor edi, edi
mov rbp, r9
mov esi, edi
mov r13, rdx
mov rbx, rcx
call fcn.180200da0
mov rcx, rbx
mov r12, rax
call fcn.180213be0
mov rcx, rax
mov r14, rax
call fcn.18019bb00
mov rcx, rbx
mov qword [rsp + 0xc8], rax
call fcn.1802121b0
mov rcx, r13
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x68], rdi
mov r15d, edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rdi
call fcn.180212300
mov rcx, rbx
mov dword [rsp + 0x58], eax
mov qword [rsp + 0xa0], rdi
call fcn.18023cf10
mov rcx, rbx
mov qword [rsp + 0xd8], rax
mov r13, rax
call fcn.18023cf00
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xb8], rdi
test r12, r12
je 0x18037da4b
cmp dword [rsp + 0x58], esi
jle 0x18037da4b
mov rcx, r14
call fcn.18037c8b0
mov rbx, rax
test rax, rax
jne 0x18037d302
call fcn.18020d3a0
mov edx, __WSAFDIsSet
jmp 0x18037da55
mov rcx, r14
call fcn.18023b5b0
mov rcx, r14
mov qword [rsp + 0x68], rax
call fcn.18023b5b0
mov rcx, r13
mov qword [rsp + 0x70], rax
call fcn.1802a1f60
mov rsi, rax
cmp qword [rsp + 0x68], rdi
je 0x18037da18
cmp qword [rsp + 0x70], rdi
je 0x18037da18
test rax, rax
je 0x18037da18
mov rcx, rax
call fcn.1802a2050
mov rcx, rsi
call fcn.1802a1d80
mov rcx, rsi
mov r13, rax
call fcn.1802a1d80
mov rcx, rsi
mov qword [rsp + 0x90], rax
call fcn.1802a1d80
mov rcx, rsi
mov qword [rsp + 0x80], rax
call fcn.1802a1d80
mov rcx, rsi
mov qword [rsp + 0x98], rax
call fcn.1802a1d80
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x18037d3d1
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xa8
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0x80003
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, rdi
jmp 0x18037da7c
lea rcx, [rbx + rbx]
mov r8d, 0xac
lea rdx, str.crypto_sm2_sm2_crypt.c
call fcn.18020e960
movsxd rcx, dword [rsp + 0x58]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0xad
mov qword [rsp + 0x60], rax
call fcn.18020e960
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x60], rdi
je 0x18037d9e3
test rax, rax
je 0x18037d9e3
mov rax, qword [rsp + 0x148]
xor edx, edx
mov rcx, qword [rsp + 0x140]
mov r8, qword [rax]
call fcn.1803e5f50
mov rdx, qword [rsp + 0xc8]
mov r9, rsi
xor r8d, r8d
mov rcx, r13
call fcn.1802ad900
test eax, eax
jne 0x18037d488
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xb7
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, qword [rsp + 0x50]
jmp 0x18037da7c
mov rdx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov r8, r13
mov rcx, r14
mov qword [rsp + 0x20], rdi
call fcn.18023b410
test eax, eax
je 0x18037d9ab
mov r9, qword [rsp + 0x98]
mov rcx, r14
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rsi
call fcn.18023b070
test eax, eax
je 0x18037d9ab
mov r9, qword [rsp + 0xd0]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, r14
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r13
call fcn.18023b410
test eax, eax
je 0x18037d9ab
mov r13, qword [rsp + 0x78]
mov rcx, r14
mov r8, qword [rsp + 0x80]
mov r9, r13
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rsi
call fcn.18023b070
test eax, eax
je 0x18037d9ab
mov r14, qword [rsp + 0x60]
mov r8d, ebx
mov rcx, qword [rsp + 0x80]
mov rdx, r14
call fcn.1802465e0
test eax, eax
js 0x18037d973
lea rax, [rbx + r14]
mov r8d, ebx
mov rdx, rax
mov qword [rsp + 0x78], rax
mov rcx, r13
call fcn.1802465e0
test eax, eax
js 0x18037d973
mov r8d, 0xc9
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbp
call fcn.18020e960
mov r15, rax
test rax, rax
jne 0x18037d5bf
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xcb
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
lea ecx, [r15 + 0x35]
mov edx, 0xc0100
call fcn.18020d5c0
mov rbx, qword [rsp + 0x50]
jmp 0x18037da7c
mov rax, qword [rsp + 0x88]
lea r9, [rbx + rbx]
mov r13, qword [rsp + 0xd8]
mov r8, r14
mov qword [rsp + 0x40], rax
mov rdx, rbp
mov rax, qword [rsp + 0x128]
mov rcx, r15
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.1802e5100
test eax, eax
jne 0x18037d63e
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xd2
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, qword [rsp + 0x50]
jmp 0x18037da7c
mov r14, qword [rsp + 0x130]
mov r9, rdi
test rbp, rbp
je 0x18037d712
cmp rbp, 0x40
jb 0x18037d6f1
lea rcx, [rbp - 1]
lea rax, [r14 - 1]
add rcx, r15
add rax, rbp
cmp r15, rax
ja 0x18037d674
cmp rcx, r14
jae 0x18037d6f1
mov rdx, rbp
and rdx, 0xffffffffffffffc0
mov rcx, r14
lea rax, [r15 + 0x10]
sub rcx, r15
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r9, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rax + rcx]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rcx + rax - 0x30]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rcx + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r9, rdx
jne 0x18037d690
cmp r9, rbp
je 0x18037d712
mov r8, r14
lea rcx, [r9 + r15]
sub r8, r15
mov rdx, rbp
sub rdx, r9
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18037d701
mov rcx, qword [rsp + 0x128]
call fcn.180212250
mov r8, qword [rsp + 0x88]
mov rdx, rax
mov rcx, r13
call fcn.180200e60
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x18037d777
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xdb
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, qword [rsp + 0x50]
jmp 0x18037da7c
mov rdx, rax
mov rcx, r12
call fcn.1802002f0
test eax, eax
je 0x18037d93b
mov rdx, qword [rsp + 0x60]
mov r8, rbx
mov rcx, r12
call fcn.180200370
test eax, eax
je 0x18037d93b
mov r8, rbp
mov rdx, r14
mov rcx, r12
call fcn.180200370
test eax, eax
je 0x18037d93b
mov rdx, qword [rsp + 0x78]
mov r8, rbx
mov rcx, r12
call fcn.180200370
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x18037d940
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call fcn.1801fff20
test eax, eax
je 0x18037d940
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xb0], rax
call fcn.180225790
mov qword [rsp + 0xb8], rax
call fcn.180225790
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
test rcx, rcx
je 0x18037d908
test rax, rax
je 0x18037d908
mov r8d, dword [rsp + 0x58]
mov rdx, rbx
call fcn.180293dd0
test eax, eax
je 0x18037d8d5
mov rcx, qword [rsp + 0xc0]
mov r8d, ebp
mov rdx, r15
call fcn.180293dd0
test eax, eax
je 0x18037d8d5
lea r8, [0x1804daab0]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0xa8]
call fcn.18024fed0
test eax, eax
jns 0x18037d8be
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xf9
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
jmp 0x18037da7c
mov rcx, qword [rsp + 0x148]
mov edi, 1
cdqe
mov qword [rcx], rax
jmp 0x18037da7c
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xf2
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
jmp 0x18037da7c
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xed
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0100
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
jmp 0x18037da7c
mov rbx, qword [rsp + 0x50]
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xe3
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0x80006
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
jmp 0x18037da7c
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xc5
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, qword [rsp + 0x50]
jmp 0x18037da7c
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xbf
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0x80010
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, qword [rsp + 0x50]
jmp 0x18037da7c
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0xb0
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0100
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, qword [rsp + 0x50]
jmp 0x18037da7c
call fcn.18020d3a0
lea r8, str.ossl_sm2_encrypt
mov edx, 0x9c
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0100
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, rdi
jmp 0x18037da7c
call fcn.18020d3a0
mov edx, 0x8e
lea r8, str.ossl_sm2_encrypt
lea rcx, str.crypto_sm2_sm2_crypt.c
call fcn.18020d4c0
xor r8d, r8d
mov edx, 0xc0103
lea ecx, [r8 + 0x35]
call fcn.18020d5c0
mov rbx, rsi
mov rcx, qword [rsp + 0xa0]
call fcn.180200eb0
mov rcx, qword [rsp + 0xc0]
call fcn.180225620
mov rcx, qword [rsp + 0xb8]
call fcn.180225620
mov r8d, 0x104
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, r15
call fcn.18020e660
mov rcx, qword [rsp + 0x60]
lea rdx, str.crypto_sm2_sm2_crypt.c
mov r8d, 0x105
call fcn.18020e660
mov r8d, 0x106
lea rdx, str.crypto_sm2_sm2_crypt.c
mov rcx, rbx
call fcn.18020e660
mov rcx, r12
call fcn.180200cf0
mov rcx, rsi
call fcn.1802a1cc0
mov rcx, qword [rsp + 0x68]
call fcn.18023b030
mov rcx, qword [rsp + 0x70]
call fcn.18023b030
mov rbx, qword [rsp + 0x120]
mov eax, edi
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret