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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
xor r15d, r15d
lea r12, str.1.2.840.113556.1.4.90
mov ebx, r15d
mov rsi, r12
mov rdi, rdx
mov r14, rcx
mov rdx, qword [rsi]
lea r8, [rbp - 0x69]
mov eax, ebx
xor r9d, r9d
mov rcx, r14
lea r8, [r8 + rax*4]
call fcn.18000d50c
test eax, eax
je 0x18000d38e
inc ebx
add rsi, 8
cmp ebx, 8
jb 0x18000d12e
test rdi, rdi
je 0x18000d387
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi]
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x18000d341
mov r13d, r15d
cmp dword [rdi + 0x18], r15d
jbe 0x18000d341
mov eax, r13d
mov edx, r15d
lea r14, [rax + rax*2]
mov r8d, dword [rcx + r14*8]
lea rax, [rbp - 0x69]
cmp dword [rax], r8d
je 0x18000d1ab
inc edx
add rax, 4
cmp edx, 8
jb 0x18000d196
jmp 0x18000d32f
cmp qword [rcx + r14*8 + 0x10], r15
je 0x18000d32f
mov r12d, r15d
cmp dword [rcx + r14*8 + 8], r15d
jbe 0x18000d32f
mov rsi, qword [rcx + r14*8 + 0x10]
mov ebx, r12d
add rbx, rbx
cmp qword [rsi + rbx*8 + 8], r15
je 0x18000d31d
cmp qword [0x1800de040], r15
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x34], 0x10
mov qword [rsp + 0x38], r15
je 0x18000d379
cmp dword [0x1800de038], r15d
je 0x18000d379
cmp dword [rsi + rbx*8], 0x14
jb 0x18000d370
mov r15, qword [rsi + rbx*8 + 8]
test r15, r15
je 0x18000d370
lea rcx, [rbp - 0x49]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [0x1800de038]
lea rcx, [rbp - 0x49]
mov rdx, qword [0x1800de040]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 0x10
lea rcx, [rbp - 0x49]
mov rdx, r15
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x49]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsi + rbx*8]
lea rcx, [rbp - 0x79]
sub eax, 0x10
mov dword [rbp - 0x75], eax
mov dword [rbp - 0x79], eax
lea rax, [r15 + 0x10]
mov qword [rbp - 0x71], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x18000d367
mov eax, dword [rsi + rbx*8]
lea rcx, [r15 + 0x14]
sub eax, 0x14
mov qword [rbp + 0x7f], rcx
mov rdx, rcx
mov dword [rbp + 0x77], eax
mov r8d, eax
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x6f]
mov ecx, 0x8000
call fcn.180002e9c
test eax, eax
je 0x18000d35e
mov edx, dword [rbp + 0x6f]
cmp edx, dword [r15 + 0x10]
jne 0x18000d34c
mov rax, qword [rsi + rbx*8 + 8]
mov ecx, 0x40
mov r15d, dword [rbp + 0x77]
mov edx, r15d
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi + rbx*8 + 8], rax
test rax, rax
je 0x18000d3a0
mov rdx, qword [rbp + 0x7f]
mov r8d, r15d
mov rcx, rax
call fcn.180071560
mov rcx, qword [rsp + 0x40]
mov dword [rsi + rbx*8], r15d
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r15d, r15d
mov rcx, qword [rdi + 0x20]
inc r12d
cmp r12d, dword [rcx + r14*8 + 8]
jb 0x18000d1c4
inc r13d
cmp r13d, dword [rdi + 0x18]
jb 0x18000d184
mov rax, qword [rsp + 0x48]
mov rdi, rax
test rax, rax
jmp 0x18000d15c
mov r8d, dword [r15 + 0x10]
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.1800090bc
jmp 0x18000d3a0
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x18000d380
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlEncryptDecryptRC4_n
jmp 0x18000d380
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x18000d380
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.1800090bc
jmp 0x18000d3a0
mov eax, 1
jmp 0x18000d3a2
mov edx, ebx
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply___Unable_to_MakeAttid_for__S_n
mov rdx, qword [r12 + rdx*8]
call fcn.1800090bc
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