Function at 0x47c870
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbe20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x522f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
mov eax, esp
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
push esi
push ecx
push str.UserInfoFromLocalMachine:_AppID_s__bAvoidAdvapi32_d
push eax
call fcn.0046aaf0
add esp, 0x10
call fcn.0047c330
add esp, 4
test esi, esi
je 0x47c8e7
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.00425484
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0047c3a0
jmp 0x47c8f3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00469470
add esp, 4
test eax, eax
je 0x47cb11
push 1
push 0
push 0
push ecx
mov esi, esp
mov ebx, 0x5290a0
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x18], esi
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47c92c
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.UserId
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x47c965
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b2260
test eax, eax
je 0x47c97f
push edi
push eax
mov ecx, esi
call fcn.00424e90
jmp 0x47c97f
push str.UserId
call fcn.004b8a1a
add esp, 4
push eax
push str.UserId
mov ecx, esi
call fcn.00425413
push ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
push str.SoftwareCameyoUserInfo_s
push eax
call fcn.0046aaf0
add esp, 0xc
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ebx
mov byte [ebp - 4], 0
call fcn.0046b5d0
add esp, 0x18
test eax, eax
je 0x47caea
push 1
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.UserProfile
mov edi, 0x5290a4
call fcn.004247f3
push ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov edx, esp
mov dword [ebp - 0x14], esp
push eax
push str.SoftwareCameyoUserInfo_s
push edx
call fcn.0046aaf0
add esp, 0xc
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 0
call fcn.0046b5d0
add esp, 0x18
test eax, eax
je 0x47caea
push str._none_
lea ecx, [ebp - 0x10]
call fcn.004247f3
push 0
push 0
push 0
push ecx
mov bl, 4
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.AppData
lea edi, [ebp - 0x10]
call fcn.004247f3
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x5290a0
push ecx
call fcn.00424a42
add esp, 0xc
push reloc.ACTIVEDS.dll_ADsGetObject
mov byte [ebp - 4], bl
call fcn.0046b5d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x5290a4]
add esp, 0x14
mov edx, esp
mov dword [ebp - 0x18], esp
push eax
mov eax, dword [0x5290a0]
push ecx
push eax
push str.___UserInfoFromLocalMachine:_UserID_s__UserProfile_s._RegTest:__s
push edx
call fcn.0046aaf0
add esp, 0x14
call fcn.0047c330
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47caad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47cad3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
push edx
push str.UserInfoFromLocalMachine:_failed_reading_UserId___UserProfile___s__from_registry__LE_d
push ecx
call fcn.0046aaf0
add esp, 0x10
call fcn.0047c330
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47cb37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret