Function at 0x1400b2edc
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 0x1400b2f99
mov edx, dword [r8]
test dl, 0xf
jne 0x1400b2f84
lea esi, [r15 + 1]
mov ebx, r15d
cmp edx, r15d
jbe 0x1400b2f99
cmp esi, r15d
je 0x1400b30fa
mov rcx, qword [rdi + 8]
mov ebp, ebx
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x108]
add rcx, rbp
call sub.ADVAPI32.dll_SystemFunction024
mov esi, r15d
cmp eax, r15d
setge sil
cmp esi, r15d
je 0x1400b2f6f
movdqu xmm0, xmmword [rsp + 0x50]
mov rax, qword [rdi + 8]
movdqu xmmword [rax + rbp], xmm0
jmp 0x1400b2f7b
lea rcx, str.ERROR_kuhl_m_lsadump_dcshadow_encode_sensitive_value___RtlEncryptDES2blocks1DWORD
call fcn.14000a838
add ebx, r14d
cmp ebx, dword [rdi]
jb 0x1400b2f2b
jmp 0x1400b2f90
lea rcx, str.ERROR_kuhl_m_lsadump_dcshadow_encode_sensitive_value___Unexpected_hash_len___u__n
call fcn.14000a838
cmp esi, r15d
je 0x1400b30fa
lea rax, [rsp + 0xb8]
cmp r13, r15
lea r12, [0x140123d70]
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 0x1400b30ee
cmp dword [r12], r15d
je 0x1400b30ee
cmp eax, r15d
je 0x1400b30e5
cmp qword [rdi + 8], r15
je 0x1400b30e5
mov edx, r14d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
cmp rax, r15
je 0x1400b30fa
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.14000397c
test eax, eax
je 0x1400b30c9
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 0x1400b30c0
mov rbp, qword [rdi + 8]
mov dword [rdi], r14d
lea esi, [rbx - 0xf]
mov qword [rdi + 8], r13
jmp 0x1400b30d5
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptDecryptRC4_n
jmp 0x1400b30d0
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.14000a838
test rbp, rbp
je 0x1400b30fa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b30fa
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x1400b30f5
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.14000a838
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