joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478460
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x4e6030]
xorps xmm0, xmm0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
lea eax, [esp]
push eax
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x4c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
add esp, 0x3c
ret

Function at 0x4784d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x8a8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x8a0], eax
push esi
push 0x800
lea eax, [esp + 0xa4]
mov esi, ecx
push 0
push eax
call fcn.0048fb10
push 0x58
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0048fb10
mov eax, dword [0x4e5c0c]
add esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [0x4e6030]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x24], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x40], 0x81824
mov dword [esp + 0x18], 0x4b5b10
mov dword [esp + 0x3c], str.Select_a_file_to_execute
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], 0
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test esi, esi
je 0x47860a
cmp word [esp + 0xa0], 0
je 0x478626
mov eax, dword [0x4e6030]
xorps xmm0, xmm0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x64]
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x98], xmm0
movaps xmm0, xmmword [0x4c77d0]
push eax
mov dword [esp + 0x68], 0x3c
mov dword [esp + 0x6c], 0x4c
mov dword [esp + 0x74], 0
movups xmmword [esp + 0x7c], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
mov ecx, dword [esp + 0x8a0]
xor ecx, esp
call fcn.0048ea75
add esp, 0x8a8
ret
push dword [esp + 0x24]
push 0x272f
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x8a4]
pop esi
xor ecx, esp
call fcn.0048ea75
add esp, 0x8a8
ret
Function at 0x478890
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47891a
lea eax, [esp + 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47891a
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0048ea75
add esp, 0x20
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0048ea75
add esp, 0x20
ret
Function at 0x4797a0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
sub esp, 0x7dc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x7d8], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x7ce
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
mov dword [esp + 0x1c], ebx
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x14]
push 0x3e8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x47995f
push str.__x86_
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x47983e
mov ecx, eax
lea edx, [esp + 0x14]
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x7d0
jae 0x479979
add eax, 0xc
xor edx, edx
push eax
lea eax, [esp + 0x18]
mov word [esp + ecx + 0x18], dx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x47995f
push str.Kernel32.dll
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
test esi, esi
jne 0x479879
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x479893
push str.Wow64DisableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x479890
lea ecx, [esp + 0xc]
push ecx
call eax
push esi
call ebx
push 0x3e8
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x47995f
push str.__x86_
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4798f7
mov ecx, eax
lea edx, [esp + 0x14]
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x7d0
jae 0x479979
add eax, 0xc
xor edx, edx
push eax
lea eax, [esp + 0x18]
mov word [esp + ecx + 0x18], dx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x47995f
mov edi, dword [esp + 0xc]
test edi, edi
je 0x479942
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x47992c
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x479942
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47993f
push edi
call eax
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x7d8]
xor ecx, esp
call fcn.0048ea75
add esp, 0x7dc
ret
mov ecx, dword [esp + 0x7e4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x7dc
ret
call fcn.0048eba6
int3
Function at 0x47c600
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push 0
push 0
push 0x31
push dword [0x4e5c10]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x4e5c10]
mov dword [0x4e5c08], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4e5c08]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x34
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [esp + 0x10]
push eax
push 0x104
push ebx
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push dword [0x4e5c10]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [sym.imp.GDI32.dll_CreateFontW]
lea eax, [esp + 0x10]
push eax
push 0x22
push 5
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push dword [esp + 0x40]
call esi
mov dword [0x4e5c08], eax
lea eax, [esp + 0x10]
push eax
push 0x22
push 5
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push dword [esp + 0x40]
call esi
mov dword [0x4e624c], eax
lea eax, [esp + 0x10]
push eax
push 0x22
push 5
push 0
push 0
push 1
push 0
push 0
push 1
push 0x190
push 0
push 0
push 0
push dword [esp + 0x40]
call esi
push 0x4e5e28
push 1
push str.ClearFont
push str.OPTIONS
mov dword [0x4e6248], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x47c796
push str.MS_Sans_Serif
push eax
push eax
push eax
push eax
push 1
push eax
push eax
push eax
push 0x190
push eax
push eax
push eax
push 6
call esi
push str.MS_Sans_Serif
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 6
mov dword [0x4e5c08], eax
call esi
push str.MS_Sans_Serif
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 1
push 0x190
push 0
push 0
push 0
push 6
mov dword [0x4e624c], eax
call esi
mov dword [0x4e6248], eax
push 1
push dword [0x4e5c08]
push 0x30
push dword [0x4e5c10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x21c]
pop esi
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x21c
ret

Function at 0x47c7d0
Capabilities:
Read .ini file

Disassembly:
push 0x4e5e28
push 1
push str.SystemTray
push str.OPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x47c88a
mov eax, dword [0x4e6030]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4c6f54
push 0x4e6490
mov dword [0x4e6478], 0x3bc
mov dword [0x4e6484], 0x17
mov dword [0x4e6488], 0x411
mov dword [0x4e647c], eax
mov dword [0x4e6480], 0x6e5769
call esi
push 0x4c6f54
push 0x4e6598
call esi
push 0x6c
push dword [0x4e5c0c]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0x4e6478
push 0
mov dword [0x4e648c], eax
call esi
push 0x6c
push dword [0x4e5c0c]
mov dword [0x4e6484], 2
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x4e6478
push 1
mov dword [0x4e648c], eax
call esi
pop esi
ret
push 0x4e6478
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
ret
Function at 0x48f377
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48f3b6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48f3b6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48f3b6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48f3b6
cmp dword [ecx + 0x74], 0xe
jbe 0x48f3b6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x493613
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004934ae

Function at 0x4a44ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a436b

Function at 0x4a6839
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a64f9

Function at 0x4ac080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ac0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ac0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x76192bd8
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x385e5f46
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402e41
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040625b
xor ebx, ebx
cmp eax, ebx
jne 0x402f24
test byte [ebp + 0x10], 2
je 0x402ea2
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f09
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402ede
test edi, edi
jne 0x402f09
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402e41
test eax, eax
jne 0x402ee7
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402eb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004067e3
test eax, eax
jne 0x402f19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f24
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40324c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x40326c
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40327e
mov dword [ebp - 0xc], 0x797700
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403293
mov ecx, dword [0x7a8ad8]
add ecx, eax
push ecx
call fcn.0040345a
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403444
test eax, eax
je 0x403432
test byte [ebp + 0x17], 0x80
je 0x4033dd
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ce58], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40ce40], 0xb
mov dword [ebp + 8], eax
jle 0x40343a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4032e9
mov esi, dword [ebp + 0x14]
mov edi, 0x793700
push esi
push edi
call fcn.00403444
test eax, eax
je 0x403432
sub dword [ebp + 0x14], esi
mov dword [0x40ce30], edi
mov dword [0x40ce34], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce30
mov dword [0x40ce38], edi
mov dword [0x40ce3c], eax
call fcn.0040693e
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4033d5
mov esi, dword [0x40ce38]
sub esi, edi
call ebx
test byte [0x7a8b34], 1
mov edi, eax
je 0x403390
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403357
cmp dword [ebp + 0x14], 0
jne 0x403390
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405456
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4033c9
cmp dword [ebp + 0x10], 0
jne 0x4033af
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405f96
test eax, eax
je 0x4033d9
add dword [ebp - 4], esi
jmp 0x4033bd
mov eax, dword [0x40ce38]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x40330c
jmp 0x40343a
cmp dword [ebp + 0x14], 0
jg 0x4032dc
jmp 0x40343a
push 0xfffffffffffffffc
jmp 0x403434
push 0xfffffffffffffffe
jmp 0x403434
test edi, edi
jne 0x40341f
cmp dword [ebp + 0x14], edi
jle 0x40343a
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4033f3
mov esi, ebx
mov edi, 0x793700
push esi
push edi
call fcn.00403444
test eax, eax
je 0x403432
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405f96
test eax, eax
je 0x4033d9
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4033e9
jmp 0x40343a
cmp dword [ebp + 0x14], esi
jge 0x403427
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403444
test eax, eax
jne 0x403437
push 0xfffffffffffffffd
pop eax
jmp 0x40343d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405925
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405976
xor eax, eax
jmp 0x40599d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40599d
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405972
call esi
pop esi
leave
ret 4

Function at 0x4059d7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a4f50], 0x44
push eax
xor eax, eax
push 0x7a4f50
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405a16
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a1a
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405ab8
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405ebf
mov edi, eax
cmp edi, 0xffffffff
je 0x405af9
test byte [esp + 0x10], 1
push esi
je 0x405adb
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405ae1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405aea
xor eax, eax
inc eax
jmp 0x405afb
test byte [esp + 0x10], 4
jne 0x405af9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b00
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405dcb
test bl, 8
mov dword [ebp - 8], eax
je 0x405b3f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8b08], eax
jmp 0x405cbc
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b59
test eax, eax
je 0x405c6a
test bl, 2
je 0x405c6a
mov esi, 0x7a3f50
push edi
push esi
call fcn.004063ee
cmp dword [ebp + 8], 0
je 0x405b78
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405b7e
push edi
call fcn.00405d0f
cmp word [edi], 0
jne 0x405b8e
cmp word [0x7a3f50], 0x5c
jne 0x405b99
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c5f
cmp word [ebp - 0x22c], 0x2e
jne 0x405be3
cmp word [ebp - 0x22a], 0
je 0x405c42
cmp word [ebp - 0x22a], 0x2e
jne 0x405be3
cmp word [ebp - 0x228], 0
je 0x405c42
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004063ee
test byte [ebp - 0x258], 0x10
je 0x405c0e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c42
push dword [ebp + 0xc]
push edi
call fcn.00405b00
jmp 0x405c42
push dword [ebp - 4]
push edi
call fcn.00405ab8
test eax, eax
jne 0x405c3a
cmp dword [ebp - 4], eax
je 0x405c32
push edi
push 0xfffffffffffffff1
call fcn.00405456
push 0
push edi
call fcn.004061b4
jmp 0x405c42
inc dword [0x7a8b08]
jmp 0x405c42
push edi
push 0xfffffffffffffff2
call fcn.00405456
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405bbb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c6a
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405cbc
cmp dword [ebp - 8], esi
jne 0x405c7e
inc dword [0x7a8b08]
jmp 0x405cbc
push edi
call fcn.0040674c
test eax, eax
je 0x405cbc
push edi
call fcn.00405cc3
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405ab8
test eax, eax
jne 0x405cb4
cmp dword [ebp - 4], esi
je 0x405c76
push edi
push 0xfffffffffffffff1
call fcn.00405456
push esi
push edi
call fcn.004061b4
jmp 0x405cbc
push edi
push 0xffffffffffffffe5
call fcn.00405456
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405dcb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a4750
push esi
call fcn.004063ee
push esi
call fcn.00405d6e
mov edi, eax
test edi, edi
jne 0x405dec
xor eax, eax
jmp 0x405e44
push edi
call fcn.0040669d
test byte [0x7a8a7c], 0x80
je 0x405e09
mov ax, word [edi]
test ax, ax
je 0x405de8
cmp ax, 0x5c
je 0x405de8
sub edi, esi
sar edi, 1
jmp 0x405e23
call fcn.0040674c
test eax, eax
je 0x405e1d
test byte [eax], 0x10
je 0x405de8
push esi
call fcn.00405d0f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e0f
call fcn.00405cc3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ebf
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ede
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405ee4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405f13
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405f63
test edi, edi
jne 0x405f20
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f5d