Function at 0x140018e20
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xf8
lea rax, [rbp - 9]
mov dword [rbp - 0x71], 0x10
mov qword [rbp - 0x69], rax
lea r8, str.Policy
lea rax, [rsp + 0x38]
mov dword [rbp - 0x6d], 0x10
xor r15d, r15d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
mov r13, r9
mov r12, rdx
mov dword [rsp + 0x60], Ordinal_54
mov r14, rcx
mov dword [rbp - 0x7d], Ordinal_54
mov qword [rbp - 0x79], r15
mov ebx, r15d
call fcn.140021a90
test eax, eax
je 0x14001925b
mov rdx, qword [rsp + 0x38]
lea r8, [0x14006a438]
mov rcx, r14
mov qword [rsp + 0xf0], rdi
call fcn.140018c90
mov rdx, qword [rsp + 0x38]
lea r8, [0x14006a440]
mov rcx, r14
call fcn.140018c90
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, str.PolDnDDN
mov rcx, r14
mov dword [rsp + 0x20], 0x20019
call fcn.140021a90
test eax, eax
je 0x140018f49
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400221d0
mov edi, eax
cmp dword [r14], ebx
jne 0x140018f3a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140018f3a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x140018f49
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, str.PolRevision
mov rcx, r14
mov dword [rsp + 0x20], 0x20019
call fcn.140021a90
test eax, eax
je 0x14001921a
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400221d0
mov edi, eax
cmp dword [r14], ebx
jne 0x140018fb4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140018fb4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x14001921a
mov rdx, qword [rsp + 0x38]
lea rax, str.PolEKList
mov qword [rsp + reloc.WLDAP32.dll_Ordinal_304], rsi
lea r8, str.PolSecretEncryptionKey
mov rsi, qword [rsp + 0x30]
mov rcx, r14
cmp word [rsi], 9
cmova r8, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
call fcn.140021a90
test eax, eax
je 0x1400191c0
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x48]
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400221d0
mov edi, eax
cmp dword [r14], ebx
jne 0x140019048
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140019048
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1400191c0
cmp word [rsi], 9
jbe 0x14001911c
mov r12, qword [rsp + 0x48]
xor r8d, r8d
mov r9, qword [rbp + 0x6f]
mov rcx, r12
mov edx, dword [rsp + 0x40]
call fcn.14001a8d0
test eax, eax
je 0x1400191b3
mov edx, dword [r12 + 0x3c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400191b3
mov r8d, dword [r12 + 0x3c]
lea rdx, [r12 + 0x4c]
mov rcx, rax
call fcn.1400351a0
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
js 0x1400190c6
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov edi, r15d
mov esi, r15d
cmp dword [rbx + 0x18], r15d
jbe 0x1400191ae
nop word [rax + rax]
mov r13d, esi
lea rcx, [rbx + 0x1c]
add rcx, r13
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
js 0x140019104
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
add esi, 0x18
inc edi
add esi, dword [r13 + rbx + 0x30]
cmp edi, dword [rbx + 0x18]
jb 0x1400190e0
mov r13, qword [rbp + 0x67]
jmp 0x1400191ae
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 r12, qword [rsp + 0x48]
mov edi, 0x3e8
nop dword [rax]
nop dword [rax + rax]
mov r8d, 0x10
lea rdx, [r12 + 0x3c]
lea rcx, [rbp - 0x61]
call qword [sym.imp.cryptdll.dll_MD5Update]
sub rdi, 1
jne 0x140019150
lea rcx, [rbp - 0x61]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea rax, [r12 + 0xc]
lea rdx, [rbp - 0x71]
mov qword [rbp - 0x79], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
js 0x1400191ae
lea edx, [rdi + 0x10]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x1400191ae
movups xmm0, xmmword [r12 + 0x1c]
movups xmmword [rax], xmm0
mov rsi, qword [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rbp + 0x57]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + reloc.WLDAP32.dll_Ordinal_304]
test rbx, rbx
jne 0x1400191db
test r15, r15
je 0x14001921a
cmp dword [rbp + 0x77], 0
mov rcx, r14
mov rdx, qword [rsp + 0x38]
je 0x140019201
mov r8, qword [rbp + 0x5f]
mov r9, r13
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
call fcn.140019270
jmp 0x14001921a
mov rax, qword [rbp + 0x7f]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8, r12
mov qword [rsp + 0x20], r15
call fcn.140019ad0
cmp dword [r14], 0
mov rdi, qword [rsp + 0xf0]
jne 0x14001923f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14001923f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14001924d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x14001925b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret