Function at 0x18005ba38
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, 0xf0
xor ebx, ebx
mov eax, 0x30
mov r14, r9
mov dword [rsp + 0x60], eax
mov dword [rbp - 0x7d], eax
lea rax, [rbp - 9]
mov qword [rbp - 0x69], rax
lea rax, [rsp + 0x30]
lea r8, str.Policy
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r12, rdx
mov r13, rcx
mov qword [rbp - 0x79], rbx
mov dword [rbp - 0x71], reloc.WLDAP32.dll_Ordinal_16
mov dword [rsp + 0x20], 0x20019
mov dword [rbp - 0x6d], reloc.WLDAP32.dll_Ordinal_16
mov edi, ebx
mov esi, ebx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
call fcn.18000aabc
test eax, eax
je 0x18005be26
lea rcx, [0x1800964e8]
call fcn.180008f6c
mov rdx, qword [rsp + 0x30]
lea r9, str.Local
lea r8, [0x1800b2a6c]
mov rcx, r13
call fcn.18005b8ec
mov rdx, qword [rsp + 0x30]
lea r9, str.Domain
lea r8, [0x1800b2a74]
mov rcx, r13
call fcn.18005b8ec
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r8, str.PolDnDDN
xor r9d, r9d
mov rcx, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.18000b61c
test eax, eax
je 0x18005bb71
mov rbx, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, str.Domain_FQDN_:__wZ_n
movzx eax, word [rbx]
mov word [rsp + 0x48], ax
movzx eax, word [rbx + 2]
mov word [rsp + 0x4a], ax
mov eax, dword [rbx + 4]
add rax, rbx
mov qword [rsp + 0x50], rax
call fcn.180008f6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
lea r8, str.PolRevision
xor r9d, r9d
mov rcx, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.18000b61c
test eax, eax
je 0x18005bdfd
mov r15, qword [rsp + 0x58]
lea rcx, str._nPolicy_subsystem_is_:__hu._hu_n
movzx r8d, word [r15]
movzx edx, word [r15 + 2]
call fcn.180008f6c
cmp word [r15], 9
mov rdx, qword [rsp + 0x30]
lea rax, str.PolEKList
lea r8, str.PolSecretEncryptionKey
mov rcx, r13
cmova r8, rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.18000b61c
test eax, eax
je 0x18005bdac
cmp word [r15], 9
jbe 0x18005bceb
mov r12, qword [rsp + 0x40]
mov r9, qword [rbp + 0x6f]
mov edx, dword [rsp + 0x38]
mov rcx, r12
xor r8d, r8d
call fcn.18005cb08
test eax, eax
je 0x18005bd9f
mov edx, dword [r12 + 0x3c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18005bd9f
mov r8d, dword [r12 + 0x3c]
lea rdx, [r12 + 0x4c]
mov rcx, rax
call fcn.180076230
mov edx, dword [rdi + 0x18]
lea rcx, str.LSA_Key_s__:__u__default
call fcn.180008f6c
lea rcx, [rdi + 4]
call fcn.18000e6f4
lea rcx, [0x1800964e8]
call fcn.180008f6c
mov r14d, ebx
cmp dword [rdi + 0x18], ebx
jbe 0x18005bd9b
mov r15d, ebx
mov eax, r15d
lea rcx, str.____02u_
mov edx, r14d
lea rbx, [rax + rdi + 0x1c]
call fcn.180008f6c
mov rcx, rbx
call fcn.18000e6f4
lea rcx, [0x1800b2bb4]
call fcn.180008f6c
mov edx, dword [rbx + 0x14]
lea rcx, [rbx + 0x18]
xor r8d, r8d
call fcn.18000e574
lea rcx, [0x1800964e8]
call fcn.180008f6c
mov eax, dword [rbx + 0x14]
inc r14d
lea r15d, [r15 + rax + 0x18]
cmp r14d, dword [rdi + 0x18]
jb 0x18005bc88
mov r15, qword [rsp + 0x58]
xor ebx, ebx
jmp 0x18005bd9b
lea rcx, [rbp - 0x61]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov rdx, qword [rbp + 0x6f]
lea rcx, [rbp - 0x61]
mov r8d, reloc.WLDAP32.dll_Ordinal_16
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r12, qword [rsp + 0x40]
mov ebx, 0x3e8
lea rdx, [r12 + 0x3c]
lea rcx, [rbp - 0x61]
mov r8d, reloc.WLDAP32.dll_Ordinal_16
call qword [sym.imp.cryptdll.dll_MD5Update]
dec rbx
jne 0x18005bd13
lea rcx, [rbp - 0x61]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea r11, [r12 + 0xc]
lea rdx, [rbp - 0x71]
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x79], r11
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x18005bd9b
lea r14d, [rbx + 0x10]
lea ecx, [rbx + 0x40]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18005bd9b
movups xmm0, xmmword [r12 + 0x1c]
lea rcx, [0x1800b2bb8]
movdqu xmmword [rax], xmm0
call fcn.180008f6c
xor r8d, r8d
mov edx, r14d
mov rcx, rsi
call fcn.18000e574
lea rcx, [0x1800964e8]
call fcn.180008f6c
mov r14, qword [rbp + 0x67]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rbp + 0x57]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
jne 0x18005bdbf
test rsi, rsi
je 0x18005bdfd
mov rdx, qword [rsp + 0x30]
mov rcx, r13
cmp dword [rbp + 0x77], ebx
je 0x18005bde4
mov r8, qword [rbp + 0x5f]
mov r9, r14
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
call fcn.18005be44
jmp 0x18005bdfd
mov rax, qword [rbp + 0x7f]
mov r9, rdi
mov r8, r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.18005c134
mov rdx, qword [rsp + 0x30]
mov rcx, r13
call fcn.18000b5dc
test rdi, rdi
je 0x18005be18
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x18005be26
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + reloc.WLDAP32.dll_Ordinal_304]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret