Function at 0x180006d0c
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0x100
xor r12d, r12d
mov eax, 0x30
mov r14, r8
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
lea rax, [rbp - 9]
mov qword [rbp - 0x71], rax
lea rax, [rsp + 0x30]
mov r13, r9
mov qword [rsp + 0x28], rax
lea r8, str.Policy
xor r9d, r9d
mov dword [rsp + 0x20], 0x20019
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x70], r12
mov dword [rbp - 0x79], 0x10
mov dword [rbp - 0x75], 0x10
mov ebx, r12d
mov edi, r12d
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
call fcn.18000fc84
test eax, eax
je 0x18000711b
call fcn.180004a6c
mov rdx, qword [rsp + 0x30]
lea r9, str.Local
lea r8, [0x18003ba4c]
mov rcx, r15
call fcn.180006be4
mov rdx, qword [rsp + 0x30]
lea r9, str.Domain
lea r8, [0x18003ba68]
mov rcx, r15
call fcn.180006be4
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r8, str.PolDnDDN
xor r9d, r9d
mov rcx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.1800107e4
test eax, eax
je 0x180006e3e
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
movzx eax, word [rdx]
mov word [rsp + 0x58], ax
movzx eax, word [rdx + 2]
mov word [rsp + 0x5a], ax
mov eax, dword [rdx + 4]
add rax, rdx
mov qword [rsp + 0x60], rax
call fcn.180004a6c
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r8, str.PolRevision
xor r9d, r9d
mov rcx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.1800107e4
test eax, eax
je 0x1800070f2
mov r12, qword [rsp + 0x38]
movzx edx, word [r12]
movzx ecx, word [r12 + 2]
call fcn.180004a6c
cmp word [r12], 9
mov rdx, qword [rsp + 0x30]
lea rax, str.PolEKList
lea r8, str.PolSecretEncryptionKey
mov rcx, r15
cmova r8, rax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1800107e4
test eax, eax
je 0x180006fd9
cmp word [r12], 9
jbe 0x18000701f
mov rsi, qword [rsp + 0x40]
mov r9, qword [rbp + 0x6f]
mov edx, dword [rsp + 0x50]
mov rcx, rsi
xor r8d, r8d
call fcn.1800081d8
test eax, eax
je 0x180006fcc
mov edx, dword [rsi + 0x3c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180006fcc
mov r8d, dword [rsi + 0x3c]
lea rdx, [rsi + 0x4c]
mov rcx, rax
call fcn.180026930
mov ecx, dword [rbx + 0x18]
call fcn.180004a6c
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
js 0x180006f4b
lea rcx, [rsp + 0x40]
call fcn.180004a6c
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
call fcn.180004a6c
xor r12d, r12d
xor r14d, r14d
cmp dword [rbx + 0x18], edi
jbe 0x1800070d0
mov ecx, r12d
lea r13, [r14 + rbx + 0x1c]
call fcn.180004a6c
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
js 0x180006f93
lea rcx, [rsp + 0x40]
call fcn.180004a6c
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
call fcn.180004a6c
mov edx, dword [r13 + 0x14]
lea rcx, [r13 + 0x18]
xor r8d, r8d
call fcn.18000e590
call fcn.180004a6c
mov eax, dword [r13 + 0x14]
inc r12d
lea r14d, [r14 + rax + 0x18]
cmp r12d, dword [rbx + 0x18]
jb 0x180006f5f
mov r14, qword [rbp + 0x5f]
mov r13, qword [rbp + 0x67]
mov r12, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rbp + 0x57]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r12d, r12d
test rbx, rbx
jne 0x180006ff3
test rdi, rdi
je 0x1800070f2
mov rdx, qword [rsp + 0x30]
mov rcx, r15
cmp dword [rbp + 0x77], r12d
je 0x1800070d9
mov r9, r13
mov r8, r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call fcn.180007138
jmp 0x1800070f2
lea rcx, [rbp - 0x61]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov rdx, qword [rbp + 0x6f]
lea rcx, [rbp - 0x61]
mov r8d, 0x10
call qword [sym.imp.cryptdll.dll_MD5Update]
mov rsi, qword [rsp + 0x40]
mov r12d, 0x3e8
lea rdx, [rsi + 0x3c]
lea rcx, [rbp - 0x61]
mov r8d, 0x10
call qword [sym.imp.cryptdll.dll_MD5Update]
dec r12
jne 0x180007048
lea rcx, [rbp - 0x61]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea r11, [rsi + 0xc]
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x70], r11
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x180006fc3
mov r12d, 0x10
mov edx, r12d
lea ecx, [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180006fc3
movups xmm0, xmmword [rsi + 0x1c]
movdqu xmmword [rax], xmm0
call fcn.180004a6c
xor r8d, r8d
mov edx, r12d
mov rcx, rdi
call fcn.18000e590
call fcn.180004a6c
jmp 0x180006fc3
mov r14, qword [rbp + 0x5f]
jmp 0x180006fc7
mov rax, qword [rbp + 0x7f]
mov r9, rbx
mov r8, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.18000740c
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call fcn.1800107a4
test rbx, rbx
je 0x18000710d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x18000711b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret