Function at 0x1801d6610
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov ebp, r8d
mov r12, rdx
mov rsi, rcx
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rsi + 0x58]
cmp rcx, 0x1238
je 0x1801d665f
test rdx, rdx
je 0x1801d6652
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.18028d8d8
mov ecx, 0x1238
call fcn.1801d5c80
mov rdx, rax
mov qword [rsi + 0x58], rdx
mov qword [rsi + 0x50], 0x1238
mov qword [rsi + 0x48], 0
mov r14d, ebp
shr r14d, 2
lea eax, [r14 + 6]
mov dword [rsi + 0x18], eax
lea r15d, [rax*4 + 4]
mov rcx, qword [rsi + 0x30]
mov rbx, qword [rsi + 0x38]
cmp rcx, r15
je 0x1801d66cb
test rbx, rbx
je 0x1801d66aa
mov rdi, rbx
xor eax, eax
rep stosd dword [rdi], eax
mov rcx, rbx
call fcn.18029cb24
mov rcx, r15
call fcn.18012f330
test r15, r15
jne 0x1801d66bb
xor ebx, ebx
jmp 0x1801d66cb
lea rcx, [r15*4]
call fcn.1801d5c00
mov rbx, rax
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x30], r15
movabs rax, 0x3fffffffffffffff
mov qword [rsi + 0x28], rax
movzx eax, byte [0x180722dec]
test al, al
jne 0x1801d66f8
call fcn.1801e0900
movzx eax, byte [0x180722dec]
cmp byte [0x180722dee], 0
je 0x1801d67aa
test al, al
jne 0x1801d670e
call fcn.1801e0900
cmp byte [0x180722def], 0
je 0x1801d67aa
mov rdx, rbp
mov r8, rbx
mov rcx, r12
call fcn.1801e16d0
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
jne 0x1801d70ff
mov rdi, qword [rsi + 0x38]
mov eax, dword [rsi + 0x18]
lea ecx, [rax*4]
movdqu xmm1, xmmword [rdi]
movdqu xmm0, xmmword [rdi + rcx*4]
movdqu xmmword [rdi], xmm0
movdqu xmmword [rdi + rcx*4], xmm1
mov r11d, 4
lea edx, [rcx - 4]
cmp edx, r11d
jbe 0x1801d6797
nop dword [rax]
mov eax, r11d
lea rcx, [rdi + rax*4]
aesimc xmm1, xmmword [rcx]
aesimc xmm0, xmmword [rdi + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rdi + rdx*4], xmm1
add r11d, 4
add edx, 0xfffffffc
cmp r11d, edx
jb 0x1801d6770
mov eax, r11d
aesimc xmm0, xmmword [rdi + rax*4]
movdqu xmmword [rdi + rax*4], xmm0
jmp 0x1801d70ff
mov r15, rbp
and r15, 0xfffffffffffffffc
test ebp, ebp
je 0x1801d6815
test rbx, rbx
jne 0x1801d67c7
call fcn.180294920
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1801d6810
test r12, r12
je 0x1801d67e1
cmp r15, rbp
jb 0x1801d67e1
mov r8, rbp
mov rdx, r12
mov rcx, rbx
call fcn.1802bfb00
jmp 0x1801d6815
mov r8, r15
xor edx, edx
mov rcx, rbx
call fcn.1802c01a0
test r12, r12
jne 0x1801d6800
call fcn.180294920
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1801d6810
cmp r15, rbp
jae 0x1801d6815
call fcn.180294920
mov dword [rax], 0x22
call fcn.18028d814
mov r8, r15
sub r8, rbp
lea rcx, [rbx + rbp]
xor edx, edx
call fcn.1802c01a0
lea r8, [rbp + 3]
and r8, 0xfffffffffffffffc
mov rdx, rbx
mov rcx, rbx
call fcn.1801d29e0
lea eax, [r14 - 1]
lea r9, [rax*4]
mov edx, dword [r9 + rbx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
lea r13, [0x180000000]
movzx edi, byte [rcx + r13 + 0x32ba50]
xor edi, 1
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r13 + 0x32ba50]
xor edi, eax
shl edi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r13 + 0x32ba50]
xor edi, eax
xor edi, dword [rbx]
lea r8, [0x18032bc54]
mov dword [r15 + rbx], edi
xor edi, dword [rbx + 4]
lea eax, [r14 + 1]
lea r10, [rax*4]
mov dword [r10 + rbx], edi
xor edi, dword [rbx + 8]
lea eax, [r14 + 2]
lea r11, [rax*4]
mov dword [r11 + rbx], edi
lea eax, [r14 + 3]
lea r12, [rax*4]
xor edi, dword [rbx + 0xc]
mov dword [r12 + rbx], edi
mov r14, qword [rsi + 0x38]
mov rax, qword [rsi + 0x30]
lea rcx, [r14 + rax*4]
lea rax, [r15 + 0x10]
add rax, rbx
cmp rax, rcx
je 0x1801d6a14
cmp ebp, 0x18
jne 0x1801d6917
mov eax, dword [rbx + 0x24]
xor eax, dword [rbx + 0x10]
mov dword [rbx + 0x28], eax
xor eax, dword [rbx + 0x14]
mov dword [rbx + 0x2c], eax
jmp 0x1801d6983
cmp ebp, 0x20
jne 0x1801d6983
mov edx, dword [rbx + 0x2c]
mov eax, edx
shr rax, 0x18
movzx edi, byte [rax + r13 + 0x32ba50]
shl edi, 8
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edi, eax
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r13 + 0x32ba50]
xor edi, eax
xor edi, dword [rbx + 0x10]
mov dword [rbx + 0x30], edi
xor edi, dword [rbx + 0x14]
mov dword [rbx + 0x34], edi
xor edi, dword [rbx + 0x18]
mov dword [rbx + 0x38], edi
xor edi, dword [rbx + 0x1c]
mov dword [rbx + 0x3c], edi
add rbx, r15
mov edx, dword [r9 + rbx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx edi, byte [rcx + r13 + 0x32ba50]
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r13 + 0x32ba50]
xor edi, eax
shl edi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r13 + 0x32ba50]
xor edi, eax
xor edi, dword [r8]
xor edi, dword [rbx]
add r8, 4
mov dword [rbx + r15], edi
xor edi, dword [rbx + 4]
mov dword [r10 + rbx], edi
xor edi, dword [rbx + 8]
mov dword [r11 + rbx], edi
xor edi, dword [rbx + 0xc]
mov dword [r12 + rbx], edi
mov r14, qword [rsi + 0x38]
mov rax, qword [rsi + 0x30]
lea rcx, [r14 + rax*4]
lea rax, [r15 + 0x10]
add rax, rbx
cmp rax, rcx
jne 0x1801d6901
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x1801d6adf
movzx eax, byte [0x180722dd8]
test al, al
jne 0x1801d6ab1
xor r11d, r11d
mov r10d, r11d
nop dword [rax + rax]
movzx edi, byte [r10 + r13 + 0x32ba50]
lea r8d, [rdi + rdi]
mov edx, edi
shr edx, 7
imul r9d, edx, 0x1b000000
mov eax, r8d
shl eax, 0x18
xor r9, rax
mov eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or r9, rax
imul ecx, edx, 0x11b
xor rcx, rdi
mov eax, r8d
xor rcx, rax
or rcx, r9
shl rcx, 0x20
or rcx, r9
mov qword [r13 + r10*8 + 0x71fa80], rcx
inc r10
cmp r10, 0x100
jl 0x1801d6a40
mov qword [0x180720288], r11
mov qword [0x180720280], r11
mov byte [0x180722dd8], 1
mov r8d, select
mov rdx, r14
mov rcx, r14
call fcn.1801d29e0
mov eax, dword [rsi + 0x18]
shl eax, 2
lea rcx, [r14 + rax*4]
mov r8d, select
mov rdx, rcx
call fcn.1801d29e0
jmp 0x1801d70d0
movzx eax, byte [0x180722dd9]
test al, al
jne 0x1801d6aef
call fcn.1801d63e0
mov r11d, 4
mov eax, dword [rsi + 0x18]
lea ebx, [rax*4 - 4]
cmp ebx, r11d
jbe 0x1801d6e8b
lea ebp, [rbx + 2]
mov r15d, 6
nop dword [rax]
nop word [rax + rax]
mov eax, r11d
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov r9d, dword [r13 + rdx*8 + 0x721e54]
xor r9d, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor r9d, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor r9d, dword [r13 + rcx*8 + 0x721e53]
lea r8, [r14 + rbx*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov edx, dword [r13 + rdx*8 + 0x721e54]
xor edx, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edx, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor edx, dword [r13 + rcx*8 + 0x721e53]
mov dword [r10], edx
mov dword [r8], r9d
lea eax, [r15 - 1]
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov r9d, dword [r13 + rdx*8 + 0x721e54]
xor r9d, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor r9d, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor r9d, dword [r13 + rcx*8 + 0x721e53]
lea eax, [rbp - 1]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov edx, dword [r13 + rdx*8 + 0x721e54]
xor edx, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edx, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor edx, dword [r13 + rcx*8 + 0x721e53]
mov dword [r10], edx
mov dword [r8], r9d
mov eax, r15d
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov r9d, dword [r13 + rdx*8 + 0x721e54]
xor r9d, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor r9d, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor r9d, dword [r13 + rcx*8 + 0x721e53]
lea r8, [r14 + rbp*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov edx, dword [r13 + rdx*8 + 0x721e54]
xor edx, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edx, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor edx, dword [r13 + rcx*8 + 0x721e53]
mov dword [r10], edx
mov dword [r8], r9d
lea eax, [r15 + 1]
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov r9d, dword [r13 + rdx*8 + 0x721e54]
xor r9d, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor r9d, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor r9d, dword [r13 + rcx*8 + 0x721e53]
lea eax, [rbp + 1]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov edx, dword [r13 + rdx*8 + 0x721e54]
xor edx, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edx, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor edx, dword [r13 + rcx*8 + 0x721e53]
mov dword [r10], edx
mov dword [r8], r9d
add r11d, 4
add r15d, 4
add ebx, 0xfffffffc
lea ebp, [rbp - 4]
cmp r11d, ebx
jb 0x1801d6b20
mov eax, r11d
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov edx, dword [r13 + rdx*8 + 0x721e54]
xor edx, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edx, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor edx, dword [r13 + rcx*8 + 0x721e53]
mov dword [r8], edx
lea eax, [r11 + 1]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov edx, dword [r13 + rdx*8 + 0x721e54]
xor edx, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edx, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor edx, dword [r13 + rcx*8 + 0x721e53]
mov dword [r8], edx
lea eax, [r11 + 2]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov edx, dword [r13 + rdx*8 + 0x721e54]
xor edx, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edx, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor edx, dword [r13 + rcx*8 + 0x721e53]
mov dword [r8], edx
lea eax, [r11 + 3]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x32ba50]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
mov edx, dword [r13 + rdx*8 + 0x721e54]
xor edx, dword [r13 + rax*8 + 0x721e51]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x32ba50]
xor edx, dword [r13 + rax*8 + 0x721e52]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x32ba50]
xor edx, dword [r13 + rcx*8 + 0x721e53]
mov dword [r8], edx
mov edx, dword [r14]
bswap edx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov ecx, dword [r14 + rax*4]
bswap ecx
mov dword [r14], ecx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov dword [r14 + rax*4], edx
mov edx, dword [r14 + 4]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 4], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov dword [r14 + rax*4], edx
mov edx, dword [r14 + 8]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 8], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov dword [r14 + rax*4], edx
mov edx, dword [r14 + 0xc]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 0xc], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov dword [r14 + rax*4], edx
cmp byte [0x180722dec], 0
jne 0x1801d70de
call fcn.1801e0900
cmp byte [0x180722dee], 0
je 0x1801d70ff
mov r8d, dword [rsi + 0x18]
shl r8d, 4
sub r8d, 0x10
lea rcx, [r14 + 0x10]
mov rdx, rcx
call fcn.1801d29e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret