Function at 0x40b8e0
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Get common file path
Get program files directory
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x698ac]
mov eax, 0x698ac
call fcn.00429d90
push 0xffffffffffffffff
push 0x4406a8
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x45593c]
xor eax, ebp
mov dword [ebp + 0x698a8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call dword [0x456cf8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 0xf003f
push 0
push str.SoftwareToolKitService
push SysReAllocString
mov dword [ebp - 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40c3d7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push esi
push 0x26
lea ecx, [ebp + 0x696a8]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp + 0x696a8]
push edx
lea eax, [ebp + 0x67e2c]
push str._suninstall_log.txt
push eax
call fcn.004299c4
lea ecx, [ebp + 0x67e2c]
push ecx
call fcn.00409990
lea edx, [ebp + 0x696a8]
push edx
lea eax, [ebp + 0x68034]
push str._s__u___sToolKitService_toolbar.dll_
push eax
call fcn.004299c4
mov edi, dword [ebp - 0x20]
add esp, 0x1c
lea edx, [ebp - 0xf0]
lea ecx, [ebp + 0x68034]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, str.open
push edx
mov dword [ebp - 0xf0], 0x3c
mov dword [ebp - 0xec], 0x40
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], str.regsvr32.exe
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xb8], edi
call esi
push 0x2710
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
lea eax, [ebp + 0x696a8]
push eax
lea ecx, [ebp + 0x68034]
push str._s__u___sToolKitService_splash.dll_
push ecx
call fcn.004299c4
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x168]
lea edx, [ebp + 0x68034]
push ecx
mov dword [ebp - 0x168], 0x3c
mov dword [ebp - 0x164], 0x40
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], str.regsvr32.exe
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x130], eax
call esi
mov edx, dword [ebp - 0x14]
push 0x2710
push edx
call edi
lea eax, [ebp + 0x696a8]
push eax
lea ecx, [ebp + 0x68034]
push str._s__u___sToolKitServicemod_beemp3.dll_
push ecx
call fcn.004299c4
add esp, 0xc
mov dword [ebp - 0x12c], 0x3c
mov dword [ebp - 0x128], 0x40
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], str.regsvr32.exe
lea edx, [ebp + 0x68034]
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x12c]
push ecx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0xf4], eax
call esi
mov edx, dword [ebp - 0x14]
push 0x2710
push edx
call edi
lea eax, [ebp + 0x696a8]
push eax
lea ecx, [ebp + 0x68034]
push str._s__u___sToolKitService_tkshext.dll_
push ecx
call fcn.004299c4
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xb4]
lea edx, [ebp + 0x68034]
push ecx
mov dword [ebp - 0xb4], 0x3c
mov dword [ebp - 0xb0], 0x40
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], str.regsvr32.exe
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x7c], eax
call esi
mov edx, dword [ebp - 0x14]
push 0x2710
push edx
call edi
push 0x258
lea eax, [ebp + 0x68e48]
push 0
push eax
call fcn.00428e00
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push str.SOFTWAREToolKitService
push SysReAllocString
mov dword [ebp - 0x24], 0x258
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40bbd5
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 0x68e48]
push ecx
push 0
push 0
push str.Install_Dir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp + 0x68a3c]
push 0
push eax
call fcn.00428e00
lea ecx, [ebp + 0x68e48]
push ecx
lea edx, [ebp + 0x68a3c]
push str._s_toolkitservice.exe
push edx
call fcn.004299c4
lea eax, [ebp + 0x68a3c]
push 0x442c4c
push eax
call fcn.0042989f
add esp, 0x20
test eax, eax
je 0x40bc64
push eax
call fcn.0042975d
add esp, 4
mov dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x20]
lea edx, [ebp - 0x78]
lea ecx, [ebp + 0x68e48]
push edx
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x74], 0x40
mov dword [ebp - 0x68], 0x444ba4
mov dword [ebp - 0x64], 0x445d80
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x40], ebx
call esi
push 0x2710
push ebx
call edi
mov edi, 0x202
xor ebx, ebx
push edi
lea eax, [ebp + 0x68c44]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00428e00
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMozillaMozilla_Firefox
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0x68c44]
push eax
push ebx
push ebx
push str.CurrentVersion
push ecx
call esi
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
je 0x40bd51
push edi
lea eax, [ebp + 0x67c28]
push ebx
push eax
call fcn.00428e00
push 0x258
lea ecx, [ebp + 0x69248]
push ebx
push ecx
call fcn.00428e00
lea edx, [ebp + 0x68c44]
push edx
lea eax, [ebp + 0x69248]
push str.SOFTWAREMozillaMozilla_Firefox_sMain
push eax
mov dword [ebp - 0x24], edi
call fcn.004299c4
add esp, 0x24
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push ebx
lea edx, [ebp + 0x69248]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x67c28]
push ecx
push ebx
push ebx
push str.Install_Directory
push edx
call esi
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call esi
push 0x208
lea edx, [ebp + 0x694a0]
push ebx
push edx
call fcn.00428e00
push 0x208
lea eax, [ebp + 0x68834]
push ebx
push eax
call fcn.00428e00
push 0xcb20
lea ecx, [ebp + 0x58610]
push ebx
push ecx
call fcn.00428e00
push 0xcb20
lea edx, [ebp + 0x4baf0]
push ebx
push edx
call fcn.00428e00
push 0xcb20
lea eax, [ebp + 0x3d860]
push ebx
push eax
call fcn.00428e00
add esp, 0x3c
push ebx
push 0x1a
lea ecx, [ebp + 0x694a0]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp + 0x694a0]
push edx
lea eax, [ebp + 0x68834]
push str._sMozillaFirefoxprofiles.ini
push eax
call fcn.004299c4
lea ecx, [ebp + 0x68834]
push 0x442c4c
push ecx
call fcn.0042989f
mov esi, eax
add esp, 0x14
cmp esi, ebx
mov dword [ebp - 0x1c], esi
je 0x40c2c3
push 0x1388
lea edx, [ebp + 0x65130]
push ebx
push edx
call fcn.00428e00
push 0x1770
lea eax, [ebp + 0x4a380]
push ebx
push eax
call fcn.00428e00
push 0x1770
lea ecx, [ebp + 0x664b8]
push ebx
push ecx
call fcn.00428e00
push esi
mov dword [ebp - 0x28], ebx
call fcn.00429f64
add esp, 0x28
test eax, eax
jne 0x40c0d2
lea eax, [ebp + 0x65130]
sub eax, 1
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
xor eax, eax
jmp 0x40be60
movzx ecx, word [eax + 0x443900]
mov word [ebp + eax + 0x4a380], cx
add eax, 2
cmp cx, bx
jne 0x40be60
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x443900]
mov word [ebp + eax + 0x664b8], cx
add eax, 2
cmp cx, bx
jne 0x40be80
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp + 0x65130]
push 0x400
push eax
call fcn.00429ddd
lea eax, [ebp + 0x65130]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40beb8
mov ecx, dword [ebp - 0x20]
sub eax, edx
lea edx, [ebp + 0x65130]
push edx
mov byte [ecx + eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x40bf19
lea eax, [esi + esi]
call fcn.00429d60
mov edi, esp
cmp edi, ebx
je 0x40bf16
mov ecx, dword [ebp - 0x2c]
push esi
push edi
push 0xffffffffffffffff
lea eax, [ebp + 0x65130]
push eax
push ebx
push ecx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [ebp - 0x18]
jmp 0x40bf1b
mov edi, dword [ebp - 0x18]
xor eax, eax
lea edx, [ebp + 0x664b8]
push edx
lea ecx, [ebp + 0x4a380]
push ecx
push 0x4438fc
push eax
call fcn.004092b0
add esp, 0x10
mov ecx, str.Path
lea eax, [ebp + 0x4a380]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bf68
cmp dx, bx
je 0x40bf64
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bf68
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40bf42
xor eax, eax
jmp 0x40bf6d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c0bb
lea eax, [ebp + 0x664b8]
xor edx, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bf80
sub eax, esi
sar eax, 1
je 0x40bfc5
cmp word [ebp + edx*2 + 0x664b8], 0x2f
jne 0x40bfa6
mov word [ebp + edx*2 + 0x664b8], 0x5c
lea eax, [ebp + 0x664b8]
add edx, 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bfb2
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x40bf91
cmp word [ebp + 0x664ba], 0x3a
lea eax, [ebp + edi + 0x4baf0]
jne 0x40c035
lea edx, [ebp + 0x664b8]
push edx
push str._sextensions.rdf
push eax
call fcn.004299c4
lea ecx, [ebp + 0x664b8]
push ecx
lea edx, [ebp + edi + 0x3d860]
push str._sextensions.cache
push edx
call fcn.004299c4
lea eax, [ebp + 0x664b8]
push eax
lea ecx, [ebp + edi + 0x58610]
push str._sextensions_toolkit_toolkitdevelopment.com
push ecx
call fcn.004299c4
lea edx, [ebp + 0x664b8]
push edx
lea eax, [ebp + edi]
push str._suser.js
push eax
call fcn.004299c4
add esp, 0x30
jmp 0x40c0ae
lea ecx, [ebp + 0x664b8]
push ecx
lea edx, [ebp + 0x694a0]
push edx
push str._sMozillaFirefox_sextensions.rdf
push eax
call fcn.004299c4
lea ecx, [ebp + 0x664b8]
push ecx
lea edx, [ebp + 0x694a0]
push edx
lea eax, [ebp + edi + 0x3d860]
push str._sMozillaFirefox_sextensions.cache
push eax
call fcn.004299c4
lea ecx, [ebp + 0x664b8]
push ecx
lea edx, [ebp + 0x694a0]
push edx
lea eax, [ebp + edi + 0x58610]
push str._sMozillaFirefox_sextensions_toolkit_toolkitdevelopment.com
push eax
call fcn.004299c4
lea ecx, [ebp + 0x664b8]
push ecx
lea edx, [ebp + 0x694a0]
push edx
lea eax, [ebp + edi]
push str._sMozillaFirefox_suser.js
push eax
call fcn.004299c4
add esp, 0x40
add dword [ebp - 0x28], 1
add edi, 0x208
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00429f64
add esp, 4
test eax, eax
je 0x40be53
mov esi, dword [ebp - 0x1c]
push esi
call fcn.0042975d
add esp, 4
cmp dword [ebp - 0x28], ebx
jle 0x40c2c3
mov edx, dword [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edx
nop
push 0x30d40
lea eax, [ebp + 0xcb20]
push 0
push eax
call fcn.00428e00
add esp, 0xc
cmp dword [ebp + 0x698b4], 0
je 0x40c11f
lea ecx, [ebp + esi + 0x58610]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040b5f0
lea edx, [ebp + esi + 0x4baf0]
push edx
call fcn.0042a01a
lea eax, [ebp + esi + 0x3d860]
push eax
call fcn.0042a01a
lea edi, [ebp + esi]
push 0x442c4c
push edi
mov dword [ebp - 0x20], edi
call fcn.0042989f
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40c2ae
push ebx
call fcn.00429f64
add esp, 4
test eax, eax
jne 0x40c236
lea esp, [esp]
push ebx
lea ecx, [ebp + 0x690a0]
push 0x400
push ecx
call fcn.00429ddd
lea edx, [ebp + 0x690a0]
push str.general.useragent.override
push edx
call fcn.00428e80
add esp, 0x14
test eax, eax
jne 0x40c222
lea eax, [ebp + 0x690a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x40c1ea
lea eax, [edi + edi]
call fcn.00429d60
mov esi, esp
test esi, esi
je 0x40c1ea
mov edx, dword [ebp - 0x2c]
push edi
push esi
push 0xffffffffffffffff
lea ecx, [ebp + 0x690a0]
push ecx
push 0
push edx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40c1ec
xor eax, eax
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c1f0
lea edi, [ebp + 0xcb20]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c206
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00429f64
add esp, 4
test eax, eax
je 0x40c170
mov edi, dword [ebp - 0x20]
push ebx
call fcn.0042975d
push 0x4437e8
push edi
call fcn.0042989f
mov ebx, eax
add esp, 0xc
lea eax, [ebp + 0xcb20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40c299
lea edi, [eax + eax]
mov eax, edi
call fcn.00429d60
mov esi, esp
test esi, esi
je 0x40c299
mov edx, dword [ebp - 0x2c]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xcb20]
push ecx
push 0
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40c29b
xor eax, eax
push ebx
push eax
call fcn.00429c19
push ebx
call fcn.0042975d
mov esi, dword [ebp - 0x1c]
add esp, 0xc
add esi, 0x208
sub dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], esi
jne 0x40c0f0
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x30]
push eax
push 0xf003f
push ebx
push str.SoftwaremozillaFirefoxextensions
push SysReAllocString
mov dword [ebp - 0x30], ebx
call edi
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
je 0x40c301
push str.toolkit_toolkitdevelopment.com
push eax
call esi
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x38]
push edx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_AgentPost_Platform
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, dword [ebp - 0x38]
push 0x444e90
push eax
call esi
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x3c]
push edx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call edi
mov eax, dword [ebp - 0x3c]
push str.tktray
push eax
call esi
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWAREToolKitService
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [ebp - 0x60]
call fcn.0040b370
push 0x445b90
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.0040b820
lea edx, [ebp + 0x696a8]
push edx
lea eax, [ebp + 0x68034]
push str._sToolKitService
push eax
call fcn.004299c4
push ebx
push str.eToolKit_was_uninstalled_:__n
call fcn.004028d0
add esp, 0x14
call fcn.00404a60
lea ecx, [ebp + 0x68034]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040b5f0
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x40c3c9
push eax
call esi
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x40c3d3
push eax
call esi
xor eax, eax
jmp 0x40c3dc
mov eax, 1
lea esp, [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x698a8]
xor ecx, ebp
call fcn.00428dec
add ebp, 0x698ac
mov esp, ebp
pop ebp
ret 4