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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0x118], 0
je 0x14001cfa3
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x50], rax
jmp 0x14001cfaf
lea rax, [0x1401dd5f8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x78], 0x10
mov dword [rsp + 0x7c], 0x10
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], 0
je 0x14001d1da
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0
je 0x14001d1da
mov rax, qword [rsp + 0x110]
cmp dword [rax], 0x14
jb 0x14001d1cc
mov rax, qword [rsp + 0x110]
cmp qword [rax + 8], 0
je 0x14001d1cc
lea rcx, [rsp + 0x90]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x90]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov rax, qword [rsp + 0x38]
mov r8d, 0x10
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rsp + 0x90]
call qword [sym.imp.cryptdll.dll_MD5Final]
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
sub eax, 0x10
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x38]
add rax, 0x10
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
jl 0x14001d1be
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
sub eax, 0x14
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
add rax, 0x14
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov ecx, 0x8000
call fcn.1400064b0
test eax, eax
je 0x14001d1b0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x40], eax
jne 0x14001d195
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call fcn.14001bbb0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
cmp qword [rsp + 0x58], 0
je 0x14001d193
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, 0x14
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 8]
call fcn.140161160
mov rax, qword [rsp + 0x110]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x70]
call fcn.14000bfd0
jmp 0x14001d1ae
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 0x10]
mov edx, dword [rsp + 0x40]
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.140013fd0
jmp 0x14001d1bc
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
call fcn.140013fd0
jmp 0x14001d1ca
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlDecryptData2_n
call fcn.140013fd0
jmp 0x14001d1d8
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
call fcn.140013fd0
jmp 0x14001d1e6
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.140013fd0
mov eax, dword [rsp + 0x44]
add rsp, 0x108
ret