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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
xor r15d, r15d
mov r13, r9
mov rdi, r8
lea r14d, [r15 + 0x10]
mov esi, r15d
cmp ecx, r15d
je 0x1400bb595
mov edx, dword [r8]
test dl, 0xf
jne 0x1400bb580
lea esi, [r15 + 1]
mov ebx, r15d
cmp edx, r15d
jbe 0x1400bb595
cmp esi, r15d
je 0x1400bb6f6
mov rcx, qword [rdi + 8]
mov ebp, ebx
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x108]
add rcx, rbp
call sub.ADVAPI32.dll_SystemFunction026
mov esi, r15d
cmp eax, r15d
setge sil
cmp esi, r15d
je 0x1400bb56b
movdqu xmm0, xmmword [rsp + 0x50]
mov rax, qword [rdi + 8]
movdqu xmmword [rax + rbp], xmm0
jmp 0x1400bb577
lea rcx, str.ERROR_kuhl_m_lsadump_dcshadow_encode_sensitive_value___RtlEncryptNtOwfPwdWithIndex
call fcn.14000c020
add ebx, r14d
cmp ebx, dword [rdi]
jb 0x1400bb527
jmp 0x1400bb58c
lea rcx, str.ERROR_kuhl_m_lsadump_dcshadow_encode_sensitive_value___Unexpected_hash_len___u__n
call fcn.14000c020
cmp esi, r15d
je 0x1400bb6f6
lea rax, [rsp + 0xb8]
cmp r13, r15
lea r12, [0x14013b170]
mov qword [rsp + 0x48], rax
mov eax, dword [rdi]
cmovne r12, r13
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
mov esi, r15d
lea r14d, [rax + 0x14]
cmp qword [r12 + 8], r15
je 0x1400bb6ea
cmp dword [r12], r15d
je 0x1400bb6ea
cmp eax, r15d
je 0x1400bb6e1
cmp qword [rdi + 8], r15
je 0x1400bb6e1
mov edx, r14d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
cmp rax, r15
je 0x1400bb6f6
mov r8d, dword [rdi]
mov rdx, qword [rdi + 8]
lea rcx, [rax + 0x14]
mov rbp, rax
call sub.msvcrt.dll_memcpy
mov r8d, dword [rdi]
lea r15, [rbp + 0x10]
lea rdx, [rbp + 0x14]
mov ecx, 0x8000
mov r9, r15
mov dword [rsp + 0x20], 4
call fcn.140003970
test eax, eax
je 0x1400bb6c5
mov ebx, 0x10
mov rcx, rbp
mov edx, ebx
call sub.cryptdll.dll_CDGenerateRandomBits
lea rcx, [rsp + 0x60]
call sub.cryptdll.dll_MD5Init
mov r8d, dword [r12]
mov rdx, qword [r12 + 8]
lea rcx, [rsp + 0x60]
call sub.cryptdll.dll_MD5Update
lea rcx, [rsp + 0x60]
mov r8d, ebx
mov rdx, rbp
call sub.cryptdll.dll_MD5Update
lea rcx, [rsp + 0x60]
call sub.cryptdll.dll_MD5Final
lea r11d, [r14 - 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], r11d
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x38], r15
call sub.ADVAPI32.dll_SystemFunction032
test eax, eax
js 0x1400bb6bc
mov rbp, qword [rdi + 8]
mov dword [rdi], r14d
lea esi, [rbx - 0xf]
mov qword [rdi + 8], r13
jmp 0x1400bb6d1
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
jmp 0x1400bb6cc
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.14000c020
test rbp, rbp
je 0x1400bb6f6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400bb6f6
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x1400bb6f1
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.14000c020
lea r11, [rsp + 0xd0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret