joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451750
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push str.aiBackup
push str.SOFTWARE360SafeLeak
mov esi, 4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x45188d
cmp dword [esp + 8], esi
jne 0x45188d
push str.aiBackup
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
call fcn.004516b0
test eax, eax
je 0x451814
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push eax
mov eax, dword [esp + 8]
push eax
push str.aiRestore_backup
push str.action_sbackupret_dt_d
push str.http:__update.360safe.com_safe_leakpop.html_
push 1
push 0x4cd998
call fcn.0047e9e0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
add ecx, 0xc00
push ecx
call fcn.00460de0
test eax, eax
je 0x45188d
call esi
mov edx, dword [esp + 4]
push eax
push edx
push str.aiRestore_backup_open
jmp 0x451874
mov eax, dword [esp + 4]
test eax, 0x100
je 0x451832
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [esp + 8]
push eax
push str.aiRestore_backup_fail1
jmp 0x451874
test al, al
jns 0x451849
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 4]
push eax
push ecx
push str.aiRestore_backup_fail2
jmp 0x451874
test eax, 0x1000
je 0x451863
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 4]
push eax
push edx
push str.aiRestore_backup_fail3
jmp 0x451874
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [esp + 8]
push eax
push str.aiRestore_backup_fail0
push str.action_sbackupret_dt_d
push str.http:__update.360safe.com_safe_leakpop.html_
push 1
push 0x4cd998
call fcn.0047e9e0
add esp, 0x1c
pop esi
add esp, 0xc
ret 4
Function at 0x453e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a55a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ce67c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push ecx
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, str.MinorVersion
lea esi, [esp + 0x1c]
lea edi, [ebx + 1]
call fcn.0046c8c0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov byte [esp + 0x44], 1
call fcn.0046c8c0
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
mov byte [esp + 0x48], bl
call fcn.0046a960
push eax
mov byte [esp + 0x3c], 2
call fcn.0046a8b0
mov esi, eax
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or ebp, 0xffffffff
add esp, 4
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x453f2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x453f4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x453ff8
lea ebx, [esp + 0x14]
call fcn.00453d70
mov eax, ebx
call fcn.00453e20
mov edx, dword [esp + 0x14]
mov ecx, 2
cmp dword [edx - 0xc], ecx
jle 0x453ff8
mov eax, ebx
push eax
lea eax, [ecx - 1]
lea edx, [esp + 0x1c]
call fcn.0045e920
mov edi, ebx
mov byte [esp + 0x38], 3
call fcn.0046aff0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x453fb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
call fcn.0048be28
mov edi, eax
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x38], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x453fe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x454019
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x456c00
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.0048ed30
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
push 0x1fff
lea eax, [esp + 0x15]
push 0
push eax
mov ebx, ecx
mov byte [esp + 0x1c], 0
call fcn.0048dc10
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x456cd3
cmp eax, 0x1fff
ja 0x456cd3
lea edx, [esp + 0x10]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x456cd3
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x4b42e8
lea edx, [esp + 0x1c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x456cd3
push 0xc8
push 0
push ebx
call fcn.0048dc10
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
mov eax, 0xc8
call fcn.00468de0
add esp, 0x20
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0048b133
add esp, 0x2010
ret
mov ecx, dword [esp + 0x2010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0048b133
add esp, 0x2010
ret
Function at 0x4574c0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push 0
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x457511
xor eax, eax
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x18]
push 0x80020011
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret 8

Function at 0x4576e0
Capabilities:
Modify service

Disassembly:
sub esp, 8
push ebp
push esi
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, esi
je 0x4577ad
push edi
push 3
push str.wuauserv
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
je 0x4577a5
lea eax, [esp + 0xc]
push eax
push esi
push esi
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x45779a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45779a
mov eax, dword [esp + 0xc]
push ebx
push eax
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x457799
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x457792
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x10]
push 0
push eax
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi]
push 0
push edx
push eax
push 0xffffffffffffffff
push 3
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x457792
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret

Function at 0x4577c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push str.MPProtect
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [esp], 1
sete al
add esp, 0xc
ret
Function at 0x457810
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a54e6
mov eax, dword fs:[0]
push eax
sub esp, 0x7e8
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x7e0], eax
push ebp
push esi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x7f4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x804]
xor eax, eax
push 0x7ce
push eax
lea ecx, [esp + 0x26]
mov dword [esp + 0x14], 0
push ecx
mov word [esp + 0x28], ax
call fcn.0048dc10
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x7d0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x9d2b
mov dword [esp + 0x800], 0
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4578ee
lea edx, [esp + 0x10]
push edx
mov eax, 0x9d2b
call fcn.0046c580
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push esi
push ecx
mov dword [esp + 0x808], 1
call fcn.00468430
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45792c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x7fc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457953
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
lea ecx, [esp + 0x20]
call fcn.0046c8c0
mov eax, ebp
mov ecx, dword [esp + 0x7f4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x7e0]
xor ecx, esp
call fcn.0048b133
add esp, 0x7f4
ret 4
Function at 0x457990
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a54b2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
mov eax, esi
neg eax
push str.MPProtect
sbb eax, eax
mov ebx, 2
push str.SOFTWARE360Safe_safemon
add eax, ebx
mov dword [esp + 0x28], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [esp + 0x2c], eax
mov ecx, 0x4ce67c
test esi, esi
je 0x457a47
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x9d4c
mov dword [esp + 0x3c], 0
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x457a38
lea edx, [esp + 0x1c]
push edx
mov eax, 0x9d4c
call fcn.0046c580
mov ebx, 1
mov dword [esp + 0x38], ebx
mov edi, dword [esp + 0x1c]
jmp 0x457a8a
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x9d14
mov dword [esp + 0x3c], ebx
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x457a7e
lea eax, [esp + 0x18]
push eax
mov eax, 0x9d14
call fcn.0046c580
mov dword [esp + 0x38], 3
mov edi, dword [esp + 0x18]
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
mov dword [esp + 0x14], ebx
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
push 0x9c8a
mov dword [esp + 0x3c], 4
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x457ad3
lea edx, [esp + 0x20]
push edx
mov eax, 0x9c8a
call fcn.0046c580
mov esi, dword [esp + 0x20]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x44], 5
call fcn.00468430
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457b0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457b2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 1
test bl, 2
je 0x457b5f
mov eax, dword [esp + 0x18]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457b5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
test bl, 1
je 0x457b8c
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457b8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
cmp dword [esp + 0x2c], eax
sete al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x45a050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebp
push esi
or esi, 0xffffffff
push edi
cmp dword [ebx + 0xb8], esi
jne 0x45a06e
cmp dword [ebx + 0xc0], 0
je 0x45a12d
cmp dword [ebx + 0xbc], 0
jne 0x45a12d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 4]
push 2
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x45a0d6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, dword [ebx + 4]
je 0x45a12d
mov ecx, dword [ebx + 0xc0]
test ecx, ecx
je 0x45a0f1
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebx + 0xc0], 0
cmp dword [ebx + 0x78], 0
je 0x45a12d
mov eax, dword [ebx + 0xb8]
cmp eax, esi
je 0x45a12d
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0x198
push edx
mov dword [ebx + 0xb8], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 4]
push 1
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [ebx + 0x94]
mov ebp, dword [edx]
mov esi, dword [ebx + 0x7c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov edi, dword [ebx + 0x94]
mov eax, dword [ebx + 0x7c]
test esi, esi
je 0x45a151
cmp esi, eax
je 0x45a156
call fcn.0048b4bc
cmp ebp, edi
je 0x45a1bd
test esi, esi
jne 0x45a1a8
call fcn.0048b4bc
cmp ebp, dword [esi + 0x18]
jne 0x45a16d
call fcn.0048b4bc
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
xor esi, esi
test eax, eax
jle 0x45a195
test esi, esi
jl 0x45a1ac
cmp esi, eax
jge 0x45a1ac
mov eax, dword [edi]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [edi + 4]
inc esi
cmp esi, eax
jl 0x45a179
lea esi, [esp + 0x10]
call fcn.0044edf0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x45a140
mov esi, dword [esi]
jmp 0x45a163
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [ebx + 0xc8], 0
je 0x45a1f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebx + 0xc8]
jb 0x45a1f1
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x184
push ecx
mov dword [ebx + 0xc8], 0
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x30
ret
Function at 0x45ac90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8de8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
mov ecx, edi
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x45ad18
cmp ebx, edi
jbe 0x45ace8
call fcn.0048b4bc
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
push edi
push eax
lea eax, [esp + 0x40]
push eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, 1
sub edx, ecx
push edx
push esi
call fcn.0045a570
jmp 0x45ad83
jbe 0x45ad83
cmp ebx, edi
jbe 0x45ad23
call fcn.0048b4bc
mov ebp, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x20], eax
cmp ebp, dword [esi + 0x10]
jbe 0x45ad36
call fcn.0048b4bc
mov ebx, dword [esi]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
test ebx, ebx
jne 0x45ad5b
call fcn.0048b4bc
xor eax, eax
add ebp, 0x18
cmp ebp, dword [eax + 0x10]
ja 0x45ad66
test ebx, ebx
je 0x45ad5f
mov ebx, dword [ebx]
jmp 0x45ad61
mov eax, dword [ebx]
jmp 0x45ad4b
xor ebx, ebx
cmp ebp, dword [ebx + 0xc]
jae 0x45ad6b
call fcn.0048b4bc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push edi
push ecx
push ebp
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0045abe0
xor ebp, ebp
mov eax, dword [esp + 0x44]
cmp eax, ebp
je 0x45ad94
push eax
call fcn.0048b128
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call fcn.0048b128
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x18
Function at 0x45c760
Capabilities:
Check if file exists
Delete registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, eax
push esi
xor ebp, ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c826
push str._d__cu
call fcn.004608a0
mov edi, eax
push 0xea60
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x14], ebp
cmp eax, ebp
jne 0x45c7b9
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x45c7b9
cmp dword [esp + 0x14], 0x3600
jne 0x45c7b9
mov ebp, 1
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push str.aiAddMenu
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push str.aiBackup
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov ecx, dword [esp + 0x14]
push edi
push ecx
push str._d__cu
push esi
lea edx, [esp + 0x28]
push 0x4b4fe0
push edx
call fcn.00468430
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c81f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x45c830
Capabilities:
Delete file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
xor edi, edi
mov word [esp + 0x10], ax
call fcn.0048dc10
add esp, 0xc
push str.360softmgr_testdir.dat
push esi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x45c89d
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0048b133
add esp, 0x20c
ret
Function at 0x45d990
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 0x10], esi
test eax, eax
je 0x45da52
cmp eax, 0xffffffff
je 0x45da52
test ebp, ebp
je 0x45da52
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45da52
push ebx
push edi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebp
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.004848ce
mov esi, eax
add esp, 4
test esi, esi
je 0x45da47
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
mov byte [esi + edi], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
mov edi, eax
xor ebp, ebp
push ebp
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call fcn.0048c465
add esp, 4
cmp ebx, ebp
je 0x45da43
cmp dword [esp + 0x18], edi
mov dword [esp + 0x18], 1
je 0x45da47
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x18]
pop edi
pop ebx
pop esi
pop ebp
ret 8
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x45e690
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push esi
push str.360leakrepair_onfixing_mutex
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x45e6b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x45e6be
mov eax, esi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret