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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a65ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x77c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push 0x5b3030
call fcn.00415e70
lea eax, [ebp - 0x3c]
push eax
call fcn.0044d000
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call fcn.0041afa0
push eax
lea ecx, [ebp - 0x168]
call fcn.00415e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.004185a0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push 0x5b308c
call fcn.00415e70
lea edx, [ebp - 0x48]
push edx
call fcn.0044d000
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
call fcn.0041afa0
push eax
lea ecx, [ebp - 0x138]
call fcn.00415e70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.004185a0
push 0x104
lea ecx, [ebp - 0x388]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x1c]
push edx
push 0xf003f
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf0], esp
lea eax, [ebp - 0x168]
push eax
call fcn.00415d10
lea ecx, [ebp - 0x58]
push ecx
call fcn.0044cae0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x50]
call fcn.0041afa0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x58]
call fcn.004185a0
cmp dword [ebp - 0x5c], 0
jne 0x470afb
mov dword [ebp - 0x68], 0x200
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf4], esp
lea edx, [ebp - 0x138]
push edx
call fcn.00415d10
lea eax, [ebp - 0x74]
push eax
call fcn.0044cae0
add esp, 0x1c
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x64]
call fcn.0041afa0
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x788]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x74]
call fcn.004185a0
cmp dword [ebp - 0x18], 0
je 0x470a45
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x470a45
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf8], esp
push 0x5b30a4
call fcn.00415e70
lea edx, [ebp - 0x80]
push edx
call fcn.0044d000
add esp, 0x1c
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x7c]
call fcn.0041afa0
push eax
lea ecx, [ebp - 0x180]
call fcn.00415e70
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.004185a0
lea ecx, [ebp - 0x14]
call fcn.00414590
mov byte [ebp - 4], 9
mov dword [ebp - 0xfc], 0x18
push 0x5b30b0
lea ecx, [ebp - 0x150]
call fcn.00415e70
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x150]
push ecx
call fcn.0046ec90
add esp, 4
movzx edx, al
test edx, edx
jne 0x4708d6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x100], esp
push 0x5b30b4
call fcn.00415e70
lea eax, [ebp - 0x30]
push eax
call fcn.0044d000
add esp, 0x1c
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 0xb
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x108], esp
push str.app_param_changed
call fcn.00415e70
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0044d000
add esp, 0x1c
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 0xc
push 0x5b30e8
lea ecx, [ebp - 0x28]
call fcn.00414480
mov byte [ebp - 4], 0xd
push 0x5b30ec
lea ecx, [ebp - 0x24]
call fcn.00414480
mov byte [ebp - 4], 0xe
push 0x5b30f0
lea ecx, [ebp - 0x20]
call fcn.00414480
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x110], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00414340
lea eax, [ebp - 0xa0]
push eax
call fcn.0044c810
add esp, 8
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x94], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
lea eax, [ebp - 0x30]
push eax
call fcn.00414340
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0044c810
add esp, 8
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.00479480
add esp, 0x14
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x9c]
call fcn.004185a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xa0]
call fcn.004185a0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x20]
call fcn.004185a0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x24]
call fcn.004185a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
call fcn.004185a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.004185a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x30]
call fcn.004185a0
lea ecx, [ebp - 0x150]
call fcn.0042b100
mov dword [ebp - 0xac], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x118], esp
lea eax, [ebp - 0x180]
push eax
call fcn.00415d10
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0044cae0
add esp, 0x1c
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xa8]
call fcn.0041afa0
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
lea edx, [ebp - 0x388]
push edx
push str.__ws___ws__ws
lea eax, [ebp - 0x14]
push eax
call fcn.00422330
add esp, 0x14
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb4]
call fcn.004185a0
lea ecx, [ebp - 0x14]
call fcn.0041afa0
push eax
call fcn.0057aeca
add esp, 4
shl eax, 1
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x14]
call fcn.0041afa0
mov dword [ebp - 0xc4], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x11c], esp
lea edx, [ebp - 0x138]
push edx
call fcn.00415d10
lea eax, [ebp - 0xd0]
push eax
call fcn.0044cae0
add esp, 0x1c
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp - 0xbc]
call fcn.0041afa0
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
push 1
push 0
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0xd0]
call fcn.004185a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x150]
call fcn.00419200
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x14]
call fcn.004185a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x180]
call fcn.00419200
jmp 0x470ac7
cmp dword [ebp - 0x18], 0
jne 0x470ac7
movzx ecx, byte [ebp + 8]
test ecx, ecx
jne 0x470ac7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x120], esp
lea edx, [ebp - 0x138]
push edx
call fcn.00415d10
lea eax, [ebp - 0xe4]
push eax
call fcn.0044cae0
add esp, 0x1c
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp - 0xd8]
call fcn.0041afa0
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0xe4]
call fcn.004185a0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.00419200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.00419200
mov al, byte [ebp - 0xd]
jmp 0x470b23
mov byte [ebp - 0xe], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.00419200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.00419200
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret