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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x10], edx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
xor esi, esi
mov r12, r9
mov rdi, r8
lea r13d, [rsi + 0x10]
test ecx, ecx
je 0x1400b68fc
mov edx, dword [r8]
test dl, 0xf
jne 0x1400b68e8
xor ebx, ebx
lea esi, [r13 - 0xf]
test edx, edx
je 0x1400b68fc
test esi, esi
je 0x1400b6a4b
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x49]
mov r14d, ebx
lea rdx, [rbp + 0x6f]
add rcx, r14
call qword [sym.imp.ADVAPI32.dll_SystemFunction026]
xor esi, esi
test eax, eax
setns sil
test eax, eax
js 0x1400b68d3
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp - 0x49]
movdqu xmmword [rbx + rax], xmm0
jmp 0x1400b68df
lea rcx, str.ERROR_yvdbdwwplsADumP_dCShAdoW_encode_sensitive_value___RtlEncryptNtOwfPwdWithIndex
call fcn.14000bdb4
add ebx, r13d
cmp ebx, dword [rdi]
jb 0x1400b6898
jmp 0x1400b68f4
lea rcx, str.ERROR_yvdbdwwplsADumP_dCShAdoW_encode_sensitive_value___Unexpected_hash_len___u__n
call fcn.14000bdb4
test esi, esi
je 0x1400b6a4b
xor esi, esi
mov dword [rbp - 0x69], r13d
test r12, r12
mov dword [rbp - 0x65], r13d
lea rax, [rbp + 0x1f]
lea r15, [0x14015ba68]
mov qword [rbp - 0x61], rax
mov eax, dword [rdi]
cmovne r15, r12
lea r13d, [rax + 0x14]
cmp qword [r15 + 8], rsi
je 0x1400b6a3f
cmp dword [r15], esi
je 0x1400b6a3f
test eax, eax
je 0x1400b6a36
cmp qword [rdi + 8], rsi
je 0x1400b6a36
mov edx, r13d
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x1400b6a4b
mov r8d, dword [rdi]
lea rcx, [rax + 0x14]
mov rdx, qword [rdi + 8]
mov r12, rax
call fcn.1400c49c0
mov r8d, dword [rdi]
lea r9, [r12 + 0x10]
lea rdx, [r12 + 0x14]
mov dword [rsp + 0x20], 4
mov ecx, 0x8000
call fcn.14000396c
test eax, eax
je 0x1400b6a1a
lea ebx, [rsi + 0x10]
mov rcx, r12
mov edx, ebx
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [r15]
lea rcx, [rbp - 0x39]
mov rdx, qword [r15 + 8]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, ebx
lea rcx, [rbp - 0x39]
mov rdx, r12
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea eax, [r13 - 0x10]
mov dword [rbp - 0x55], eax
lea rdx, [rbp - 0x69]
mov dword [rbp - 0x59], eax
lea rcx, [rbp - 0x59]
lea rax, [r12 + 0x10]
mov qword [rbp - 0x51], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x1400b6a11
mov r12, qword [rdi + 8]
lea esi, [rbx - 0xf]
mov qword [rdi + 8], r14
mov dword [rdi], r13d
jmp 0x1400b6a26
lea rcx, str.ERROR_qmezdwwprpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
jmp 0x1400b6a21
lea rcx, str.ERROR_qmezdwwprpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.14000bdb4
test r12, r12
je 0x1400b6a4b
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b6a4b
lea rcx, str.ERROR_qmezdwwprpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x1400b6a46
lea rcx, str.ERROR_qmezdwwprpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.14000bdb4
lea r11, [rsp + 0xd0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret