Function at 0x401080
Capabilities:
Delete file
Delete registry key
Delete service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x49c
mov eax, dword [0x428c20]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
lea eax, [esp + 0x29c]
push ebx
push eax
mov dword [esp + 0x50], 0x104
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0040f180
add esp, 0xc
push 0x423890
call fcn.0040ca2c
add esp, 4
call fcn.00401500
test eax, eax
jne 0x401144
mov ecx, dword [0x42caa4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401c70
mov edx, dword [eax]
push edx
push 0x4238d8
call fcn.0040ca2c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40111b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.pause
call fcn.0040caf1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.0040c7b4
mov esp, ebp
pop ebp
ret 0x10
push 0x4238f0
call fcn.0040ca2c
add esp, 4
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42ca94], eax
cmp eax, ebx
je 0x401187
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x42ca94]
mov eax, str.SOFTWAREWow6432NodeCHINA_GALAXY_SECURITIESWebTradeProtect
cmp dword [esp + 0x14], ebx
jne 0x401197
mov eax, str.SOFTWARECHINA_GALAXY_SECURITIESWebTradeProtect
push eax
lea ecx, [esp + 0x1c]
call fcn.004026f0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push eax
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4012e7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x48]
lea esi, [esp + 0x29c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
call section..text
test eax, eax
jne 0x4012d3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4011f6
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp cx, word [esp + eax*2 + 0x296]
jne 0x401239
lea eax, [esp + 0x298]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401220
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x296], dx
push 0x250
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.0040f180
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x29c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4012d3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x40], ax
lea edx, [esp + 0x24]
mov eax, 0x10
lea ecx, [esp + 0x298]
push edx
mov word [esp + 0x38], ax
mov dword [esp + 0x3e], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x42], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 3
call esi
test eax, eax
je 0x4012d3
lea eax, [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push ecx
push 0x80000002
call esi
jmp 0x4012ed
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SOFTWAREClassesInstallerProducts55FEF7AAFF350FC4DAF93F62F2D4078A
push 0x80000002
call esi
push str.CLSID985BD628_E94A_41AB_A54D_4083A3B413AB
push 0x80000000
call esi
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf01ff
push str.MSProtectKB
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x401337
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [esp + 0x14]
push edx
mov edi, 1
call fcn.00401950
add esp, 4
test eax, eax
je 0x4013bb
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4013b4
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push str.kernel32
mov dword [esp + 0x18], ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42ca98], eax
cmp eax, ebx
je 0x401382
lea ecx, [esp + 0x10]
push ecx
call eax
push edi
xor edi, edi
call fcn.00401950
add esp, 4
test eax, eax
je 0x4013bb
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42ca9c], eax
cmp eax, ebx
je 0x4013b4
lea edx, [esp + 0x10]
push edx
call eax
push 0x423b68
jmp 0x4013c0
push 0x423b88
call fcn.0040ca2c
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4013f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x4a4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040c7b4
mov esp, ebp
pop ebp
ret 0x10