joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403574
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
and word [ebp - 0x410], 0
push ebx
push esi
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
and word [ebp - 0x208], 0
mov ecx, esi
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x410]
mov ebx, 0x103
push eax
push str._sUnInst360SE.exe
lea eax, [ebp - 0x208]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
and word [ebp - 0x618], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push 0
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403626
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push str._sUnInst360SE.exe
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push 5
push eax
lea eax, [ebp - 0x410]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 4
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x403832
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41f21c]
and word [ebp - 0x20c], 0
push esi
mov edx, 0x81
push edi
mov dword [ebp - 4], eax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20a]
and word [ebp - 0x414], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push str._sUnInst360SE.exe
lea eax, [ebp - 0x414]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 4]
push 0x4205a0
push eax
call fcn.0040209f
mov eax, dword [ebp - 4]
push dword [eax - 8]
push eax
call fcn.0040d777
add esp, 0x14
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00402479
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x403a6b
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
and byte [esi], 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403ac7
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403ac7
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403ab6
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov byte [esi], 1
mov eax, esi
pop edi
pop esi
ret 4

Function at 0x4040a1
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x42c5c4], esi
jne 0x4040e3
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4040c6
mov ecx, eax
call fcn.00404151
mov dword [0x42c5c4], eax
jmp 0x4040cc
mov dword [0x42c5c4], esi
push esi
push esi
push esi
push 0x404001
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x404725
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
lea eax, [ebp - 0x58]
push edi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], ebx
je 0x404800
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0x24], edi
jne 0x40476d
push edi
push edi
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x24], eax
push dword [esi + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x20]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffff0
xor ebx, ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x404799
push 1
jmp 0x40479f
test al, 2
je 0x4047a0
push 2
pop ebx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov word [ebp - 0x858], di
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x856]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x858]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
or ebx, 0x20
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x858]
push 0xffffffffffffffff
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x58]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndPaint]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x404d71
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x60]
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x814]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x404e5c
push 1
pop edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push ebx
push ebx
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
call ebx
push 0xfffffffffffffff0
mov dword [ebp - 4], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 3
je 0x404e0b
push edi
jmp 0x404e1b
test ah, 1
je 0x404e14
xor edi, edi
jmp 0x404e1c
test ah, 2
je 0x404e1c
push 2
pop edi
mov eax, dword [esi + 0x40]
and eax, 4
cmp al, 4
jne 0x404e34
push 1
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x64]
or edi, 0x24
sub dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x814]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4053c4
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [0x42c6a0]
push esi
mov esi, ecx
push 0x823
mov dword [esi + 0x4c4], eax
mov eax, dword [0x42cec4]
mov dword [esi + 0x4dc], eax
mov eax, dword [0x42cec8]
mov dword [esi + 0x4e0], eax
mov eax, dword [0x42cecc]
mov dword [esi + 0x4e4], eax
mov eax, dword [0x42ced0]
mov dword [esi + 0x4e8], eax
push dword [0x42c68c]
lea eax, [esi + 0x4ec]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
cmp dword [esi + 0x1534], 0
jne 0x405459
push dword [0x42c690]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405459
push edi
mov edi, dword [0x42c690]
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x405450
push 0
push edi
mov ecx, eax
call fcn.004084bf
jmp 0x405452
xor eax, eax
mov dword [esi + 0x1534], eax
pop edi
push 1
pop eax
pop esi
ret
Function at 0x405eba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
push ebx
je 0x405f5a
push dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
call ebx
test eax, eax
pop ecx
je 0x405f5a
and word [ebp - 0x20c], 0
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409824
mov ecx, eax
call fcn.00409ccf
push esi
lea eax, [ebp - 0x20c]
push 0x420938
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
lea eax, [ebp - 0x20c]
push eax
call ebx
add esp, 0x10
test eax, eax
pop edi
pop esi
jbe 0x405f5a
push 0xa
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
pop eax
jmp 0x405f5c
xor eax, eax
pop ebx
leave
ret 4

Function at 0x406443
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
and word [ebp - 0x824], 0
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x822]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x824]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xa4]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x40650c
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40650c
xor eax, eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x10102
call dword [sym.imp.GDI32.dll_ExtCreatePen]
test eax, eax
mov dword [ebp - 4], eax
je 0x406521
push eax
push ebx
call edi
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x406521
push 2
push ebx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push dword [esi + 0x20]
push ebx
call edi
push dword [esi + 0x80]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffff0
xor ebx, ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x40654c
push 1
jmp 0x406552
test al, 2
je 0x406553
push 2
pop ebx
or ebx, 0x20
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x824]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 4]
push dword [ebp + 8]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40744b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov byte [ebp - 1], 1
mov eax, dword [esi + 0x50]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x4074a0
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4074fa
shr eax, 2
test al, 1
je 0x4074c9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
jmp 0x407497
xor ebx, ebx
push 1
push ebx
push ebx
push dword [esi + 0x24]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x4074fa
or byte [esi + 0x54], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b73
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x154], 0x64
mov dword [esi + 0x158], 1
jle 0x408bcc
push edi
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x30]
call edi
push 0
push dword [esi + 0x58]
call edi
push 5
push dword [esi + 0x80]
call edi
push 5
push dword [esi + 0x160]
call edi
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x409af6
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x103
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push str.UninstallString
push str.Software360ChromeUpdateClientState27D39816_7A3D_406c_9ABC_97FB55674016
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x409bc8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [ebp + eax*2 - 0x212]
lea edx, [ebp - 0x210]
xor ecx, ecx
cmp eax, edx
je 0x409bc8
cmp ecx, 3
je 0x409b8e
cmp word [eax], 0x5c
jne 0x409b7d
inc ecx
dec eax
lea edx, [ebp - 0x210]
dec eax
cmp eax, edx
jne 0x409b71
cmp ecx, 3
jne 0x409bc8
cmp dword [ebp + 8], 0
je 0x409bc8
and word [eax + 2], 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp + 0xc]
dec eax
push str._s360chrome.exe
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409bc8
push 1
pop eax
jmp 0x409bca
xor eax, eax
leave
ret 8
Function at 0x409bce
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, ecx
call fcn.00409e46
mov ecx, esi
call fcn.0040b475
mov ecx, esi
call fcn.0040a92f
mov ecx, esi
call fcn.0040aa65
mov ecx, esi
call fcn.0040a669
mov ecx, esi
call fcn.0040ae68
call fcn.0040d006
cmp eax, 0xa
jne 0x409c55
and word [ebp - 0x410], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x210]
push eax
push str._s360se.exe
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x410]
push eax
push 0
call fcn.0040e417
add esp, 0x18
mov ecx, esi
call fcn.0040af6e
and word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0x208]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push str.360se.bak
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
test eax, eax
je 0x409cba
lea eax, [ebp - 0x208]
push eax
call fcn.0040dfb4
pop ecx
call fcn.00401d9b
mov ecx, eax
call fcn.00401e3d
call fcn.0040dcd0
leave
ret 4

Function at 0x409ccf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ecx + 0x210]
push esi
lea ecx, [ebp - 8]
push edi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push ecx
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0xc]
mov ebx, str.Path
push eax
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se.exe
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x104
call esi
test eax, eax
je 0x409d2d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [ebp - 4]
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se_3.exe
push edi
call esi
test eax, eax
jne 0x409d4a
cmp dword [ebp + 8], 0
je 0x409d45
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push 1
pop eax
jmp 0x409d4c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409d61
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
lea esi, [ecx + 0x210]
push 0x1388
push esi
mov dword [ebp - 4], esi
call fcn.0040d34a
and word [ebp - 0x20c], 0
pop ecx
pop ecx
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push str._s360se.exe
lea eax, [ebp - 0x20c]
push 0x103
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
push 0x1f4
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409e38
push 0x35
push dword [0x42c5c0]
push 0x428c94
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 4
jne 0x409e3d
and word [ebp - 0x20c], 0
push dword [ebp - 4]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
push str._s360se.exe
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x103
push eax
call esi
add esp, 0x10
push 0x1f4
jmp 0x409dc4
push 1
pop eax
jmp 0x409e3f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409e46
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push edi
xor ebp, ebp
mov edi, str.X360StartFrame
push ebp
push edi
call esi
xor ebx, ebx
cmp eax, ebp
je 0x409f00
push ebp
push 1
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push edi
call esi
inc ebx
cmp ebx, 0x1e
jl 0x409e60
cmp eax, ebp
je 0x409f00
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0x14]
push 0x20000000
mov dword [esp + 0x14], ebp
push ebp
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x409f00
mov esi, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x20
push str.sbiesvc
push ebp
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x409edc
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebx
push 0x20
push str.sbiedrv
push ebp
call esi
mov esi, eax
test esi, esi
je 0x409efd
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push ebp
call ebx
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x409fc3
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a0a8
mov ebx, 0x103
lea eax, [ebp - 0x210]
push ebx
push str.360se360se.ini
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
and word [ebp - 0x418], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push str.Software360360se5
push str._sdefaultmain
lea eax, [ebp - 0x418]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x20a
mov dword [ebp - 8], 1
push eax
lea eax, [esi + 0x848]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x418]
push 0x428d68
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x210]
push eax
push 0
push str.IE6Mode
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0xa54], eax
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x622]
mov word [ebp - 0x624], bx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x210]
mov edi, 0x104
push eax
push str._s360se.exe
lea eax, [ebp - 0x624]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esi + 0x434]
push edi
push eax
call fcn.0040de55
lea eax, [esi + 0x63e]
push edi
push eax
call fcn.0040df11
lea eax, [esi + 0xa64]
push eax
lea eax, [esi + 0xa60]
push eax
lea eax, [esi + 0xa5c]
push eax
lea eax, [esi + 0xa58]
push eax
lea eax, [ebp - 0x624]
push eax
call fcn.0040dd8f
add esp, 0x34
lea eax, [ebp - 0x210]
push eax
push ebx
push str.NotJoinPrivate
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a2be
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22ec
call fcn.00414800
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x40a3da
cmp word [ebx], si
je 0x40a3da
mov ax, word [0x42bc4c]
push edi
mov word [ebp - 0x25c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x25c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x12a2]
mov word [ebp - 0x12a4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4205a0
lea eax, [ebp - 0x12a4]
push 0x823
push eax
call ebx
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x22ea]
mov word [ebp - 0x22ec], si
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x12a4]
push eax
lea eax, [ebp - 0x25c]
push str._post
push eax
push 0x428fd0
lea eax, [ebp - 0x22ec]
push 0x823
push eax
call ebx
add esp, 0x18
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x10], esi
push 0x10
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov word [ebp - 0x24], si
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x22ec]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x40a3da
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret 4