Function at 0x457b84
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
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
inc edi
xor ebx, ebx
mov esi, edx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x457efa
mov eax, 0x404c44
test esi, esi
je 0x457bcf
mov eax, 0x4049d4
test ecx, ecx
jne 0x457bd8
mov ecx, 0x404a10
push edi
push eax
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea ecx, reloc.ADVAPI32.dll_TraceMessage
xor edx, edx
call fcn.00455c5a
test eax, eax
je 0x457eec
neg esi
sbb esi, esi
add esi, 0x26d9
push esi
call fcn.0043f8b3
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.00455afc
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
test eax, eax
je 0x457eec
push 0x41e9d8
push eax
jmp 0x457ec7
and dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
push 0x3a
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x457c55
xor ecx, ecx
lea esi, [eax + 2]
mov word [eax], cx
call fcn.00440984
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
push ebx
push 0x422d94
push 4
pop esi
call fcn.00440126
pop ecx
pop ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
push ebx
push dword [ebp - 0x424]
call fcn.0044d924
test eax, eax
je 0x457ec0
push ebx
push dword [ebp - 0x424]
mov esi, edi
call fcn.0044d83f
mov ebx, eax
push ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call fcn.0043f6bb
cmp ebx, edi
jb 0x457ec0
push esi
call fcn.0043f83d
lea eax, reloc.ADVAPI32.dll_TraceMessage
inc esi
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call fcn.00455afc
mov esi, eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
test esi, esi
je 0x457ea0
cmp dword [ebp + 0xc], 0
jne 0x457d1c
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffff0001
add eax, 0xffff
push eax
mov eax, ecx
shr eax, 1
not eax
and eax, edi
push eax
push esi
push 0
call fcn.0044328c
test eax, eax
jne 0x457d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x457d28
and eax, 0xffff
or eax, 0x80070000
jmp 0x457d28
push 0x403c14
mov eax, esi
call fcn.0044318a
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
push 0x422dbc
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x457e58
xor ecx, ecx
xor ebx, ebx
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x80070001
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
sete bl
test ebx, ebx
jne 0x457dda
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
push ecx
push 0x4017a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x457dbd
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push ebx
push 0x422dc8
push dword [ebp - 0x420]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457dad
mov ebx, edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x457dd8
push esi
push 0x422e44
push 4
pop esi
call fcn.00440126
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
pop ecx
pop ecx
jmp 0x457e8c
xor ecx, ecx
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ecx
push 0x20006
push ecx
push ecx
push ecx
push 0x4016a0
push 0x80000002
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xd2af9
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x457e36
push 4
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 4
push esi
push 0x422dec
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x420]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x422e04
push 4
pop esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xd2af8
call fcn.00440126
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
pop ecx
pop ecx
jmp 0x457e93
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test eax, eax
js 0x457e74
push esi
push 0x422e44
push 4
pop esi
call fcn.00440126
pop ecx
pop ecx
jmp 0x457e93
push eax
push esi
push 0x422e64
push 2
pop esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
call fcn.00440126
add esp, 0xc
and dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
push dword [ebp - 0x43c]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x457ec0
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp esi, ebx
jbe 0x457ca6
push 0x41e9d8
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x457c2c
push dword [ebp - 0x438]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
pop ecx
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test edi, edi
js 0x457efa
test ebx, ebx
jne 0x457efc
mov ebx, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 8