Function at 0x424070
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597470
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6073a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x498]
mov dword [ebp - 0x18], 0
push 0x5f8268
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.00424fd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push str.uninst.exe
mov edx, esi
mov dword [ebp - 0x1c], 0
call fcn.00424fd0
add esp, 8
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMagicToolkit.exe
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00427350
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp - 0x40]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x40]
mov edi, eax
neg edi
sbb edi, edi
or esi, 0xffffffff
inc edi
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x424143
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 1
test edi, edi
je 0x4241dd
mov eax, dword [ebp - 0x18]
mov edx, ebx
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x42416c
push 0
lea ecx, [ebp - 0x18]
call fcn.00427130
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00427350
push 0x5f8c44
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00427350
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4241c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4241dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00423f80
mov eax, 0xffff
add word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x44], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x424239
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMagicToolkit
lea ecx, [ebp - 0x14]
call fcn.00427350
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp - 0x14]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x14]
mov edi, eax
neg edi
mov ecx, esi
sbb edi, edi
add edx, 0xfffffff0
inc edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x424288
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4244f9
push 0x5f83e4
lea ecx, [ebp - 0x40]
call fcn.00427350
push str.DisplayName
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00427350
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call edi
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4242ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424307
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov edx, ebx
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x424323
push 0
lea ecx, [ebp - 0x1c]
call fcn.00427130
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00427350
push str.UninstallString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00427350
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call edi
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424376
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424390
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
sub ebx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, ebx
jge 0x4243aa
push 0
lea ecx, [ebp - 0x18]
call fcn.00427130
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x40]
call fcn.00427350
push str.DisplayIcon
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00427350
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call edi
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4243fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424417
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5f8a9c
lea ecx, [ebp - 0x40]
call fcn.00427350
push str.DisplayVersion
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00427350
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call edi
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42446e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424488
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.ShangHai_Ziwei
lea ecx, [ebp - 0x40]
call fcn.00427350
push str.Publisher
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00427350
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call edi
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4244df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4244f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 0
je 0x424539
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.00423f80
inc word [ebp - 0x3c]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424539
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x424549
push eax
call edi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x424553
push eax
call edi
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424571
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 0x424590
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8d78
mov esp, ebp
pop ebp
ret