joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412ac0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.00474e12
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045469b
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00475212
add esp, 8
mov byte [ebp - 1], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x412b2a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jg 0x412b98
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5c
jne 0x412b96
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov cx, word [eax + edx*2]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov word [eax + edx*2], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412b7f
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x412b7f
mov byte [ebp - 1], 0
jmp 0x412b98
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0x18]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x412b21
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004546a0
add esp, 4
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x414eb0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414ef5
xor eax, eax
jmp 0x414ff4
mov word [ebp - 0x220], 0
push 0x206
push 0
lea ecx, [ebp - 0x21e]
push ecx
call fcn.00474d50
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], 1
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4cb34c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414fd2
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [ebp - 0x428], 0
push 0x206
push 0
lea edx, [ebp - 0x426]
push edx
call fcn.00474d50
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea ecx, [ebp - 0x428]
push ecx
call fcn.004751e8
add esp, 8
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414fb8
xor eax, eax
jmp 0x414ff4
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00475212
add esp, 8
mov eax, 1
jmp 0x414ff4
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00475212
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x415430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
mov word [ebp - 0x440], 0
push 0x206
push 0
lea eax, [ebp - 0x43e]
push eax
call fcn.00474d50
add esp, 0xc
mov word [ebp - 0x220], 0
push 0x206
push 0
lea ecx, [ebp - 0x21e]
push ecx
call fcn.00474d50
add esp, 0xc
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x444], 1
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
push str.htmlfile
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x415503
xor eax, eax
jmp 0x4155f7
lea eax, [ebp - 0x22c]
push eax
push 0x20019
push 0
push str.shell
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x415536
xor eax, eax
jmp 0x4155f7
lea edx, [ebp - 0x234]
push edx
push 0x20019
push 0
push str.opencommand
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x41556c
xor eax, eax
jmp 0x4155f7
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4cb454
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x440]
push ecx
call fcn.00476f12
add esp, 4
mov dword [ebp - 0x224], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x224]
push eax
call fcn.004064b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4155f2
xor eax, eax
jmp 0x4155f7
mov eax, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x415750
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe0
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 0x40], eax
push 0x7d0
lea eax, [ebp - 0xfe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4cb4a0
push 0x4cb500
call fcn.00474e12
add esp, 4
lea ecx, [ebp + eax*2 - 0xfe0]
push ecx
call fcn.00475212
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xfe0]
push eax
call fcn.004751e8
add esp, 8
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00474d50
add esp, 0xc
mov dword [ebp - 0x30], 0x4cb508
mov dword [ebp - 0x38], 0x200
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 1
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x4cb514
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x415800
lea ecx, [ebp - 0xfe0]
push ecx
call fcn.00415c80
add esp, 4
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret

Function at 0x415a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push eax
call fcn.00474e12
add esp, 4
test eax, eax
jne 0x415a78
jmp 0x415acb
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00474d50
add esp, 0xc
mov dword [ebp - 0x30], 0x4cb598
mov dword [ebp - 0x38], 0x200
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 1
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x4cb5a4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x415acb
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415c80
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x415b90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.00474d50
add esp, 0xc
mov dword [ebp - 0x830], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x7e8]
push ecx
call fcn.00474d50
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x4cb5c8
lea eax, [ebp - 0x7d8]
push eax
call fcn.00474c76
add esp, 0xc
lea ecx, [ebp - 0x7e8]
push ecx
lea edx, [ebp - 0x830]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x7d8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x415c1a
jmp 0x415c6b
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x415c51
cmp dword [ebp + 0x10], 0
jle 0x415c33
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x834], edx
jmp 0x415c3d
mov dword [ebp - 0x834], 0xffffffff
mov eax, dword [ebp - 0x834]
push eax
mov ecx, dword [ebp - 0x7e8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x7e8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7e4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x415c80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.00474d50
add esp, 0xc
mov dword [ebp - 0x830], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x7e8]
push ecx
call fcn.00474d50
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x4cb5d0
lea eax, [ebp - 0x7d8]
push eax
call fcn.00474c76
add esp, 0xc
lea ecx, [ebp - 0x7e8]
push ecx
lea edx, [ebp - 0x830]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x7d8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x415d0a
jmp 0x415d24
mov ecx, dword [ebp - 0x7e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x7e4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret

Function at 0x415f10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x415f30
xor eax, eax
jmp 0x416089
mov word [ebp - 0x218], 0
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00474d50
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.00475212
add esp, 8
lea eax, [ebp - 0x218]
push eax
call fcn.004773be
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x450], 0
push 0x228
push 0
lea ecx, [ebp - 0x44c]
push ecx
call fcn.00474d50
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x415fc4
xor eax, eax
jmp 0x416089
mov dword [ebp - 0x450], 0x22c
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41607a
mov word [ebp - 0x660], 0
push 0x206
push 0
lea ecx, [ebp - 0x65e]
push ecx
call fcn.00474d50
add esp, 0xc
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x660]
push eax
call fcn.00475212
add esp, 8
lea ecx, [ebp - 0x660]
push ecx
call fcn.004773be
add esp, 4
mov dword [ebp - 0x454], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x454]
push eax
call fcn.00474de0
add esp, 8
test eax, eax
jne 0x41605f
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x448]
jmp 0x416089
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x415fe9
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x416770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x416794
xor eax, eax
jmp 0x416805
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
mov edx, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x416802
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x417230
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, 1
test eax, eax
je 0x4172c1
mov word [ebp - 0x218], 0
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00474d50
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417291
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4172ac
jmp 0x4172c1
cmp dword [ebp - 8], 0xa
jl 0x4172b6
xor eax, eax
jmp 0x4172c6
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x417251
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x4176a0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push str..del
mov eax, dword [ebp + 8]
push eax
call fcn.004064b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4176e0
push 5
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4177d3
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov edx, 1
test edx, edx
je 0x4177c5
mov dword [ebp - 0x10], 1
mov word [ebp - 0x220], 0
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.00474d50
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x417741
mov ecx, dword [ebp + 8]
push ecx
push str._s.del
lea edx, [ebp - 0x220]
push edx
call fcn.00474c76
add esp, 0xc
jmp 0x41775d
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s.del_d
lea edx, [ebp - 0x220]
push edx
call fcn.00474c76
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41777e
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41779a
cmp dword [ebp - 0xc], 0xa
jl 0x41778c
jmp 0x4177d3
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4176ee
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004782ca
add esp, 8
push 5
push 0
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4177d3
push 5
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x4177f0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417816
jmp 0x4179d5
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41782e
jmp 0x4179d5
mov word [ebp - 0x210], 0
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00474d50
add esp, 0xc
mov word [ebp - 0x420], 0
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.00474d50
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00416a20
add esp, 8
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x424], 0
mov ecx, 1
test ecx, ecx
je 0x4179d5
mov dword [ebp - 0x428], 1
mov word [ebp - 0x630], 0
push 0x206
push 0
lea edx, [ebp - 0x62e]
push edx
call fcn.00474d50
add esp, 0xc
cmp dword [ebp - 0x424], 0
jne 0x417908
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x420]
push ecx
push str._s_s.del
lea edx, [ebp - 0x630]
push edx
call fcn.00474c76
add esp, 0x10
jmp 0x417931
mov eax, dword [ebp - 0x424]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x420]
push edx
push str._s_s.del_d
lea eax, [ebp - 0x630]
push eax
call fcn.00474c76
add esp, 0x14
lea ecx, [ebp - 0x630]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417955
lea edx, [ebp - 0x630]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x41797d
cmp dword [ebp - 0x424], 0xa
jl 0x417969
jmp 0x4179d5
mov eax, dword [ebp - 0x424]
add eax, 1
mov dword [ebp - 0x424], eax
jmp 0x4178a5
lea ecx, [ebp - 0x630]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004782ca
add esp, 8
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4179b2
push 5
push 0
lea ecx, [ebp - 0x630]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4179ce
push 5
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4179d5
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x4190a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
push 0
lea ecx, [ebp - 0x150]
push ecx
call fcn.00474d50
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 5
jg 0x41910f
cmp dword [ebp - 8], 2
jg 0x41910f
mov eax, 1
jmp 0x419111
xor eax, eax
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x41a200
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1620
call fcn.00476c90
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x9e8], 0
push 0x206
push 0
lea eax, [ebp - 0x9e6]
push eax
call fcn.00474d50
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x4cb9b8
lea edx, [ebp - 0x9e8]
push edx
call fcn.00474c76
add esp, 0xc
lea eax, [ebp - 0x9e8]
push eax
call fcn.00474e12
add esp, 4
mov dword [ebp - 0x7dc], eax
mov ecx, dword [ebp - 0x7dc]
sub ecx, 1
test ecx, ecx
jle 0x41a293
mov edx, dword [ebp - 0x7dc]
movzx eax, word [ebp + edx*2 - 0x9ea]
cmp eax, 0x5c
je 0x41a293
mov ecx, dword [ebp - 0x7dc]
mov word [ebp + ecx*2 - 0x9e8], 0x5c
lea edx, [ebp - 0x9e8]
push edx
push 0x4cb9c0
lea eax, [ebp - 0x7d8]
push eax
call fcn.00474c76
add esp, 0xc
lea ecx, [ebp - 0xc40]
push ecx
lea edx, [ebp - 0x7d8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc44], eax
cmp dword [ebp - 0xc44], 0xffffffff
je 0x41a3c0
lea eax, [ebp - 0xc40]
push eax
mov ecx, dword [ebp - 0xc44]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x9ec], eax
cmp dword [ebp - 0x9ec], 0
jne 0x41a2fd
jmp 0x41a3c0
movzx edx, word [ebp - 0xc14]
cmp edx, 0x2e
jne 0x41a30b
jmp 0x41a2c8
movzx eax, word [ebp - 0xc12]
test eax, eax
jne 0x41a318
jmp 0x41a2c8
movzx ecx, word [ebp - 0xc12]
cmp ecx, 0x2e
jne 0x41a331
movzx edx, word [ebp - 0xc10]
test edx, edx
jne 0x41a331
jmp 0x41a2c8
mov eax, dword [ebp - 0xc40]
and eax, 0x10
je 0x41a38c
mov word [ebp - 0x1620], 0
push 0x206
push 0
lea ecx, [ebp - 0x161e]
push ecx
call fcn.00474d50
add esp, 0xc
lea edx, [ebp - 0xc14]
push edx
lea eax, [ebp - 0x9e8]
push eax
push str._s_s_
lea ecx, [ebp - 0x1620]
push ecx
call fcn.00474c76
add esp, 0x10
lea edx, [ebp - 0x1620]
push edx
call fcn.0041a200
add esp, 4
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0x9e8]
push ecx
push 0x4cb9d8
lea edx, [ebp - 0x1418]
push edx
call fcn.00474c76
add esp, 0x10
lea eax, [ebp - 0x1418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41a2c8
mov ecx, dword [ebp - 0xc44]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xc44], 0xffffffff
push 0x20
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret
Function at 0x41a400
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.00476c90
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x7d8]
push ecx
call fcn.00474c76
add esp, 0xc
lea edx, [ebp - 0xa30]
push edx
lea eax, [ebp - 0x7d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa34], eax
cmp dword [ebp - 0xa34], 0xffffffff
je 0x41a538
lea ecx, [ebp - 0xa30]
push ecx
mov edx, dword [ebp - 0xa34]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x7dc], eax
cmp dword [ebp - 0x7dc], 0
jne 0x41a47e
jmp 0x41a538
movzx eax, word [ebp - 0xa04]
cmp eax, 0x2e
jne 0x41a48c
jmp 0x41a449
movzx ecx, word [ebp - 0xa02]
test ecx, ecx
jne 0x41a499
jmp 0x41a449
movzx edx, word [ebp - 0xa02]
cmp edx, 0x2e
jne 0x41a4b2
movzx eax, word [ebp - 0xa00]
test eax, eax
jne 0x41a4b2
jmp 0x41a449
mov word [ebp - 0x1410], 0
push 0x206
push 0
lea ecx, [ebp - 0x140e]
push ecx
call fcn.00474d50
add esp, 0xc
lea edx, [ebp - 0xa04]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x4cb9f0
lea ecx, [ebp - 0x1208]
push ecx
call fcn.00474c76
add esp, 0x10
lea edx, [ebp - 0x1410]
push edx
lea eax, [ebp - 0xa04]
push eax
call fcn.00416d40
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1410]
push edx
call fcn.00474de0
add esp, 8
test eax, eax
jne 0x41a52e
lea eax, [ebp - 0x1208]
push eax
call fcn.004177f0
add esp, 4
jmp 0x41a533
jmp 0x41a449
jmp 0x41a449
mov ecx, dword [ebp - 0xa34]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret