Function at 0x1800110dc
Capabilities:
Encrypt data using rc4 via systemfunction033

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
lea r12, str.1.2.840.113556.1.4.90
mov rbx, rdx
mov rsi, r12
mov r15, rcx
xor edi, edi
mov rdx, qword [rsi]
lea r8, [rbp - 0x71]
lea r8, [r8 + rdi*4]
xor r9d, r9d
mov rcx, r15
call fcn.1800114d4
test eax, eax
je 0x180011363
inc edi
add rsi, 8
cmp edi, 8
jb 0x18001110a
test rbx, rbx
je 0x18001135c
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
test rcx, rcx
je 0x180011317
xor r12d, r12d
cmp dword [rbx + 0x18], r12d
jbe 0x180011317
lea r14, [r12 + r12*2]
xor edx, edx
mov r8d, dword [rcx + r14*8]
lea rax, [rbp - 0x71]
cmp dword [rax], r8d
je 0x180011181
inc edx
add rax, 4
cmp edx, 8
jb 0x18001116c
jmp 0x180011305
cmp qword [rcx + r14*8 + 0x10], 0
je 0x180011305
xor r15d, r15d
cmp dword [rcx + r14*8 + 8], r15d
jbe 0x180011305
mov rsi, qword [rcx + r14*8 + 0x10]
mov edi, r15d
add rdi, rdi
mov r13, qword [rsi + rdi*8 + 8]
mov qword [rbp + 0x77], r13
test r13, r13
je 0x1800112f3
cmp qword [0x18015f960], 0
lea rax, [rbp + 0xf]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x10
mov dword [rsp + 0x3c], 0x10
je 0x18001134e
cmp dword [0x18015f958], 0
je 0x18001134e
cmp dword [rsi + rdi*8], 0x14
jb 0x180011345
lea rcx, [rbp - 0x49]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [0x18015f958]
lea rcx, [rbp - 0x49]
mov rdx, qword [0x18015f960]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 0x10
lea rcx, [rbp - 0x49]
mov rdx, r13
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x49]
call qword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [rsi + rdi*8]
lea rdx, [rsp + 0x38]
sub eax, 0x10
lea rcx, [rsp + 0x48]
mov dword [rbp - 0x7d], eax
mov dword [rsp + 0x48], eax
lea rax, [r13 + 0x10]
mov qword [rbp + 0x7f], rax
mov qword [rbp - 0x79], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
js 0x18001133c
mov r13d, dword [rsi + rdi*8]
lea r9, [rbp + 0x6f]
mov rax, qword [rbp + 0x77]
sub r13d, 0x14
add rax, 0x14
mov dword [rsp + 0x20], 4
mov r8d, r13d
mov qword [rbp + 0x77], rax
mov rdx, rax
mov ecx, 0x8000
call fcn.180003858
test eax, eax
je 0x180011333
mov rax, qword [rbp + 0x7f]
mov edx, dword [rbp + 0x6f]
cmp edx, dword [rax]
jne 0x180011322
mov rax, qword [rsi + rdi*8 + 8]
mov ecx, 0x40
mov edx, r13d
mov qword [rbp + 0x7f], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi + rdi*8 + 8], rax
test rax, rax
je 0x180011373
mov rdx, qword [rbp + 0x77]
mov rcx, rax
mov r8d, r13d
call fcn.1800c58e0
mov rax, qword [rbp + 0x7f]
mov dword [rsi + rdi*8], r13d
test rax, rax
je 0x1800112f3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbx + 0x20]
inc r15d
cmp r15d, dword [rcx + r14*8 + 8]
jb 0x18001119b
inc r12d
cmp r12d, dword [rbx + 0x18]
jb 0x18001115e
mov rax, qword [rsp + 0x30]
mov rbx, rax
test rax, rax
jmp 0x180011136
mov r8d, dword [rax]
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.18000bdb8
jmp 0x180011373
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x180011355
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlDecryptData2_n
jmp 0x180011355
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x180011355
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.18000bdb8
jmp 0x180011373
mov eax, 1
jmp 0x180011375
mov rdx, qword [r12 + rdi*8]
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply___Unable_to_MakeAttid_for__S_n
call fcn.18000bdb8
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