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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b87d
cmp dword [ebp + 0xc], 1
je 0x40b855
cmp dword [ebp + 0xc], 2
je 0x40b855
push 0xd
pop eax
jmp 0x40b87d
mov eax, dword [ebp - 4]
test edi, edi
je 0x40b877
test eax, eax
je 0x40b872
test al, 1
jne 0x40b850
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40b877
jmp 0x40b850
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40bb7e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4af000
push 0x468d70
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a18
call fcn.00467130
mov eax, dword [0x4be8a0]
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 0x40bcd7
push eax
call fcn.004673c7
pop ecx
cmp eax, 0x104
ja 0x40bcd7
mov dword [ebp - 4], edi
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40bc13
mov esi, 0x800
push esi
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.004670a0
mov dword [ebp - 0xa28], edi
push 0x2000
push edi
lea eax, [ebp - 0x2a30]
push eax
call fcn.004670a0
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 0x40bcd7
push 0x104
push dword [ebp - 0xa2c]
lea eax, [ebp - 0x224]
push eax
call fcn.00467050
lea eax, [ebp - 0x224]
push eax
call fcn.00467f19
add esp, 0x10
cmp dword [ebp - 0xa28], edi
jbe 0x40bcd7
lea esi, [ebp + edi*4 - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
push dword [esi]
call fcn.0040bfa6
test eax, eax
je 0x40bcce
lea eax, [ebp - 0xa24]
push eax
call fcn.00467f19
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00467abb
add esp, 0xc
test eax, eax
jne 0x40bcce
mov eax, dword [ebx]
push dword [esi]
push ebx
call dword [eax + 0x18]
inc edi
cmp edi, dword [ebp - 0xa28]
jb 0x40bc87
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.0046711a
leave
ret 8
Function at 0x40bcf5
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4af308
push 0x468d70
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a24
call fcn.00467130
mov eax, dword [0x4be8a0]
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 - 0xa2c], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa30], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xa34], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xa3c], ecx
test eax, eax
je 0x40bef7
push eax
call fcn.004673c7
pop ecx
mov dword [ebp - 0xa38], eax
cmp eax, 4
jl 0x40bef7
cmp eax, 0x104
jg 0x40bef7
and dword [ebp - 4], 0
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40bda8
mov esi, 0x800
push esi
xor edi, edi
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.004670a0
mov dword [ebp - 0xa28], edi
push 0x2000
push edi
lea eax, [ebp - 0x2a3c]
push eax
call fcn.004670a0
add esp, 0x18
lea eax, [ebp - 0xa28]
push eax
push esi
lea eax, [ebp - 0x2a3c]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40bef7
push 0x104
push dword [ebp - 0xa30]
lea eax, [ebp - 0x224]
push eax
call fcn.00467050
lea eax, [ebp - 0x224]
push eax
call fcn.00467f19
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xa30], eax
push eax
call fcn.0040d45b
mov dword [ebp - 0xa2c], eax
cmp dword [ebp - 0xa28], edi
jbe 0x40bef7
lea esi, [ebp + edi*4 - 0x2a3c]
mov eax, dword [esi]
cmp dword [ebp - 0xa30], eax
je 0x40beea
cmp dword [ebp - 0xa2c], eax
je 0x40beea
lea ecx, [ebp - 0xa24]
push ecx
push eax
call fcn.0040bfa6
test eax, eax
je 0x40beea
lea eax, [ebp - 0xa24]
push eax
call fcn.00467f19
push dword [ebp - 0xa38]
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0046b2b5
add esp, 0x10
test eax, eax
jne 0x40beea
mov eax, dword [ebx]
push dword [esi]
push ebx
call dword [eax + 0x18]
cmp dword [ebp - 0xa34], 0
je 0x40bec8
push dword [ebp - 0xa3c]
push edi
push dword [ebp - 0xa28]
push eax
lea eax, [ebp - 0xa24]
push eax
call dword [ebp - 0xa34]
push str.360TRAY.EXE
lea eax, [ebp - 0xa24]
push eax
call fcn.00468efc
pop ecx
pop ecx
test eax, eax
je 0x40beea
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [ebp - 0xa28]
jb 0x40be3e
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.0046711a
leave
ret 0x10
Function at 0x40bf15
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 0x40bf70
lea eax, [ebp - 0x10]
push eax
push 0x4a2430
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 0x40bf77
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 0x40bfa2
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 0x40c1ed
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4b15c8
push 0x468d70
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4be8a0]
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 - 0x24], esi
mov edi, dword [ebp + 0x810]
mov dword [ebp - 0x20], 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 0x40c3b7
cmp word [edi], 0
je 0x40c3b7
push edi
call fcn.004673c7
pop ecx
cmp eax, 0x104
ja 0x40c3b7
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c3b7
test ebx, ebx
mov eax, ebx
jne 0x40c297
mov eax, 0x4a11e8
push eax
push edi
push dword [0x4c3870]
mov edi, str._sRun_App__s__s
push edi
call fcn.0040d1f4
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea eax, [ebp + 2]
push eax
call fcn.004670a0
push dword [ebp - 0x20]
push str.__s_
push 0x3ff
lea eax, [ebp]
push eax
call fcn.0040b9d3
push 0x3c
pop esi
push esi
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.004670a0
add esp, 0x38
mov dword [ebp - 0x68], esi
lea eax, [ebp]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], str.open
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp + 0x818]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], 0x1440
xor esi, esi
cmp dword [ebp + 0x81c], esi
je 0x40c327
push dword [ebp - 0x20]
call fcn.0040d9f2
pop ecx
test eax, eax
jne 0x40c327
push esi
call fcn.00468649
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40c34f
cmp dword [ebp + 0x820], esi
je 0x40c34f
push dword [ebp + 0x828]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x28], esi
je 0x40c365
cmp dword [ebp - 0x1c], esi
je 0x40c373
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], esi
je 0x40c373
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jne 0x40c37c
mov ebx, 0x4a11e8
push ebx
push dword [ebp - 0x20]
push dword [0x4c3874]
push edi
mov esi, dword [ebp - 0x24]
call fcn.0040d1f4
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x40c3c0
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.0046711a
add ebp, 0x804
leave
ret 0x20
Function at 0x40c3e5
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4b15a8
push 0x468d70
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4be8a0]
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 - 0x24], esi
mov edi, dword [ebp + 0x810]
mov dword [ebp - 0x20], 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 0x40c5ca
cmp word [edi], 0
je 0x40c5ca
push edi
call fcn.004673c7
pop ecx
cmp eax, 0x104
ja 0x40c5ca
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c5ca
test ebx, ebx
mov eax, ebx
jne 0x40c48f
mov eax, 0x4a11e8
push eax
push edi
push dword [0x4c3870]
mov ebx, str._sRun_App__s__s
push ebx
call fcn.0040d1f4
xor eax, eax
mov word [ebp], ax
push 0x7fe
push eax
lea eax, [ebp + 2]
push eax
call fcn.004670a0
push edi
push str.__s_
push 0x3ff
lea eax, [ebp]
push eax
call fcn.0040b9d3
push 0x3c
pop edi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.004670a0
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], 0x1440
cmp dword [ebp + 0x81c], esi
je 0x40c51f
push dword [ebp - 0x20]
call fcn.0040d9f2
pop ecx
test eax, eax
jne 0x40c51f
push esi
call fcn.00468649
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x820], esi
je 0x40c562
cmp eax, esi
je 0x40c562
push dword [ebp + 0x828]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c562
cmp dword [ebp + 0x82c], esi
je 0x40c562
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push dword [ebp - 0x20]
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x28], esi
je 0x40c578
cmp dword [ebp - 0x1c], esi
je 0x40c586
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], esi
je 0x40c586
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x40c58f
mov edi, 0x4a11e8
push edi
push dword [ebp - 0x20]
push dword [0x4c3874]
push ebx
mov esi, dword [ebp - 0x24]
call fcn.0040d1f4
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x40c5d3
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.0046711a
add ebp, 0x804
leave
ret 0x24
Function at 0x40c5f8
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x18
mov eax, 0x48c766
call fcn.004677fa
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 0x40c7b1
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
call fcn.0040d8c1
cmp eax, ebx
jl 0x40c7a0
mov eax, edi
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040d979
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x18]
cmp esi, ebx
sete al
cmp al, bl
je 0x40c697
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x40c7a0
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x40c7a0
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x40c6a8
push 0x80004003
call fcn.00466da0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x40c681
cmp dword [ebp - 0x20], ebx
je 0x40c6ce
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40c69e
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x40c681
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40c69e
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x40c681
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.004670a0
push 0x400
push dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.00467050
add esp, 0x18
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp + 0x820], ebx
jle 0x40c72c
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40c69e
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 0x40c69e
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x40c681
cmp esi, ebx
je 0x40c69e
mov eax, dword [esi]
push edi
push dword [ebp - 0x24]
push esi
call dword [eax + 0x18]
mov byte [ebp - 4], bl
test eax, eax
mov eax, dword [esi]
push esi
jl 0x40c68f
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40c77d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x40c7b3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40c7b1
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.0046711a
add ebp, 0x804
leave
ret 0x18
Function at 0x40c7d8
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0
mov eax, 0x48a5ba
call fcn.004677c7
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x40c818
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x40c818
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004029f9
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c822
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004023e9
xor eax, eax
call fcn.0046789f
ret 0xc
mov eax, dword [ebp + 0xc]
mov edi, 0x100
cmp dword [eax - 0xc], edi
jl 0x40c834
lea ecx, [eax - 0x10]
jmp 0x40c813
push 0x298
push ebx
push esi
call fcn.004670a0
push edi
push dword [ebp + 0xc]
push esi
call fcn.00467050
mov edi, dword [ebp + 8]
mov eax, dword [edi]
add esp, 0x18
push dword [ebp + 0xc]
push edi
call dword [eax + 0x38]
mov dword [esi + 0x208], eax
cmp eax, ebx
je 0x40c887
mov eax, dword [edi]
push ebx
lea ecx, [esi + 0x288]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x40]
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x218]
call fcn.004120bd
mov edi, dword [ebp + 8]
jmp 0x40c8ad
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x40c8ad
push dword [edi + 8]
lea ecx, [esi + 0x218]
push 0x10
push ecx
push ebx
push 0x4a2538
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 + 0x3c]
lea eax, [ebp + 0xc]
push eax
call fcn.0041218d
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], edx
call fcn.004023e9
xor eax, eax
inc eax
jmp 0x40c81a

Function at 0x40c9e6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4be8a0]
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 0x40ca48
mov word [ebx], ax
test esi, esi
jne 0x40ca0f
xor eax, eax
jmp 0x40ca48
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ca0b
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004670a0
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.00411fc2
add esp, 0x14
test eax, eax
je 0x40ca0b
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp + 0x14]
call fcn.0041206c
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046711a
leave
ret 0x10
Function at 0x40ca8d
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 0x40caae
xor eax, eax
jmp 0x40cafe
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 0x40caaa
push 0x80020003
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
leave
ret 4

Function at 0x40ce2e
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a2674]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4a2678]
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 0x40ce6b
xor eax, eax
xor edx, edx
jmp 0x40ce97
push 8
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004670a0
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 0x40ce65
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046711a
leave
ret 8

Function at 0x40cfd3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x810
mov eax, dword [0x4be8a0]
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.004670a0
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.0046e560
cmp word [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
je 0x40d065
movzx ecx, word [esi]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x4c]
cmp edx, dword [esp + 0xc]
ja 0x40d07d
jb 0x40d054
cmp eax, dword [esp + 8]
ja 0x40d07d
push esi
call fcn.004673c7
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x40d03c
xor eax, eax
mov ecx, dword [esp + 0x814]
pop edi
pop esi
xor ecx, esp
call fcn.0046711a
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
jmp 0x40d067

Function at 0x40d082
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.004670a0
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.0046711a
mov esp, ebp
pop ebp
ret 4
Function at 0x40d264
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x48b133
call fcn.004677c7
push 0x4c4f30
lea ecx, [ebp - 0x10]
call fcn.00401ce4
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x40d292
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004025eb
lea ecx, [ebp - 0x10]
call fcn.00408131
mov ecx, eax
call fcn.004080bb
mov edi, dword [ebp + 8]
lea esi, [edi + 4]
mov ecx, esi
call fcn.00408131
mov ecx, eax
call fcn.004080bb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x40d2df
mov edx, dword [esi]
cmp dword [edx - 0xc], ecx
jne 0x40d2cb
lea ecx, [eax - 0x10]
jmp 0x40d2f2
test ecx, ecx
jne 0x40d2df
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push edi
call dword [eax + 0x88]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x40d2c6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004023e9
call fcn.0046789f
ret 8

Function at 0x40d745
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 0x40d789
push edi
push eax
push 0x80
push 3
push eax
push 7
push SysReAllocString
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d788
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 0x40d78f
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4be8a0]
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.004670a0
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.004025eb
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0046711a
leave
ret 8

Function at 0x40d9f2
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x4c6514], 0
jne 0x40da00
jmp fcn.00402346
jmp fcn.00401dbb