Function at 0x1400a3074
Capabilities:
Encrypt data using rc4 via systemfunction032
Encrypt data using rc4 via systemfunction033

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
lea rax, [rbp + 0x10]
mov dword [rbp - 0x48], 0x10
mov qword [rbp - 0x40], rax
mov rbx, r8
lea rax, [rbp - 0x4c]
mov dword [rbp - 0x44], 0x10
mov qword [rsp + 0x30], rax
lea r8, str.SecretsNL_KMCurrVal
lea rax, [rbp - 0x68]
mov r14d, 0x2800
mov qword [rsp + 0x28], rax
mov r15, r9
mov rax, qword [rbp + 0x80]
mov rsi, rcx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x6c], r14d
call fcn.1400a3cc0
test eax, eax
je 0x1400a357a
mov rdi, qword [rbp + 0x88]
test rdi, rdi
je 0x1400a3110
mov rax, qword [rdi]
neg rax
sbb ecx, ecx
and ecx, 0x20006
jmp 0x1400a3112
xor ecx, ecx
or ecx, 0x20019
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea r8, str.Cache
mov dword [rsp + 0x20], ecx
mov rdx, rbx
mov rcx, rsi
call fcn.140010d00
test eax, eax
je 0x1400a3570
test r15, r15
je 0x1400a31cc
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000d9f0
mov rdx, qword [rbp - 0x80]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
lea r8, str.NL_IterationCount
lea rax, [rsp + 0x70]
mov rcx, rsi
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call fcn.140011264
test eax, eax
je 0x1400a31c0
mov edx, dword [rsp + 0x70]
mov ecx, edx
and ecx, 0xfffffc00
mov eax, edx
shl eax, 0xa
cmp edx, r14d
cmova eax, ecx
lea rcx, str._NL_IterationCount_is__u___u_real_iteration_s__n
mov r8d, eax
mov dword [rbp - 0x6c], eax
mov r14d, eax
call fcn.14000d9f0
cmp dword [rsp + 0x70], 0
jne 0x1400a31cc
lea rcx, str._DCC1_mode___n
jmp 0x1400a31c7
lea rcx, str._Iteration_is_set_to_default__10240__n
call fcn.14000d9f0
mov rdx, qword [rbp - 0x80]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rcx, rsi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
call fcn.140010f88
test eax, eax
je 0x1400a3564
mov eax, dword [rsp + 0x78]
mov ebx, 0x40
inc eax
mov ecx, ebx
mov dword [rsp + 0x78], eax
lea edx, [rax + 1]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x1400a3564
mov edx, dword [rbp - 0x78]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400a355b
xor ecx, ecx
mov dword [rsp + 0x70], ecx
cmp dword [rbp - 0x70], ecx
jbe 0x1400a3552
mov eax, dword [rsp + 0x78]
mov r8d, ecx
mov rdx, qword [rbp - 0x80]
mov r9, r15
mov dword [rbp - 0x50], eax
mov rcx, rsi
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x74], eax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400115d4
test eax, eax
je 0x1400a353b
mov r8d, 0xa
lea rdx, str.NL_Control
mov rcx, r15
call fcn.140105548
test eax, eax
je 0x1400a353b
mov r8d, 0x11
lea rdx, str.NL_IterationCount
mov rcx, r15
call fcn.140105548
test eax, eax
je 0x1400a353b
test byte [rbx + 0x30], 1
je 0x1400a353b
mov rdx, r15
lea rcx, str._n__s__
call fcn.14000d9f0
lea rcx, [rbx + 0x20]
call fcn.1400166a0
mov edx, dword [rbx + 0x10]
lea rcx, str.__nRID_______:__08x___u__n
mov r8d, edx
call fcn.14000d9f0
mov r12d, dword [rsp + 0x74]
lea r13, [rbx + 0x40]
add r12d, 0xffffffa0
cmp qword [rbp + 0x78], 0
je 0x1400a359a
and dword [rsp + 0x30], 0
lea rsi, [rbx + 0x60]
mov r9, qword [rbp - 0x68]
mov rdx, rsi
mov r8d, r12d
mov qword [rsp + 0x28], r13
call fcn.140005214
test eax, eax
je 0x1400a3537
mov dl, 0x32
mov rcx, rbx
call fcn.1400a37a0
movzx eax, word [rbx]
lea r9, [rbx + 0xa8]
mov r8, qword [rdi + 0x30]
mov word [rbp - 0x5e], ax
mov word [rbp - 0x60], ax
mov qword [rbp - 0x58], r9
test r8, r8
je 0x1400a33a1
mov edx, dword [rbx + 0x84]
test edx, edx
je 0x1400a33a1
mov r9d, dword [rdi + 0x38]
mov eax, r12d
sub eax, edx
lea rcx, [rax + 0x60]
add rcx, rbx
call fcn.1400a3854
mov r9, qword [rbp - 0x58]
movzx eax, word [rbp - 0x60]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400a3537
movzx r8d, ax
mov rdx, r9
shr r8, 1
call fcn.140105548
test eax, eax
jne 0x1400a3537
lea rcx, str.__User_cache_replace_mode__2___n
call fcn.14000d9f0
cmp dword [rdi + 0x18], 0
je 0x1400a340d
mov r8b, 1
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlDowncaseUnicodeString]
test eax, eax
js 0x1400a3406
lea rcx, [rbp - 0x20]
mov r9d, eax
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 8]
mov rcx, rsi
mov r8d, r14d
call fcn.140005768
not eax
shr eax, 0x1f
jmp 0x1400a3429
cmp dword [rdi + 0x2c], 0
je 0x1400a3427
lea rdx, [rdi + 0x1c]
mov r8d, 0x10
mov rcx, rsi
call fcn.1400cac20
jmp 0x1400a3431
xor eax, eax
test eax, eax
je 0x1400a3523
lea rcx, str.__MsCacheV2_:
call fcn.14000d9f0
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x10]
call fcn.140016508
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000d9f0
mov rdx, qword [rbp - 0x68]
lea r14, [rbx + 0x50]
mov dword [rsp + 0x30], 0x10
mov r9, rsi
mov qword [rsp + 0x28], r14
mov r8d, 0x10
mov ecx, 0x8004
mov dword [rsp + 0x20], r12d
call fcn.1400048d8
test eax, eax
je 0x1400a3537
lea rcx, str.__Checksum__:
call fcn.14000d9f0
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 0x10]
call fcn.140016508
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000d9f0
mov r9, qword [rbp - 0x68]
mov r8d, r12d
mov rdx, rsi
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], r13
call fcn.140005214
mov rsi, qword [rbp + 0x60]
test eax, eax
je 0x1400a353b
mov eax, dword [rsp + 0x74]
mov r8, r15
mov rdx, qword [rbp - 0x80]
mov rcx, rsi
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x74]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.140011364
test eax, eax
je 0x1400a350d
lea rcx, str.__OK__n
call fcn.14000d9f0
jmp 0x1400a353b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_registry_RegSetValueEx__0x_08x__n
mov edx, eax
call fcn.14000d9f0
jmp 0x1400a353b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache______0x_08x__n
mov edx, eax
call fcn.14000d9f0
mov rsi, qword [rbp + 0x60]
mov ecx, dword [rsp + 0x70]
mov r14d, dword [rbp - 0x6c]
inc ecx
mov dword [rsp + 0x70], ecx
cmp ecx, dword [rbp - 0x70]
jb 0x1400a325d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rbp - 0x80]
mov rcx, rsi
call fcn.140011804
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x168]
mov eax, 1
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp - 0x40]
mov r9, r13
mov r8d, dword [rbp - 0x4c]
mov ecx, 0x8003
mov rdx, qword [rbp - 0x68]
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
call fcn.1400048d8
test eax, eax
je 0x1400a378d
lea rsi, [rbx + 0x60]
mov dword [rbp - 0x34], r12d
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x30], rsi
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x38], r12d
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
js 0x1400a3781
mov dl, 0x31
mov rcx, rbx
call fcn.1400a37a0
movzx eax, word [rbx]
lea rdx, [rbx + 0xa8]
mov word [rbp - 0x5e], ax
mov word [rbp - 0x60], ax
mov qword [rbp - 0x58], rdx
test rdi, rdi
je 0x1400a3537
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400a3537
movzx r8d, ax
shr r8, 1
call fcn.140105548
test eax, eax
jne 0x1400a3537
lea rcx, str.__User_cache_replace_mode__1___n
call fcn.14000d9f0
cmp dword [rdi + 0x18], 0
je 0x1400a3683
mov r8b, 1
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlDowncaseUnicodeString]
test eax, eax
js 0x1400a369b
lea rcx, [rbp - 0x10]
mov r9d, eax
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 8]
mov rcx, rsi
xor r8d, r8d
call fcn.140005768
jmp 0x1400a369b
cmp dword [rdi + 0x2c], 0
je 0x1400a369b
lea rdx, [rdi + 0x1c]
mov r8d, 0x10
mov rcx, rsi
call fcn.1400cac20
mov r8b, 1
lea rdx, [rbp - 0x60]
lea rcx, [rbp]
call qword [sym.imp.ntdll.dll_RtlDowncaseUnicodeString]
test eax, eax
js 0x1400a3537
lea rcx, [rbp]
mov r9d, eax
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 8]
mov rcx, rsi
xor r8d, r8d
call fcn.140005768
test eax, eax
js 0x1400a3537
lea rcx, str.__MsCacheV1_:
call fcn.14000d9f0
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x10]
call fcn.140016508
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000d9f0
mov rdx, qword [rbp - 0x40]
lea r14, [rbx + 0x50]
mov dword [rsp + 0x30], 0x10
mov r9, rsi
mov qword [rsp + 0x28], r14
mov r8d, 0x10
mov ecx, 0x8003
mov dword [rsp + 0x20], r12d
call fcn.1400048d8
test eax, eax
je 0x1400a3537
lea rcx, str.__Checksum__:
call fcn.14000d9f0
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 0x10]
call fcn.140016508
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000d9f0
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x1400a3775
mov rsi, qword [rbp + 0x60]
jmp 0x1400a34d8
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___RtlEncryptData2:_0x_08x_n
jmp 0x1400a3530
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___RtlEncryptDecryptRC4_:_0x_08x_n
jmp 0x1400a3530
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_crypto_hmac__0x_08x__n
jmp 0x1400a351a