Function at 0x1400181f0
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.140020890
test eax, eax
je 0x14001862b
mov rdx, qword [rsp + 0x38]
lea r8, [0x1400693d8]
mov rcx, r14
mov qword [rsp + 0xf0], rdi
call fcn.140018060
mov rdx, qword [rsp + 0x38]
lea r8, [0x1400693e0]
mov rcx, r14
call fcn.140018060
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.140020890
test eax, eax
je 0x140018319
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.140020fd0
mov edi, eax
cmp dword [r14], ebx
jne 0x14001830a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14001830a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x140018319
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.140020890
test eax, eax
je 0x1400185ea
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.140020fd0
mov edi, eax
cmp dword [r14], ebx
jne 0x140018384
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140018384
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1400185ea
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.140020890
test eax, eax
je 0x140018590
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.140020fd0
mov edi, eax
cmp dword [r14], ebx
jne 0x140018418
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140018418
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x140018590
cmp word [rsi], 9
jbe 0x1400184ec
mov r12, qword [rsp + 0x48]
xor r8d, r8d
mov r9, qword [rbp + 0x6f]
mov rcx, r12
mov edx, dword [rsp + 0x40]
call fcn.140019ca0
test eax, eax
je 0x140018583
mov edx, dword [r12 + 0x3c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140018583
mov r8d, dword [r12 + 0x3c]
lea rdx, [r12 + 0x4c]
mov rcx, rax
call fcn.140033fa0
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
js 0x140018496
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov edi, r15d
mov esi, r15d
cmp dword [rbx + 0x18], r15d
jbe 0x14001857e
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 0x1400184d4
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 0x1400184b0
mov r13, qword [rbp + 0x67]
jmp 0x14001857e
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 0x140018520
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 0x14001857e
lea edx, [rdi + 0x10]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x14001857e
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 0x1400185ab
test r15, r15
je 0x1400185ea
cmp dword [rbp + 0x77], 0
mov rcx, r14
mov rdx, qword [rsp + 0x38]
je 0x1400185d1
mov r8, qword [rbp + 0x5f]
mov r9, r13
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
call fcn.140018640
jmp 0x1400185ea
mov rax, qword [rbp + 0x7f]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8, r12
mov qword [rsp + 0x20], r15
call fcn.140018ea0
cmp dword [r14], 0
mov rdi, qword [rsp + 0xf0]
jne 0x14001860f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14001860f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14001861d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x14001862b
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