joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41234a
Capabilities:
Continue service
Modify service
Persist via windows service
Query or enumerate registry value
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push str.LFlags
mov ebx, str.SOFTWARE360Safe360krnlsvc
xor edi, edi
push ebx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x412395
mov byte [ebp - 8], 1
cmp dword [ebp - 0xc], edi
jne 0x412399
mov byte [ebp - 8], 0
xor edi, edi
inc edi
push edi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xc]
push str.ForceExitService::OpenSCManager_Handle:_x_Error:_d_r_n
push dword [ebp - 8]
call fcn.004124da
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4124d2
push 0x30130
push str.ZhuDongFangYu
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
push str.ForceExitService::OpenService_ZhuDongFangYu__Handle:_x_Error:_d_r_n
push dword [ebp - 8]
call fcn.004124da
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4124c9
call fcn.00412308
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.CFlags
push ebx
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
call edi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.EFlags
push ebx
push esi
mov dword [ebp - 0x10], 1
call edi
and dword [ebp - 0x10], 0
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.RFlags
push ebx
push esi
call edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.Start
push str.SYSTEMCurrentControlSetServicesZhuDongFangYu
push esi
mov dword [ebp - 0x10], 3
call edi
lea eax, [ebp - 0x2c]
push eax
push 0x8e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
push str.ForceExitService::ControlService___Ret:_d_Error:_d
push dword [ebp - 8]
call fcn.004124da
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x4124c0
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4124da
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
je 0x4125a1
push edi
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call fcn.00475570
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov eax, 0x200
lea edi, [ebp - 0x814]
call fcn.004159ac
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x416], ax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00475570
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
test eax, eax
je 0x4125a1
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe
lea eax, [ebp - 0x414]
push eax
call esi
push str.Zhudongfangyu.log
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004125ad
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret

Function at 0x4125ad
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
je 0x4126a3
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4125fc
push esi
jmp 0x41269c
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], ebx
jl 0x412629
jg 0x412615
cmp dword [ebp - 0x14], 0x100000
jbe 0x412629
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, 0xffffffff
je 0x412699
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x412699
inc eax
push eax
call fcn.00474e94
mov edi, eax
pop ecx
cmp edi, ebx
je 0x412699
push ebx
push ebx
push dword [ebp - 8]
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov byte [eax + edi], bl
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004769e0
pop ecx
inc eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00476c84
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41282c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4e3a80
push 0x4770d0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a18
call fcn.00476c90
mov eax, dword [0x4f3bd0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xa30], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa2c], eax
xor edi, edi
cmp eax, edi
je 0x412985
push eax
call fcn.0047600e
pop ecx
cmp eax, 0x104
ja 0x412985
mov dword [ebp - 4], edi
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4128c1
mov esi, 0x800
push esi
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.00475570
mov dword [ebp - 0xa28], edi
push 0x2000
push edi
lea eax, [ebp - 0x2a30]
push eax
call fcn.00475570
add esp, 0x18
lea eax, [ebp - 0xa28]
push eax
push esi
lea eax, [ebp - 0x2a30]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x412985
push 0x104
push dword [ebp - 0xa2c]
lea eax, [ebp - 0x224]
push eax
call fcn.00475519
lea eax, [ebp - 0x224]
push eax
call fcn.00475b16
add esp, 0x10
cmp dword [ebp - 0xa28], edi
jbe 0x412985
lea esi, [ebp + edi*4 - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
push dword [esi]
call fcn.00412d5c
test eax, eax
je 0x41297c
lea eax, [ebp - 0xa24]
push eax
call fcn.00475b16
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004756de
add esp, 0xc
test eax, eax
jne 0x41297c
mov eax, dword [ebx]
push dword [esi]
push ebx
call dword [eax + 0x1c]
inc edi
cmp edi, dword [ebp - 0xa28]
jb 0x412935
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004755ea
leave
ret 8
Function at 0x412ccb
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412d26
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4

Function at 0x412d2d
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 0xc]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x412d58
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x41324e
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4e6958
push 0x4770d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f3bd0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x80c]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp + 0x810]
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp + 0x814]
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 0x824]
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
test edi, edi
je 0x413433
cmp word [edi], 0
je 0x413433
push edi
call fcn.0047600e
pop ecx
cmp eax, 0x104
ja 0x413433
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413433
test ebx, ebx
mov eax, ebx
jne 0x4132f8
mov eax, 0x4d3fa0
push eax
push edi
push dword [0x4f7cd0]
mov ebx, str._sRun_App__s__s
push ebx
call fcn.00414705
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea eax, [ebp + 2]
push eax
call fcn.00475570
push edi
push 0x4d5e18
push 0x3ff
lea eax, [ebp]
push eax
call fcn.00415927
push 0x3c
pop edi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.00475570
add esp, 0x38
mov dword [ebp - 0x68], edi
lea eax, [ebp]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], str.open
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x54], edi
mov eax, dword [ebp + 0x818]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], 0x440
cmp dword [ebp + 0x81c], esi
je 0x413388
push esi
push dword [ebp - 0x24]
call fcn.0040229e
pop ecx
pop ecx
test eax, eax
je 0x413433
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x820], esi
je 0x4133cb
cmp eax, esi
je 0x4133cb
push dword [ebp + 0x828]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4133cb
cmp dword [ebp + 0x82c], esi
je 0x4133cb
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push dword [ebp - 0x24]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x28], esi
je 0x4133e1
cmp dword [ebp - 0x1c], esi
je 0x4133ef
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], esi
je 0x4133ef
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x4133f8
mov edi, 0x4d3fa0
push edi
push dword [ebp - 0x24]
push dword [0x4f7cd4]
push ebx
mov esi, dword [ebp - 0x20]
call fcn.00414705
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x41343c
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x804
leave
ret 0x24
Function at 0x413461
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x18
mov eax, 0x4b3f83
call fcn.00476643
mov ecx, dword [ebp + 0x818]
mov eax, dword [ebp + 0x814]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x81c]
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413633
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x413622
lea edi, [ebp - 0x14]
call fcn.00414e85
cmp eax, ebx
jl 0x413622
mov eax, edi
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004154b7
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x18]
cmp esi, ebx
sete al
cmp al, bl
je 0x41350f
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x413622
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x413622
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x413520
push 0x80004003
call fcn.00474fa0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x4134f9
cmp dword [ebp - 0x20], ebx
je 0x413546
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413516
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x4134f9
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413516
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x4134f9
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00475570
push 0x400
push dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.00475519
add esp, 0x18
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp + 0x820], ebx
jle 0x4135a4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413516
push dword [ebp + 0x820]
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413516
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x4134f9
cmp esi, ebx
je 0x413516
mov eax, dword [esi]
push edi
push dword [ebp - 0x24]
push esi
call dword [eax + 0x18]
test eax, eax
jge 0x4135df
mov byte [ebp - 4], bl
jmp 0x413504
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [esi]
push esi
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4135ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x413635
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x413633
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x804
leave
ret 0x18
Function at 0x41365a
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0
mov eax, 0x4b62e6
call fcn.00476610
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x41369a
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x41369a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402530
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4136a4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402870
xor eax, eax
call fcn.004766e8
ret 0xc
mov eax, dword [ebp + 0xc]
mov edi, pe_nt_image_headers32
cmp dword [eax - 0xc], edi
jl 0x4136b6
lea ecx, [eax - 0x10]
jmp 0x413695
push 0x2a8
push ebx
push esi
call fcn.00475570
push edi
push dword [ebp + 0xc]
push esi
call fcn.00475519
mov edi, dword [ebp + 8]
mov eax, dword [edi]
add esp, 0x18
push dword [ebp + 0xc]
push edi
call dword [eax + 0x3c]
mov dword [esi + 0x208], eax
cmp eax, ebx
je 0x41370f
mov eax, dword [edi]
lea ecx, [esi + 0x28c]
push ecx
lea ecx, [esi + 0x288]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x44]
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x218]
call fcn.0040d304
mov edi, dword [ebp + 8]
jmp 0x413735
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x413735
push dword [edi + 8]
lea ecx, [esi + 0x218]
push 0x14
push ecx
push ebx
push 0x4d5e78
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push 0x28
lea ecx, [esi + 0x238]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x40]
lea eax, [ebp + 0xc]
push eax
call fcn.0040d3d4
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], edx
call fcn.00402870
xor eax, eax
inc eax
jmp 0x41369c

Function at 0x41386e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4138d0
mov word [ebx], ax
test esi, esi
jne 0x413897
xor eax, eax
jmp 0x4138d0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413893
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00475570
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0040d204
add esp, 0x14
test eax, eax
je 0x413893
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040d2b3
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
leave
ret 0x10
Function at 0x413918
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x413939
xor eax, eax
jmp 0x413989
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
test eax, eax
jne 0x413935
push 0x80020003
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x41433f
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d6110]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d6114]
mov dword [ebp - 8], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41437c
xor eax, eax
xor edx, edx
jmp 0x4143a8
push 8
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x414376
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret 8

Function at 0x4144e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x810
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00475570
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x20]
call fcn.0047eea0
cmp word [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
je 0x414576
movzx ecx, word [esi]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x50]
cmp edx, dword [esp + 0xc]
ja 0x41458e
jb 0x414565
cmp eax, dword [esp + 8]
ja 0x41458e
push esi
call fcn.0047600e
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x41454d
xor eax, eax
mov ecx, dword [esp + 0x814]
pop edi
pop esi
xor ecx, esp
call fcn.004755ea
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
jmp 0x414578

Function at 0x414593
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00475570
add esp, 0xc
push 0x400
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.004755ea
mov esp, ebp
pop ebp
ret 4
Function at 0x414775
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x4b3924
call fcn.00476610
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4147a3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004027b6
lea ecx, [ebp - 0x10]
call fcn.0041583c
mov ecx, eax
call fcn.004158a4
mov edi, dword [ebp + 8]
lea esi, [edi + 4]
mov ecx, esi
call fcn.0041583c
mov ecx, eax
call fcn.004158a4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4147f0
mov edx, dword [esi]
cmp dword [edx - 0xc], ecx
jne 0x4147dc
lea ecx, [eax - 0x10]
jmp 0x414803
test ecx, ecx
jne 0x4147f0
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push edi
call dword [eax + 0x8c]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4147d7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
call fcn.004766e8
ret 8

Function at 0x414c55
Capabilities:
Get file size

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
cmp dword [esp + 0x10], eax
je 0x414c99
push edi
push eax
push 0x80
push 3
push eax
push 7
push closesocket
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414c98
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x414c9f
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x808
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00475570
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe_
lea eax, [ebp - 0x80c]
push eax
call esi
push 0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.360safe.setup.log
lea eax, [ebp - 0x80c]
push eax
call esi
lea eax, [ebp - 0x80c]
push eax
mov ecx, edi
call fcn.004027b6
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.004755ea
leave
ret 8