Function at 0x443a86
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x10
pop eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
mov esi, 0x2800
push dword [ebp + 0x14]
lea ebx, [ebp - 0x30]
push str.SecretsNL_KMCurrVal
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call fcn.0044400b
add esp, 0x18
test eax, eax
je 0x443f5b
mov eax, dword [ebp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x443ae4
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 0x20006
jmp 0x443ae6
xor eax, eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
or eax, 0x20019
push eax
push edi
push str.Cache
push dword [ebp + 0x10]
push ebx
call fcn.00408107
add esp, 0x18
test eax, eax
je 0x443f52
cmp dword [ebp + 0x14], edi
je 0x443b75
push 0x45d6e4
call fcn.00407017
pop ecx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
push str.NL_IterationCount
push dword [ebp - 8]
call fcn.00408521
add esp, 0x10
test eax, eax
je 0x443b6a
mov ecx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jbe 0x443b49
and eax, 0xfffffc00
jmp 0x443b4c
shl eax, 0xa
push eax
push ecx
push str._NL_IterationCount_is__u___u_real_iteration_s__n
mov dword [ebp - 0x14], eax
call fcn.00407017
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x443b75
push str._DCC1_mode___n
jmp 0x443b6f
push str._Iteration_is_set_to_default__10240__n
call fcn.00407017
pop ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
xor eax, eax
mov edx, ebx
call fcn.00408300
add esp, 0x1c
test eax, eax
je 0x443f46
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax + eax + 2]
push eax
push 0x40
call esi
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x443f46
push dword [ebp - 0x20]
push 0x40
call esi
mov esi, eax
cmp esi, edi
je 0x443f3d
mov dword [ebp - 4], edi
cmp dword [ebp - 0x28], edi
jbe 0x443f36
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004087a3
add esp, 0x1c
test eax, eax
je 0x443f27
mov edi, dword [sym.imp.msvcrt.dll__wcsnicmp]
push 0xa
push str.NL_Control
push ebx
call edi
add esp, 0xc
test eax, eax
je 0x443f27
push 0x11
push str.NL_IterationCount
push ebx
call edi
add esp, 0xc
test eax, eax
je 0x443f27
test byte [esi + 0x30], 1
je 0x443f27
push ebx
push str._n__s__
call fcn.00407017
lea eax, [esi + 0x20]
push eax
call fcn.0040a6b0
mov eax, dword [esi + 0x10]
add esp, 0xc
push eax
push eax
push str.__nRID_______:__08x___u__n
call fcn.00407017
mov ebx, dword [ebp - 0x18]
add esp, 0xc
add ebx, 0xffffffa0
cmp dword [ebp + 0x14], 0
lea eax, [esi + 0x40]
je 0x443dd7
push 0
push eax
push dword [ebp - 0xc]
lea edi, [esi + 0x60]
push ebx
push edi
call fcn.00403128
add esp, 0x14
test eax, eax
je 0x443f27
push 0x32
mov eax, esi
call fcn.00443f63
cmp dword [ebp + 0x1c], 0
mov ax, word [esi]
lea edx, [esi + 0xa8]
pop ecx
mov word [ebp - 0x3a], ax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x38], edx
je 0x443f27
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x443f27
movzx eax, ax
shr eax, 1
push eax
push edx
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x443f27
push str.__User_cache_replace_mode__2___n
call fcn.00407017
pop ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0x1c]
add eax, 4
push eax
push edi
call fcn.00403502
add esp, 0x10
test eax, eax
jl 0x443f27
push str.__MsCacheV2_:
call fcn.00407017
pop ecx
push 0x10
push edi
xor eax, eax
call fcn.0040a596
push 0x45d6e4
call fcn.00407017
add esp, 0xc
push 0x10
lea eax, [esi + 0x50]
push eax
push ebx
push edi
push 0x10
push dword [ebp - 0xc]
mov eax, 0x8004
call fcn.00402bdb
add esp, 0x18
test eax, eax
je 0x443f27
push str.__Checksum__:
call fcn.00407017
pop ecx
lea eax, [esi + 0x50]
push 0x10
push eax
xor eax, eax
call fcn.0040a596
push 0x45d6e4
call fcn.00407017
add esp, 0xc
push 1
lea eax, [esi + 0x40]
push eax
push dword [ebp - 0xc]
push ebx
push edi
call fcn.00403128
add esp, 0x14
test eax, eax
je 0x443f27
push dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call fcn.004085c9
add esp, 0x14
test eax, eax
je 0x443dc6
push str.__OK__n
call fcn.00407017
jmp 0x443f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_registry_RegSetValueEx__0x_08x__n
jmp 0x443f20
push 0x10
push dword [ebp - 0x40]
push 0x10
push eax
push dword [ebp - 0x30]
mov eax, 0x8003
push dword [ebp - 0xc]
call fcn.00402bdb
add esp, 0x18
test eax, eax
je 0x443f14
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
lea edi, [esi + 0x60]
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], edi
call sub.ADVAPI32.dll_SystemFunction032
test eax, eax
jl 0x443f0c
push 0x31
mov eax, esi
call fcn.00443f63
cmp dword [ebp + 0x1c], 0
mov ax, word [esi]
lea edx, [esi + 0xa8]
pop ecx
mov word [ebp - 0x3a], ax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x38], edx
je 0x443f27
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x443f27
movzx eax, ax
shr eax, 1
push eax
push edx
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x443f27
push str.__User_cache_replace_mode__1___n
call fcn.00407017
pop ecx
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0x1c]
add eax, 4
push eax
push edi
call fcn.00403502
add esp, 0x10
test eax, eax
jl 0x443f27
push str.__MsCacheV1_:
call fcn.00407017
pop ecx
push 0x10
push edi
xor eax, eax
call fcn.0040a596
push 0x45d6e4
call fcn.00407017
add esp, 0xc
push 0x10
lea eax, [esi + 0x50]
push eax
push ebx
push edi
push 0x10
push dword [ebp - 0x40]
mov eax, 0x8003
call fcn.00402bdb
add esp, 0x18
test eax, eax
je 0x443f27
push str.__Checksum__:
call fcn.00407017
pop ecx
lea eax, [esi + 0x50]
push 0x10
push eax
xor eax, eax
call fcn.0040a596
push 0x45d6e4
call fcn.00407017
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.ADVAPI32.dll_SystemFunction032
test eax, eax
jge 0x443d9b
push eax
push str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___RtlEncryptDecryptRC4_:_0x_08x_n
jmp 0x443f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_crypto_hmac__0x_08x__n
call fcn.00407017
pop ecx
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
jb 0x443bd8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00408964
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret