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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
cmp dword [ebp + 0xc], ebx
je 0x4534d5
test eax, eax
je 0x4534d5
test esi, esi
je 0x4534d5
push eax
push 0x421790
mov eax, 0x208
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c99c
pop ecx
pop ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x101
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x453137
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
push 0x421818
push dword [ebp - 0x62c]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x453123
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x453123
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x421834
mov eax, 0x208
mov ecx, esi
call fcn.0042c99c
pop ecx
test eax, eax
pop ecx
setns bl
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4534d1
or dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xffffffff
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x2e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4534d1
push 0x20
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
test edi, edi
je 0x4534c5
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [edi + 4]
push eax
push 0x421868
push 0
mov dword [edi], 1
mov dword [edi + 0x10], 2
call esi
lea eax, [edi + 0x14]
push eax
push 0x421890
push 0
mov dword [edi + 0xc], 2
call esi
xor eax, eax
push eax
push eax
push eax
push edi
push eax
mov dword [edi + 0x1c], 2
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [ebp + 0xc]
mov eax, 0x208
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8be
push 8
pop ecx
xor eax, eax
lea edi, reloc.ADVAPI32.dll_TraceMessage
rep stosd dword es:[edi], eax
mov eax, esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x628]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x20
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x45349b
mov edi, dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
push 0x104
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x4218b4
push dword [ebp - 0x628]
call edi
test eax, eax
je 0x4532aa
mov eax, esi
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
push 0x5c
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x453273
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x40
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x453273
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4532aa
jmp 0x45328d
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x4532aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45329a
push 0x57
pop eax
push eax
push 0x4218cc
push 4
pop esi
call fcn.00440126
pop ecx
pop ecx
push dword [ebp - 0x634]
mov esi, 0x208
push 0x421900
mov eax, esi
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c99c
pop ecx
pop ecx
test eax, eax
js 0x4533ad
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 1
push 0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4533ad
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
push 0x421978
push dword [ebp - 0x62c]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x453391
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 2
je 0x45336a
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x453391
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov eax, esi
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0x4219a0
mov ecx, esi
call fcn.0042c99c
xor ebx, ebx
pop ecx
test eax, eax
pop ecx
setns bl
jmp 0x453397
push 0x104
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x628]
call edi
test eax, eax
je 0x453391
lea eax, reloc.ADVAPI32.dll_TraceMessage
jmp 0x45334a
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x453480
jmp 0x4533b3
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x101
push 0
push 0x421a18
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x453480
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
push 0x421818
push dword [ebp - 0x62c]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x453474
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 2
je 0x453434
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x453474
lea eax, reloc.ADVAPI32.dll_TraceMessage
jmp 0x453459
push 0x104
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x628]
call edi
test eax, eax
je 0x453474
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x421834
mov eax, 0x208
mov ecx, esi
call fcn.0042c99c
xor ebx, ebx
test eax, eax
pop ecx
setns bl
pop ecx
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xffffffff
je 0x45349b
push dword [ebp - 0x63c]
push dword [ebp - 0x628]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4534a8
push 0x57
pop eax
push eax
push 0x421a9c
push 4
pop esi
call fcn.00440126
push dword [ebp - 0x638]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
add esp, 0xc
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4534d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 8