Function at 0x472660
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8d80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e5c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4726b6
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
call fcn.00423f8a
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00471f80
jmp 0x4726c2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00460200
add esp, 4
test eax, eax
je 0x4729b4
push 1
push 0
push 0
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ebx
call fcn.0048f565
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4726f6
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.UserId
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x4727f2
mov edx, ecx
movzx esi, dx
push esi
call fcn.00497482
mov edi, eax
test edi, edi
je 0x47280c
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47280c
push esi
push eax
push edi
call fcn.00421708
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47280c
mov eax, dword [ebx]
movzx edi, word [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x47277f
push edi
mov ecx, ebx
call fcn.00421527
movzx eax, word [esi]
mov edx, dword [ebx]
add esi, 2
mov dword [ebp - 0x10], edx
cmp eax, 0xffffffff
jne 0x472799
push esi
call fcn.0049db0a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [edi + edi]
push esi
push ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0049d600
add esp, 0x10
cmp eax, 0x50
ja case.0x4727bc.1
movzx edx, byte [eax + 0x472a00]
jmp dword [edx*4 + 0x4729f0]
call fcn.0048facd
call fcn.0048fb05
test edi, edi
jl 0x4727e8
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x4727e8
mov edx, dword [ebp - 0x14]
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47280c
push 0x80070057
call fcn.00421000
push str.UserId
call fcn.0049db0a
add esp, 4
push eax
push str.UserId
mov ecx, ebx
call fcn.00423f19
push ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], esp
push ecx
push str.SoftwareCameyoUserInfo_s
push eax
call fcn.00461d60
add esp, 0xc
push SysReAllocStringLen
mov ebx, 0x4eaa20
mov byte [ebp - 4], 0
call fcn.00462c50
add esp, 0x18
test eax, eax
je 0x47297c
push 1
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.UserProfile
mov ebx, 0x4eaa24
call fcn.00423442
push ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov edx, esp
mov dword [ebp - 0x18], esp
push eax
push str.SoftwareCameyoUserInfo_s
push edx
call fcn.00461d60
add esp, 0xc
push SysReAllocStringLen
mov byte [ebp - 4], 0
call fcn.00462c50
add esp, 0x18
test eax, eax
je 0x47297c
push str._none_
lea ecx, [ebp + 0xc]
call fcn.00423442
push 0
push 0
push 0
push ecx
mov bl, 4
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.AppData
lea esi, [ebp + 0xc]
call fcn.00423442
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x4eaa20
push ecx
call fcn.00423691
add esp, 0xc
mov byte [ebp - 4], bl
push SysReAllocStringLen
mov ebx, esi
call fcn.00462c50
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4eaa24]
add esp, 0x14
mov edx, esp
mov dword [ebp - 0x1c], esp
push eax
mov eax, dword [0x4eaa20]
push ecx
push eax
push str.___UserInfo:_UserID_s__UserProfile_s._RegTest:__s
push edx
call fcn.00461d60
add esp, 0x14
call fcn.00471f10
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47293f
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 0x472965
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
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.DllMain:_UserInfo:_failed_reading_UserId___UserProfile_from_registry_
push ecx
call fcn.00461d60
add esp, 8
call fcn.00471f10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4729ce
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 0x4729da
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