Function at 0x1400746f4
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
mov rax, qword [0x1400ad008]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor esi, esi
mov dword [rsp + 0x30], edx
mov r13, r9
mov rdi, r8
test ecx, ecx
je 0x1400747a5
mov edx, dword [r8]
test dl, 0xf
jne 0x1400748bb
xor ebx, ebx
mov esi, 1
test edx, edx
je 0x1400747a5
test esi, esi
je 0x140074908
mov rcx, qword [rdi + 8]
lea r8, [rbp + 7]
mov r15d, ebx
lea rdx, [rsp + 0x30]
add rcx, r15
call qword [sym.imp.ADVAPI32.dll_SystemFunction026]
xor esi, esi
test eax, eax
setns sil
test eax, eax
js 0x14007478a
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 7]
add rcx, r15
mov r8d, 0x10
call fcn.140076150
jmp 0x140074796
lea rcx, str.ERROR_alibaba_orange_dcshadow_encode_sensitive_value___err
call fcn.140001514
add ebx, 0x10
cmp ebx, dword [rdi]
jb 0x140074745
test esi, esi
je 0x140074908
xor esi, esi
mov dword [rsp + 0x38], 0x10
test r13, r13
mov dword [rsp + 0x3c], 0x10
lea rax, [rbp - 0x11]
lea r12, [0x1400b1350]
mov qword [rsp + 0x40], rax
mov eax, dword [rdi]
cmovne r12, r13
lea r13d, [rax + 0x14]
cmp qword [r12 + 8], rsi
je 0x1400748fc
cmp dword [r12], esi
je 0x1400748fc
test eax, eax
je 0x1400748f3
cmp qword [rdi + 8], rsi
je 0x1400748f3
mov edx, r13d
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x140074908
mov r8d, dword [rdi]
lea rcx, [rax + 0x14]
mov rdx, qword [rdi + 8]
mov r14, rax
call fcn.140076150
mov r8d, dword [rdi]
lea r9, [r14 + 0x10]
lea rdx, [r14 + 0x14]
call fcn.140001160
test eax, eax
je 0x1400748dc
lea edx, [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea rcx, [rbp - 0x69]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [r12]
lea rcx, [rbp - 0x69]
mov rdx, qword [r12 + 8]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea r8d, [rsi + 0x10]
mov rdx, r14
lea rcx, [rbp - 0x69]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x69]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea eax, [r13 - 0x10]
mov dword [rbp - 0x7d], eax
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x48]
lea rax, [r14 + 0x10]
mov qword [rbp - 0x79], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x1400748c9
mov r14, qword [rdi + 8]
mov esi, 1
mov qword [rdi + 8], r15
mov dword [rdi], r13d
jmp 0x1400748d5
lea rcx, str.ERROR_alibaba_orange_dcshadow_encode_sensitive_value___err_n
call fcn.140001514
jmp 0x140074908
lea rcx, str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
call fcn.140001514
test r14, r14
je 0x140074908
jmp 0x1400748e8
lea rcx, str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.140001514
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140074908
lea rcx, str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x140074903
lea rcx, str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.140001514
mov eax, esi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400750d0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret