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

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
xor edi, edi
mov r15, r9
mov rsi, r8
lea r13d, [rdi + 0x10]
test ecx, ecx
je 0x1400b7e0f
mov edx, dword [r8]
test dl, 0xf
jne 0x1400b7f25
xor ebx, ebx
lea edi, [r13 - 0xf]
test edx, edx
je 0x1400b7e07
test edi, edi
je 0x1400b7f72
mov rcx, qword [rsi + 8]
lea r8, [rbp - 0x59]
mov r14d, ebx
lea rdx, [rbp + 0x6f]
add rcx, r14
call qword [sym.imp.ADVAPI32.dll_SystemFunction026]
mov edi, eax
not edi
shr edi, 0x1f
test edi, edi
je 0x1400b7df4
mov rax, qword [rsi + 8]
movups xmm0, xmmword [rbp - 0x59]
movdqu xmmword [rax + rbx], xmm0
jmp 0x1400b7e00
lea rcx, str.ERROR_kuhl_m_lsadump_dcshadow_encode_sensitive_value___RtlEncryptNtOwfPwdWithIndex
call fcn.14000bf2c
add ebx, r13d
cmp ebx, dword [rsi]
jb 0x1400b7dba
test edi, edi
je 0x1400b7f72
xor edi, edi
mov dword [rbp - 0x79], r13d
test r15, r15
mov dword [rbp - 0x75], r13d
lea rax, [rbp + 0xf]
lea r12, [0x1418ab5b8]
mov qword [rbp - 0x71], rax
mov eax, dword [rsi]
cmovne r12, r15
lea r13d, [rax + 0x14]
cmp qword [r12 + 8], rdi
je 0x1400b7f66
cmp dword [r12], edi
je 0x1400b7f66
test eax, eax
je 0x1400b7f5d
cmp qword [rsi + 8], rdi
je 0x1400b7f5d
mov edx, r13d
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x1400b7f72
mov r8d, dword [rsi]
lea rcx, [rax + 0x14]
mov rdx, qword [rsi + 8]
mov r14, rax
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsi]
lea r9, [r14 + 0x10]
lea rdx, [r14 + 0x14]
mov dword [rsp + 0x20], 4
mov ecx, 0x8000
call fcn.140003920
test eax, eax
je 0x1400b7f46
lea ebx, [rdi + 0x10]
mov rcx, r14
mov edx, ebx
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea rcx, [rbp - 0x49]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [r12]
lea rcx, [rbp - 0x49]
mov rdx, qword [r12 + 8]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, ebx
lea rcx, [rbp - 0x49]
mov rdx, r14
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x49]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea eax, [r13 - 0x10]
mov dword [rbp - 0x65], eax
lea rdx, [rbp - 0x79]
mov dword [rbp - 0x69], eax
lea rcx, [rbp - 0x69]
lea rax, [r14 + 0x10]
mov qword [rbp - 0x61], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x1400b7f33
mov r14, qword [rsi + 8]
lea edi, [rbx - 0xf]
mov qword [rsi + 8], r15
mov dword [rsi], r13d
jmp 0x1400b7f3f
lea rcx, str.ERROR_kuhl_m_lsadump_dcshadow_encode_sensitive_value___Unexpected_hash_len___u__n
call fcn.14000bf2c
jmp 0x1400b7f72
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
call fcn.14000bf2c
test r14, r14
je 0x1400b7f72
jmp 0x1400b7f52
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.14000bf2c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b7f72
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x1400b7f6d
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.14000bf2c
mov rbx, qword [rsp + 0x120]
mov eax, edi
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret