joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d24f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
cmp dword [0x501964], eax
je 0x48d29e
test eax, eax
je 0x48d29e
push 0
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xc]
call fcn.0040a4c0
leave
ret

Function at 0x48d60b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0x50739c
lea ecx, [ebp - 4]
call fcn.0041af40
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
add esi, 8
sar eax, 3
xor ebx, ebx
test eax, eax
jbe 0x48d69b
mov edi, str._s_c
push ebx
mov ecx, esi
call fcn.0048c96a
push 0
push dword [eax]
lea eax, [ebp - 4]
push edi
push eax
call fcn.00429880
add esp, 0x10
push ebx
mov ecx, esi
call fcn.0048c96a
add eax, 4
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x48d671
push 0
lea ecx, [ebp - 4]
call fcn.0042a6d0
jmp 0x48d68d
push ebx
mov ecx, esi
call fcn.0048c96a
add eax, 4
push 0
push dword [eax]
lea eax, [ebp - 4]
push edi
push eax
call fcn.00429880
add esp, 0x10
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc ebx
sar eax, 3
cmp ebx, eax
jb 0x48d639
xor edi, edi
push edi
lea ecx, [ebp - 4]
call fcn.0042a6d0
lea eax, [ebp - 8]
push eax
push 2
push edi
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48d70a
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea ecx, [ebp - 4]
call fcn.00404970
push eax
push 7
push edi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x48d70a
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404d60
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
xor bl, bl
jmp 0x48d6f8
Function at 0x48da11
Capabilities:
Persist via contextmenuhandlers registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x208
push esi
lea eax, [ebp - 0x70]
push edi
push eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
call fcn.004a0bd0
push esi
lea eax, [ebp + 0x198]
push edi
push eax
call fcn.004a0bd0
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.Directory_shellexContextMenuHandlersSD360
mov ebx, SysReAllocString
push ebx
call edi
test eax, eax
jne 0x48da8c
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], 1
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
push str.CLSID086F171D_5ED1_4ED2_B736_CFF3AD6A128E
push ebx
call edi
test eax, eax
jne 0x48daaf
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x74]
call fcn.0048c8cd
test eax, eax
mov eax, dword [ebp - 0x7c]
je 0x48dac2
push str.MenuEx64.dll
jmp 0x48dac7
push str.MenuEx.dll
push dword [eax + 0x60]
lea eax, [ebp + 0x198]
push 0x4e0d80
push esi
push eax
call fcn.0041b220
add esp, 0x14
cmp dword [ebp - 0x74], 2
jne 0x48db42
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str.CLSID086F171D_5ED1_4ED2_B736_CFF3AD6A128EInprocServer32
push ebx
call edi
test eax, eax
jne 0x48db2c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x4e0c80
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004a2283
pop ecx
pop ecx
test eax, eax
je 0x48db52
lea eax, [ebp + 0x198]
push 1
push eax
call fcn.0048cf27
pop ecx
pop ecx
cmp byte [0x505cd0], 0
jne 0x48dbd1
push 0x50739c
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 1
call fcn.0041af40
push str.UserProfile
mov esi, str.software360TotalSecurity
push esi
lea eax, [ebp - 0x7c]
push 0x4d6b9c
push eax
call fcn.00476b13
and dword [ebp - 0x74], 0
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push esi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x48dbb1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x74], 0
mov edi, dword [ebp - 0x7c]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push str.MenuScan
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea ecx, [edi - 0x10]
call fcn.00404d60
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004a0e91
add ebp, 0x3a4
leave
ret
Function at 0x48e25e
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.0048d99f
test al, al
je 0x48e2f3
push 0x50739c
lea ecx, [ebp - 4]
call fcn.0041af40
lea eax, [ebp - 8]
push eax
call fcn.0047599a
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 4]
push str.__s_safemon_s___start
push eax
call fcn.00404ba0
mov ecx, dword [ebp - 8]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.00404d60
mov esi, dword [ebp - 4]
push 0
push esi
push 0
push ecx
mov ecx, esp
push str.QHSafeTray
call fcn.00404030
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call fcn.00404030
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.0040f060
push eax
call fcn.0040f670
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0040faf0
lea ecx, [esi - 0x10]
call fcn.00404d60
pop esi
leave
ret

Function at 0x48e2f6
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x48e3dd
cmp dword [ebp + 0xc], ebx
je 0x48e3dd
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 8]
call fcn.00404030
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 8]
call fcn.004053a0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48e3d2
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x4e0c60
push esi
push eax
call fcn.00406480
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406480
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00404d60
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push ebx
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push 0x4e0bc8
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [edi - 0x10]
call fcn.00404d60
pop edi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00404d60
pop esi
pop ebx
leave
ret
Function at 0x48e3e1
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x400]
sub esp, 0x480
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x3fc], eax
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004a0bd0
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.004a0bd0
add esp, 0x18
push 0x50739c
lea ecx, [ebp - 0x1c]
call fcn.0041af40
mov edi, 0x400
push edi
lea ecx, [ebp - 0x1c]
call fcn.00404350
push 0x4e0c80
lea ecx, [ebp - 0x18]
mov ebx, eax
call fcn.00404030
lea eax, [ebp - 0x20]
push eax
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e53a
push 0x208
lea eax, [ebp + 0x1f4]
push esi
push eax
mov dword [ebp - 0x28], 0x104
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1f4]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x4e0bc8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e531
mov eax, dword [ebp - 0x24]
dec eax
jne 0x48e4d5
lea eax, [ebp + 0x1f4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404030
push eax
lea ecx, [ebp - 0x18]
call fcn.004044f0
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00404d60
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.safemonQHWatchdog.exe
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48e53a
push ebx
call fcn.00474ed4
pop ecx
test eax, eax
je 0x48e53a
push ebx
lea eax, [ebp - 0x14]
push str.__s___install
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x48e53a
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x3fc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x400
leave
ret
Function at 0x48ef82
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x505cd0], bl
je 0x48f01e
push 0x4d95d8
lea ecx, [ebp - 8]
call fcn.00404030
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0048ee2b
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
cmp eax, 0xffffffff
sete byte [ebp - 1]
add ecx, 0xfffffff0
call fcn.00404d60
cmp byte [ebp - 1], bl
je 0x48f01e
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00476b26
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ecx
mov ecx, esp
push 0x4e0c80
call fcn.00404030
push ecx
mov ecx, esp
push 0x4d9598
call fcn.00404030
push SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.0040f060
push eax
call fcn.0048cc16
pop ecx
lea ecx, [ebp - 0x18]
call fcn.0040faf0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00404d60
pop ebx
leave
ret
Function at 0x48f679
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
call fcn.0048c6b7
test al, al
je 0x48f75c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.004a0bd0
push str.temp_files
lea eax, [edi + 0x5c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00406480
add esp, 0x18
push str.safemonWscReg.exe
push dword [eax]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00404d60
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48f75c
push esi
push 0x50739c
lea ecx, [ebp - 0x80]
call fcn.0041af40
mov esi, 0x104
push esi
lea ecx, [ebp - 0x80]
call fcn.00404af0
push esi
push eax
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x48f72d
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
jmp 0x48f756
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.00404990
push str.AV360_Total_SecurityUpgrade.exe
lea ecx, [ebp - 0x80]
call fcn.004053a0
mov esi, dword [ebp - 0x80]
push esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.0048ebe2
lea ecx, [esi - 0x10]
call fcn.00404d60
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004a0e91
add ebp, 0x190
leave
ret

Function at 0x48fac6
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push eax
call fcn.004a0bd0
add esp, 0xc
push 1
push 0
lea eax, [ebp + 0x18c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x48fb1c
xor al, al
jmp 0x48fb70
xor eax, eax
push esi
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.004a0bd0
add esp, 0xc
push str.lnk1
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x505c38
call fcn.0047a44d
push dword [eax]
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00404d60
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
mov ecx, dword [ebp + 0x394]
xor ecx, ebp
pop esi
call fcn.004a0e91
add ebp, 0x398
leave
ret
Function at 0x490773
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
mov eax, dword [ebp + 0x1d0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1d4]
xor ebx, ebx
test byte [0x50653c], 1
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x70], ebx
mov esi, 0x50651c
jne 0x4907cf
or dword [0x50653c], 1
mov ecx, esi
call fcn.0047dc0c
push 0x4d17c6
call fcn.004a180a
pop ecx
cmp dword [0x506538], ebx
je 0x4907fa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x506518]
sub ecx, eax
cmp ecx, 0x1388
ja 0x4907fa
cmp byte [ebp + 0x1d8], 1
jne 0x4908a3
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4908a3
mov ecx, esi
call fcn.0048f021
push 0x228
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov edi, 0x22c
push ebx
mov dword [ebp - 0x68], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x490895
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00404030
lea ecx, [ebp - 0x6c]
call fcn.0040bf00
mov ecx, eax
call fcn.0040bf50
lea ecx, [ebp - 0x6c]
call fcn.00404fb0
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0048fa01
mov ecx, dword [ebp - 0x60]
push edi
mov dword [eax], ecx
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004a0bd0
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
add ecx, 0xfffffff0
mov dword [ebp - 0x68], edi
call fcn.00404d60
lea eax, [ebp - 0x68]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x49083b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x7c]
push dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
call fcn.00404030
lea ecx, [ebp - 0x6c]
call fcn.00404fb0
push esi
push dword [0x506534]
lea ecx, [ebp - 0x78]
call fcn.00470f5f
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.0047d200
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.004800e4
test al, al
jne 0x4908fd
test edi, edi
je 0x4908f6
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0048fa01
mov eax, dword [eax]
mov dword [edi], eax
mov dword [ebp - 0x70], 1
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 0x1c4]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x1c8
leave
ret
Function at 0x490ca6
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
xor ebx, ebx
push ebx
push ebx
mov ebp, ecx
push ebp
push 0x490c98
push ebx
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xc350
push eax
mov dword [esp + 0x1c], eax
call edi
push ebx
push ebx
push ebp
push 0x48c9e9
push ebx
push ebx
call esi
mov esi, eax
push 0x2710
push esi
call edi
test eax, eax
jne 0x490d16
xor edi, edi
mov ecx, ebp
call fcn.0048c9b4
mov byte [esp + 0x13], al
cmp al, 1
je 0x490d10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jl 0x490cf0
cmp byte [esp + 0x13], bl
jne 0x490d3f
mov ecx, ebp
call fcn.0048e3e1
xor edi, edi
mov ecx, ebp
call fcn.0048c9b4
mov byte [esp + 0x13], al
cmp al, 1
je 0x490d3f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x490d1f
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x490d55
cmp eax, 0xffffffff
je 0x490d55
push eax
call edi
cmp esi, ebx
je 0x490d61
cmp esi, 0xffffffff
je 0x490d61
push esi
call edi
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x490d6c
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
mov eax, dword [ebp + 0x1d4]
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x490db2
xor al, al
mov ecx, dword [ebp + 0x1c8]
xor ecx, ebp
call fcn.004a0e91
add ebp, 0x1cc
leave
ret
push ebx
lea ecx, [ebp - 0x80]
call fcn.00497159
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x505c38
call fcn.0047e32e
test al, al
jne 0x490de5
xor bl, bl
lea ecx, [ebp - 0x80]
call fcn.0047dac7
push dword [ebp - 0x80]
call fcn.0049c830
pop ecx
mov al, bl
pop ebx
jmp 0x490d9d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push eax
mov byte [ebp - 0x41], 1
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
lea ecx, [ebp - 0x4c]
call fcn.004260c0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x4c]
call fcn.004260c0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x54]
call fcn.004800e4
test al, al
jne 0x490f09
push esi
push edi
push 0x4e0c80
lea ecx, [ebp - 0x64]
call fcn.00404030
push str.lnk1
lea ecx, [ebp - 0x68]
call fcn.00404030
lea ecx, [ebp - 0x54]
call fcn.00480158
cmp dword [eax + 0x18], 8
jb 0x490e6e
mov eax, dword [eax + 4]
jmp 0x490e71
add eax, 4
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404030
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x5c]
push esi
push edi
push ebx
lea eax, [ebp - 0x58]
push eax
mov ecx, 0x505c74
call fcn.0047e1ed
lea ecx, [ebx - 0x10]
call fcn.00404d60
lea ecx, [edi - 0x10]
call fcn.00404d60
lea ecx, [esi - 0x10]
call fcn.00404d60
mov esi, dword [ebp - 0x58]
cmp dword [esi - 0xc], 0
je 0x490ed4
push esi
push dword [ebp - 0x60]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x490ed4
mov byte [ebp - 0x41], al
lea ecx, [esi - 0x10]
call fcn.00404d60
lea ecx, [ebp - 0x54]
call fcn.0047cc2b
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x4c]
call fcn.004260c0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x54]
call fcn.004800e4
test al, al
je 0x490e41
pop edi
pop esi
mov bl, byte [ebp - 0x41]
jmp 0x490dcf
Function at 0x491e28
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
push 0x505cb8
lea ecx, [ebp - 4]
call fcn.00404d20
lea eax, [ebp - 4]
lea edi, [esi + 0x60]
push eax
mov ecx, edi
call fcn.004044f0
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404d60
mov eax, dword [edi]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x491e63
xor al, al
jmp 0x491e98
push ebx
lea ebx, [esi + 0x68]
mov ecx, ebx
call fcn.00499b72
cmp al, 1
jne 0x491e8f
push edi
push edi
push esi
push 0x491d78
push edi
push edi
call fcn.004a57c7
add esp, 0x18
test eax, eax
je 0x491e8f
mov ecx, ebx
call fcn.004999b1
xor eax, eax
cmp dword [esi + 0x64], edi
pop ebx
sete al
pop edi
pop esi
leave
ret

Function at 0x491edc
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 0x491efd
xor eax, eax
leave
ret
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 0x491ef9
push 2
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x4922ba
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
mov edi, dword [ebp + 0x3a8]
xor ebx, ebx
push edi
mov byte [ebp - 0x75], bl
call esi
test eax, eax
jne 0x4922f8
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
call esi
test eax, eax
je 0x4923be
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push ebx
push eax
call fcn.004a0bd0
xor eax, eax
push esi
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.004a0bd0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.writeable_test__d.dat
lea eax, [ebp - 0x74]
push 0x208
push eax
call fcn.0041b220
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x4923be
cmp esi, 0xffffffff
je 0x4923be
or dword [ebp - 0x7c], 0xffffffff
push ebx
lea eax, [ebp - 0x80]
push eax
push 2
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x4923be
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x75], 1
mov ecx, dword [ebp + 0x39c]
mov al, byte [ebp - 0x75]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x3a0
leave
ret

Function at 0x49271f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4d7844]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4d7848]
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp dword [eax - 0xc], esi
jge 0x492758
push 0x80070057
call fcn.00404d40
mov ax, word [eax]
push edi
mov word [ebp - 0xc], ax
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x4927a6
mov eax, 0x4190ab00
cmp dword [ebp - 0x18], esi
ja 0x492797
cmp dword [ebp - 0x1c], eax
jbe 0x4927a6
cmp dword [ebp - 0x10], esi
ja 0x4927a1
cmp dword [ebp - 0x14], eax
jbe 0x4927a6
xor eax, eax
inc eax
jmp 0x4927a8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a0e91
leave
ret 4