Function at 0x1060053
Capabilities:
Impersonate user
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x838], edi
je 0x1060571
cmp ecx, edi
je 0x1060571
cmp esi, edi
je 0x1060571
push ebx
push ecx
push 0x100c2a8
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01034db1
add esp, 0x10
lea eax, [ebp - 0x838]
push eax
push 0x101
push edi
lea eax, [ebp - 0x20c]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc edi
test eax, eax
jne 0x1060169
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push 0x100c288
push dword [ebp - 0x838]
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x834], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1060150
cmp dword [ebp - 0x828], edi
jne 0x1060150
lea eax, [ebp - 0x20c]
push eax
push 0x100c254
push dword [ebp + 0x14]
push esi
call fcn.01034db1
xor ecx, ecx
add esp, 0x10
test eax, eax
setge cl
mov dword [ebp - 0x830], ecx
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x830], 0
jne 0x1060536
or dword [ebp - 0x834], 0xffffffff
lea eax, [ebp - 0x834]
push eax
push 0x2e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1060536
push 0x20
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
test esi, esi
pop ecx
je 0x106052a
lea eax, [esi + 4]
push eax
push 0x100c22c
mov dword [esi], edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
mov dword [esi + 0x10], 2
call edi
lea eax, [esi + 0x14]
push eax
push 0x100c208
push 0
mov dword [esi + 0xc], 2
call edi
xor eax, eax
push eax
push eax
push eax
push esi
push eax
mov dword [esi + 0x1c], 2
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x840]
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.01034cb3
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x860]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x860]
push eax
push dword [ebp - 0x834]
mov dword [ebp - 0x860], 0x20
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x1060507
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x100c1f0
push dword [ebp - 0x834]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x10602d7
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebp - 0x61c]
push 0x5c
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10602a0
lea eax, [ebp - 0x61c]
push 0x40
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10602a0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10602d7
jmp 0x10602ba
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x10602d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10602c7
push 0x57
pop eax
push eax
push 0x100c1c0
push 4
call fcn.0105e5ad
add esp, 0xc
push dword [ebp - 0x83c]
lea eax, [ebp - 0x20c]
push 0x100c148
push ebx
push eax
call fcn.01034db1
xor edi, edi
add esp, 0x10
inc edi
test eax, eax
jl 0x1060442
lea eax, [ebp - 0x838]
push eax
push edi
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1060442
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push 0x100c124
push dword [ebp - 0x838]
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x83c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1060429
cmp dword [ebp - 0x828], 2
je 0x1060374
cmp dword [ebp - 0x828], edi
jne 0x1060429
jmp 0x106039b
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x834]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x1060429
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x26fe
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10603f3
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1004478
push dword [ebp + 0x14]
push dword [ebp - 0x82c]
call fcn.01034db1
add esp, 0x14
test eax, eax
jl 0x10603f3
push dword [ebp - 0x82c]
call fcn.0105970f
test eax, eax
jne 0x1060423
lea eax, [ebp - 0x414]
push eax
push 0x100c0b0
push dword [ebp + 0x14]
push dword [ebp - 0x82c]
call fcn.01034db1
add esp, 0x10
test eax, eax
jl 0x1060429
push dword [ebp - 0x82c]
call fcn.0105970f
test eax, eax
je 0x1060429
mov dword [ebp - 0x830], edi
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x830], 0
jne 0x10604ec
lea eax, [ebp - 0x838]
push eax
push 0x101
push 0
push 0x100ab08
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10604ec
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push 0x100c288
push dword [ebp - 0x838]
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x83c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10604e0
cmp dword [ebp - 0x828], 2
je 0x106053f
cmp dword [ebp - 0x828], edi
jne 0x10604e0
lea eax, [ebp - 0x20c]
push eax
push 0x100c254
push dword [ebp + 0x14]
push dword [ebp - 0x82c]
call fcn.01034db1
xor ecx, ecx
add esp, 0x10
test eax, eax
setge cl
mov dword [ebp - 0x830], ecx
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x844], 0xffffffff
je 0x1060507
push dword [ebp - 0x844]
push dword [ebp - 0x834]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1060514
push 0x57
pop eax
push eax
push 0x100c08c
push 4
call fcn.0105e5ad
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 0x10
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x830]
pop ebx
jmp 0x1060573
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x834]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x10604e0
lea eax, [ebp - 0x414]
jmp 0x10604bc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 0x10