Function at 0x40c7f0
Capabilities:
Delete registry value
Persist via run registry key
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab838
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa70
mov eax, dword [0x6370c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x818]
push 0x800
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push str.cancel__in:__p
push 0x3ff
push eax
call fcn.00404b00
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x818]
add esp, 0x10
push eax
call esi
push 0x104
lea eax, [ebp - 0xa20]
push eax
call fcn.0040c300
mov ecx, dword [edi + 0x74]
mov byte [ebp - 0xa71], al
test ecx, ecx
je 0x40c8ba
lea edx, [ebp - 0xa6c]
mov dword [ebp - 0xa6c], 0
mov dword [ebp - 0xa70], 1
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xa70]
push edx
call dword [eax + 8]
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x62afb4
push 0xff
push eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.0042a780
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x40c925
lea edx, [ebp - 0xa70]
mov dword [ebp - 0xa70], 0x14
mov dword [ebp - 0xa6c], 1
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xa6c]
push edx
call dword [eax + 8]
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x62afc8
push 0xff
push eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call esi
push 5
xorps xmm0, xmm0
mov dword [ebp - 0xa28], 0
push 0x62afe0
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa24], 0
movups xmmword [ebp - 0xa38], xmm0
call fcn.00401950
lea ecx, [ebp - 0xa38]
mov dword [ebp - 4], 0
call fcn.004096c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa24]
cmp ecx, 7
jbe 0x40c9e6
mov edx, dword [ebp - 0xa38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c9dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d42f
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x40ca14
lea edx, [ebp - 0xa70]
mov dword [ebp - 0xa70], 0x28
mov dword [ebp - 0xa6c], 1
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xa6c]
push edx
call dword [eax + 8]
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x62afec
push 0xff
push eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call esi
push 0xb
xorps xmm0, xmm0
mov dword [ebp - 0xa28], 0
push str.TMJiaSu_is1
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa24], 0
movups xmmword [ebp - 0xa38], xmm0
call fcn.00401950
xor esi, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0xa5c], esi
mov dword [ebp - 0xa58], esi
mov dword [ebp - 0xa54], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa50]
push 0x34
xorps xmm0, xmm0
mov dword [ebp - 0xa40], esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
movups xmmword [ebp - 0xa50], xmm0
mov dword [ebp - 0xa3c], esi
call fcn.00401950
cmp dword [ebp - 0xa3c], 7
lea ecx, [ebp - 0xa6c]
push ecx
push 0xf003f
lea eax, [ebp - 0xa50]
mov dword [ebp - 0xa6c], esi
cmova eax, dword [ebp - 0xa50]
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cb84
mov eax, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa5c]
cmp dword [ebp - 0xa24], 7
mov dword [ebp - 0xa5c], eax
lea eax, [ebp - 0xa38]
cmova eax, dword [ebp - 0xa38]
push eax
mov dword [ebp - 0xa58], esi
call fcn.00407010
test eax, eax
je 0x40cb6f
push 0x100
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x118]
push str._Uninstall__
push 0xff
push eax
call fcn.0040bed0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [ebp - 0xa5c]
test esi, esi
je 0x40cbc0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x40cbc0
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x118]
push str._Uninstall_
push 0xff
push eax
call fcn.0040bed0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0xa3c]
cmp ecx, 7
jbe 0x40cc00
mov edx, dword [ebp - 0xa50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cbf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d434
push ecx
push edx
call fcn.0042dd9f
add esp, 8
xor eax, eax
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
test esi, esi
je 0x40cc28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa24]
cmp ecx, 7
jbe 0x40cc6f
mov edx, dword [ebp - 0xa38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cc65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d439
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x40cc9d
lea edx, [ebp - 0xa70]
mov dword [ebp - 0xa70], 0x3c
mov dword [ebp - 0xa6c], 1
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xa6c]
push edx
call dword [eax + 8]
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x62b000
push 0xff
push eax
call fcn.00406fa0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
call esi
push 8
xorps xmm0, xmm0
mov dword [ebp - 0xa28], 0
push str.tmclient
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa24], 0
movups xmmword [ebp - 0xa38], xmm0
call fcn.00401950
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xa50]
push 0x2d
xorps xmm0, xmm0
mov dword [ebp - 0xa40], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
movups xmmword [ebp - 0xa50], xmm0
mov dword [ebp - 0xa3c], 0
call fcn.00401950
cmp dword [ebp - 0xa3c], 7
lea ecx, [ebp - 0xa6c]
push ecx
push 0xf003f
lea eax, [ebp - 0xa50]
cmova eax, dword [ebp - 0xa50]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cda1
cmp dword [ebp - 0xa24], 7
lea eax, [ebp - 0xa38]
cmova eax, dword [ebp - 0xa38]
push eax
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xa3c]
cmp ecx, 7
jbe 0x40cde1
mov edx, dword [ebp - 0xa50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cdd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d43e
push ecx
push edx
call fcn.0042dd9f
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa24]
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
cmp ecx, 7
jbe 0x40ce45
mov edx, dword [ebp - 0xa38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ce3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d43e
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x40ce73
lea edx, [ebp - 0xa70]
mov dword [ebp - 0xa70], 0x50
mov dword [ebp - 0xa6c], 1
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xa6c]
push edx
call dword [eax + 8]
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x62b028
push 0xff
push eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0xa38]
push eax
call fcn.0040c4f0
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.00407b30
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa24]
cmp ecx, 7
jbe 0x40cf0c
mov edx, dword [ebp - 0xa38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d443
push ecx
push edx
call fcn.0042dd9f
add esp, 8
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x62b03c
push 0xff
push eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call esi
mov edx, 0x17
lea ecx, [ebp - 0xa38]
call fcn.00408fb0
push 0x62afe0
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.00401a40
mov dword [ebp - 0xa58], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa68], xmm0
mov dword [ebp - 0xa54], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa58], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0x62a88c
lea ecx, [ebp - 0xa68]
mov byte [ebp - 4], 6
call fcn.00401a40
mov dword [ebp - 0xa40], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa50], xmm0
mov dword [ebp - 0xa3c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa40], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 7
call fcn.00407b30
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xa3c]
cmp ecx, 7
jbe 0x40d05e
mov edx, dword [ebp - 0xa50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d054
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d448
push ecx
push edx
call fcn.0042dd9f
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xa54]
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
cmp ecx, 7
jbe 0x40d0bf
mov edx, dword [ebp - 0xa68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d0b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d448
push ecx
push edx
call fcn.0042dd9f
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa24]
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa54], 7
mov word [ebp - 0xa68], ax
cmp ecx, 7
jbe 0x40d123
mov edx, dword [ebp - 0xa38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d119
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d448
push ecx
push edx
call fcn.0042dd9f
add esp, 8
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x62b050
push 0xff
push eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call esi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xa28], 0
push 0x62b064
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa24], 0
movups xmmword [ebp - 0xa38], xmm0
call fcn.00401950
lea eax, [ebp - 0xa6c]
mov dword [ebp - 0xa54], 0
push eax
push 0xf003f
push 0
push 0x62a4d4
push bind
mov dword [ebp - 0xa6c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d24e
mov eax, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa5c]
cmp dword [ebp - 0xa24], 7
mov dword [ebp - 0xa5c], eax
lea eax, [ebp - 0xa38]
cmova eax, dword [ebp - 0xa38]
push eax
mov dword [ebp - 0xa58], 0
call fcn.00407010
test eax, eax
je 0x40d23b
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x118]
push str._ClearCustomProtocol__
push 0xff
push eax
call fcn.0040bed0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0xa5c]
test eax, eax
je 0x40d28a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d28a
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x118]
push str._ClearCustomProtocol_
push 0xff
push eax
call fcn.0040bed0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0xa24]
cmp ecx, 7
jbe 0x40d2ca
mov edx, dword [ebp - 0xa38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d2c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d44d
push ecx
push edx
call fcn.0042dd9f
add esp, 8
cmp byte [ebp - 0xa71], 1
jne 0x40d3b1
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x62b06c
push 0xff
push eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call esi
xorps xmm0, xmm0
mov dword [ebp - 0xa28], 0
lea ecx, [ebp - 0xa20]
mov dword [ebp - 0xa24], 0
movups xmmword [ebp - 0xa38], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d336
sub ecx, edx
lea eax, [ebp - 0xa20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa38]
call fcn.00401950
lea ecx, [ebp - 0xa38]
mov dword [ebp - 4], 8
call fcn.00407b30
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa24]
cmp ecx, 7
jbe 0x40d3b1
mov edx, dword [ebp - 0xa38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d3a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d452
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x40d3df
lea edx, [ebp - 0xa70]
mov dword [ebp - 0xa70], 0x64
mov dword [ebp - 0xa6c], 1
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xa6c]
push edx
call dword [eax + 8]
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x40d40d
lea edx, [ebp - 0xa78]
mov dword [ebp - 0xa78], 0
mov dword [ebp - 0xa7c], 2
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xa7c]
push edx
call dword [eax + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042db10
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
int3