Function at 0x457cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dafed
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x50b0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x88], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 3
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4581b9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [esi + 0x124]
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 7
jbe 0x457d63
mov edx, dword [edx]
test edx, edx
jne 0x457d6b
xor ecx, ecx
jmp 0x457d85
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457d70
sub ecx, esi
mov esi, dword [ebp - 0x88]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00409c60
mov edi, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x457db6
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00409bc0
mov edi, dword [ebp - 0x14]
push dword [ebp + 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x78], 0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 7
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x74], ax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00459500
mov byte [ebp - 4], 6
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4581c3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
push dword [ebp + 0x14]
push dword [ebp - 0x20]
push str.__s___s___1_
push eax
call fcn.004248c0
add esp, 0x10
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4581cd
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x88], ecx
cmp ecx, edx
je 0x458096
cmp dword [ecx + 0x14], 7
mov eax, ecx
jbe 0x457eb1
mov eax, dword [ecx]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push str.SystemFileAssociations._sShell_s
push eax
call fcn.004248c0
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov ecx, eax
mov dword [ebp - 0x80], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457ed1
mov esi, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
mov edx, SysReAllocString
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x7c], edx
test esi, esi
je 0x457f27
push 0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x457f53
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], edx
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x80]
push 1
push 0
push 0x4ed664
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x7c]
cmp eax, 0x80000000
je 0x457f53
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457f60
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x80], ecx
test esi, esi
je 0x457fa8
push 0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x457fd5
mov esi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
jmp 0x457fad
mov esi, SysReAllocString
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push str.Icon
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, 0x80000000
je 0x457fd5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
push str.command
lea ecx, [ebp - 0x18]
call fcn.0043eff0
mov eax, dword [ebp - 0x1c]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x457ff0
sub edx, esi
mov dword [ebp - 0x7c], SysReAllocString
mov esi, dword [ebp - 0x18]
sar edx, 1
mov dword [ebp - 0x80], edx
test esi, esi
je 0x45804f
push 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45807b
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push 0x4ed664
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x7c]
cmp eax, 0x80000000
je 0x45807b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x88]
add ecx, 0x18
mov dword [ebp - 0x88], ecx
cmp ecx, dword [ebp - 0x90]
jne 0x457ea7
lea edx, [esi - 0x10]
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4580b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4580d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4580f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x44]
call fcn.0042b090
lea ecx, [ebp - 0x5c]
call fcn.0042b090
lea ecx, [ebp - 0x74]
call fcn.0042b090
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x458123
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458141
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45815f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45817d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45819c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a69a0
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00409e30
push 0x80004005
call fcn.00409e30
push 0x80004005
call fcn.00409e30
int3