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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
mov dword [ebp - 0x18], 1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x81b197
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x56194a
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
push 0
push str.NumberOfDevices
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x56194a
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x56194a
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x56195b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
cmp eax, edx
jle 0x561963
or eax, 0xffffffff
jmp 0x561a17
mov edx, dword [ebp + 8]
dec edx
push edx
push 0x81b1e9
push str._sDevice_d
lea ecx, [ebp - 0x11c]
push ecx
call fcn.006712b0
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 8]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x11c]
push ecx
push SysStringLen
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5619b6
or eax, 0xffffffff
jmp 0x561a17
movsx edx, byte [ebp + 0xc]
push edx
push 0x81b21f
lea ecx, [ebp - 0x220]
push ecx
call fcn.006712b0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.0066ce38
pop ecx
inc eax
push eax
lea edx, [ebp - 0x220]
push edx
push 1
push 0
push str.DRIVE
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x561a0d
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x561a17
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x563f40
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
call sub.KERNEL32.DLL_GetVersion
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x80000000
jae 0x563faf
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
push edx
push 0x28
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenProcessToken
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0x81b701
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
push 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0
push 1
call sub.USER32.DLL_ExitWindowsEx
mov esp, ebp
pop ebp
ret
Function at 0x56c958
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x56c9b4
push 0
lea edx, [ebp - 0xc]
push edx
push 0xc
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0x2d1080
push dword [ebp - 8]
call sub.KERNEL32.DLL_DeviceIoControl
mov dword [ebp - 4], eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
test eax, eax
je 0x56c9b4
mov eax, dword [ebp - 0x14]
jmp 0x56c9b7
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x56c9bc
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 0x12c], edx
xor ecx, ecx
mov dword [ebp - 0x128], ecx
push dword [ebp + 8]
push 0x81f1d3
lea eax, [ebp - 0x120]
push eax
call fcn.006712b0
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x120]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, 0xffffffff
je 0x56cadb
push 0
lea eax, [ebp - 0xc]
push eax
push 8
lea edx, [ebp - 0x1c]
push edx
push 0xc
lea ecx, [ebp - 0x12c]
push ecx
push 0x2d1400
push dword [ebp - 8]
call sub.KERNEL32.DLL_DeviceIoControl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x56ca56
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x56cadd
push dword [ebp - 0x18]
call fcn.0066c62c
pop ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x56cadb
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
push 0
lea ecx, [ebp - 0xc]
push ecx
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
push dword [ebp - 0x14]
push 0xc
lea edx, [ebp - 0x12c]
push edx
push 0x2d1400
push dword [ebp - 8]
call sub.KERNEL32.DLL_DeviceIoControl
mov dword [ebp - 4], eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x56caca
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
cmp edx, 7
jne 0x56cad2
push dword [ebp - 0x10]
call fcn.0066c63c
pop ecx
mov eax, 1
jmp 0x56cadd
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call fcn.0066c63c
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x56d268
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov eax, dword [ebp + 8]
test eax, eax
jne 0x56d27f
xor eax, eax
jmp 0x56d39b
mov edx, dword [ebp + 8]
mov byte [edx + 0x2b8], 0
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx + 0x214]
push eax
push 0x81f3b1
lea edx, [ebp - 0x114]
push edx
call fcn.006712b0
add esp, 0xc
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 8], eax
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea ecx, [ebp - 0x114]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x56d332
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x56d302
push 0x5a86
call fcn.00402b9c
pop ecx
push eax
mov edx, dword [ebp + 8]
add edx, 0x2b8
push edx
call fcn.006712b0
add esp, 8
jmp 0x56d326
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402b9c
pop ecx
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x2b8
push ecx
call fcn.006712b0
add esp, 0xc
push dword [ebp - 8]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x56d39b
push 0
lea edx, [ebp - 0x10]
push edx
push pe_nt_image_headers32
mov ecx, dword [ebp + 8]
add ecx, 0x424
push ecx
push dword [ebp - 4]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x56d364
mov edx, dword [ebp - 0x10]
cmp edx, 0x200
je 0x56d388
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402b9c
pop ecx
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x2b8
push ecx
call fcn.006712b0
add esp, 0xc
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 8]
call sub.KERNEL32.DLL_SetErrorMode
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x56d8d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [ebp + 0x14]
cdq
push edx
push eax
mov eax, pe_nt_image_headers32
xor edx, edx
call fcn.00674900
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x230]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x56d92c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x56d954
push dword [ebp + 0x14]
call fcn.00462ba8
push eax
push str.Error__s_writing_the_device_at__d_SetFilePointer_.
mov edx, dword [ebp + 8]
add edx, 0x2b8
push edx
call fcn.006712b0
add esp, 0x10
or eax, 0xffffffff
jmp 0x56d9f3
push 0
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0x10]
shl ecx, 9
push ecx
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x230]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x56d99b
push dword [ebp + 0x14]
call fcn.00462ba8
push eax
push str.Error__s_writing_the_device_at__d_WriteFile_.
mov edx, dword [ebp + 8]
add edx, 0x2b8
push edx
call fcn.006712b0
add esp, 0x10
or eax, 0xffffffff
jmp 0x56d9f3
mov edx, dword [ebp + 0x10]
shl edx, 9
mov ecx, dword [ebp - 0xc]
cmp edx, ecx
je 0x56d9d7
push dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
shr eax, 9
push eax
push dword [ebp + 0x14]
call fcn.00462ba8
push eax
push str.Error__s_writing_the_device_at__d___d__d_.
mov edx, dword [ebp + 8]
add edx, 0x2b8
push edx
call fcn.006712b0
add esp, 0x18
or eax, 0xffffffff
jmp 0x56d9f3
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x828]
sub edx, eax
mov ecx, dword [ebp + 0x10]
add edx, ecx
push edx
call fcn.00573138
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x576940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
movsx eax, byte [ebp - 5]
push eax
push 0x820053
lea edx, [ebp - 0x120]
push edx
call fcn.006712b0
add esp, 0xc
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea ecx, [ebp - 0x120]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x576a04
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x5769c0
push 0x5a86
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 8
jmp 0x5769df
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
mov eax, dword [ebp - 4]
call fcn.00640b4c
push eax
call fcn.00462ac8
add esp, 8
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576a91
push 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
shl ecx, 9
push ecx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x576a33
mov edx, dword [ebp + 8]
shl edx, 9
mov ecx, dword [ebp - 0x1c]
cmp edx, ecx
je 0x576a7c
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
mov eax, dword [ebp - 4]
call fcn.00640b4c
push eax
call fcn.00462ac8
add esp, 8
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576a91
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x576a98
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp - 8]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x576b3f
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x576afb
push 0x5a86
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 8
jmp 0x576b1a
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
mov eax, dword [ebp - 4]
call fcn.00640b4c
push eax
call fcn.00462ac8
add esp, 8
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576bc7
push 0
lea edx, [ebp - 0x1c]
push edx
push pe_nt_image_headers32
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x576b69
mov eax, dword [ebp - 0x1c]
cmp eax, 0x200
je 0x576bb2
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
mov eax, dword [ebp - 4]
call fcn.00640b4c
push eax
call fcn.00462ac8
add esp, 8
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576bc7
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x576bcc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp - 8]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x576c73
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x576c2f
push 0x5a86
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 8
jmp 0x576c4e
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
mov eax, dword [ebp - 4]
call fcn.00640b4c
push eax
call fcn.00462ac8
add esp, 8
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576cfb
push 0
lea edx, [ebp - 0x1c]
push edx
push 0x800
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x576c9d
mov eax, dword [ebp - 0x1c]
cmp eax, 0x800
je 0x576ce6
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
mov eax, dword [ebp - 4]
call fcn.00640b4c
push eax
call fcn.00462ac8
add esp, 8
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576cfb
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x576d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp - 8]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x576da7
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x576d63
push 0x5a86
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 8
jmp 0x576d82
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
mov eax, dword [ebp - 4]
call fcn.00640b4c
push eax
call fcn.00462ac8
add esp, 8
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576e42
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.005768f0
add esp, 8
push 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
shl ecx, 9
push ecx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x576de4
mov edx, dword [ebp + 8]
shl edx, 9
mov ecx, dword [ebp - 0x1c]
cmp edx, ecx
je 0x576e2d
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
mov eax, dword [ebp - 4]
call fcn.00640b4c
push eax
call fcn.00462ac8
add esp, 8
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576e42
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x57a9a4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbac
xor eax, eax
mov dword [ebp - 4], eax
movsx edx, byte [ebp + 8]
push edx
push str._c:PROGRAMS
lea ecx, [ebp - 0x10c]
push ecx
call fcn.006712b0
add esp, 0xc
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0066ebe8
add esp, 8
test eax, eax
je 0x57a9e7
xor eax, eax
jmp 0x57aba1
movsx edx, byte [ebp + 8]
push edx
push 0x8201d9
lea ecx, [ebp - 0x454]
push ecx
call fcn.006712b0
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea edx, [ebp - 0x454]
push edx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x57ab90
push 0x8201e1
lea edx, [ebp - 0x220]
push edx
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x57ab71
push 0x8201e3
lea ecx, [ebp - 0x220]
push ecx
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x57ab71
test byte [ebp - 0x24c], 0x10
je 0x57ab71
lea eax, [ebp - 0x220]
push eax
movsx edx, byte [ebp + 8]
push edx
push 0x8201e6
lea ecx, [ebp - 0x10c]
push ecx
call fcn.006712b0
add esp, 0x10
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x57aa9c
inc dword [ebp - 4]
lea edx, [ebp - 0x220]
push edx
movsx ecx, byte [ebp + 8]
push ecx
push 0x8201fa
lea eax, [ebp - 0x10c]
push eax
call fcn.006712b0
add esp, 0x10
push 0
lea edx, [ebp - 0x10c]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x57aad4
inc dword [ebp - 4]
lea ecx, [ebp - 0x220]
push ecx
movsx eax, byte [ebp + 8]
push eax
push str._c:_sTXTSETUP.SIF
lea edx, [ebp - 0x10c]
push edx
call fcn.006712b0
add esp, 0x10
push 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x57ab0c
inc dword [ebp - 4]
lea eax, [ebp - 0x220]
push eax
movsx edx, byte [ebp + 8]
push edx
push str._c:_sEXPLORER.EXE
lea ecx, [ebp - 0x10c]
push ecx
call fcn.006712b0
add esp, 0x10
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x57ab44
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, 3
jle 0x57ab6c
lea ecx, [ebp - 0x220]
push ecx
movsx eax, byte [ebp + 8]
push eax
push 0x820236
push 0xd206a0
call fcn.006712b0
add esp, 0x10
jmp 0x57ab88
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x24c]
push ecx
push dword [ebp - 8]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x57aa1f
push dword [ebp - 8]
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp - 4]
cmp eax, 3
jle 0x57ab9f
mov eax, 1
jmp 0x57aba1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x57adf8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbac
xor eax, eax
mov dword [ebp - 4], eax
movsx edx, byte [ebp + 8]
push edx
push str._c:.
lea ecx, [ebp - 0x454]
push ecx
call fcn.006712b0
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea edx, [ebp - 0x454]
push edx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x57af3d
push 0x8202f2
lea edx, [ebp - 0x220]
push edx
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x57af1e
push 0x8202f4
lea ecx, [ebp - 0x220]
push ecx
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x57af1e
test byte [ebp - 0x24c], 0x10
je 0x57af1e
lea eax, [ebp - 0x220]
push eax
movsx edx, byte [ebp + 8]
push edx
push str._c:_sNTDETECT.COM
lea ecx, [ebp - 0x10c]
push ecx
call fcn.006712b0
add esp, 0x10
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x57aebb
inc dword [ebp - 4]
lea edx, [ebp - 0x220]
push edx
movsx ecx, byte [ebp + 8]
push ecx
push str._c:_sSETUPLDR.BIN
lea eax, [ebp - 0x10c]
push eax
call fcn.006712b0
add esp, 0x10
push 0
lea edx, [ebp - 0x10c]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x57aef3
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
dec ecx
jle 0x57af19
lea eax, [ebp - 0x220]
push eax
movsx edx, byte [ebp + 8]
push edx
push str._c:_s
push 0xd206a0
call fcn.006712b0
add esp, 0x10
jmp 0x57af35
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x57ae3e
push dword [ebp - 8]
call sub.KERNEL32.DLL_FindClose
mov edx, dword [ebp - 4]
dec edx
jle 0x57af4a
mov eax, 1
jmp 0x57af4c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x57b040
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov al, byte [0xd206a0]
test al, al
jne 0x57b05c
mov eax, 1
jmp 0x57b263
mov dword [ebp - 4], 0xd206a0
push dword [ebp - 4]
push str._sNTDETECT.COM
lea edx, [ebp - 0x108]
push edx
call fcn.006712b0
add esp, 0xc
movsx ecx, byte [ebp + 8]
push ecx
push str._c:NTDETECT.COM
lea eax, [ebp - 0x20c]
push eax
call fcn.006712b0
add esp, 0xc
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x57b10b
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0066ebe8
add esp, 8
test eax, eax
je 0x57b10b
lea eax, [ebp - 0x20c]
push eax
lea edx, [ebp - 0x108]
push edx
push 0x5aad
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0x10
mov edx, 0xa00988
or ecx, 0xffffffff
mov eax, dword [sym.UltraISO.exe__frmUSBWrite]
call fcn.0056f95c
push 1
lea eax, [ebp - 0x20c]
push eax
lea edx, [ebp - 0x108]
push edx
call sub.KERNEL32.DLL_CopyFileA
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0066ebe8
add esp, 8
test eax, eax
je 0x57b162
lea eax, [ebp - 0x20c]
push eax
lea edx, [ebp - 0x108]
push edx
push 0x4eaa
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0x10
mov edx, 0xa00988
mov ecx, 6
mov eax, dword [sym.UltraISO.exe__frmUSBWrite]
call fcn.0056f95c
xor eax, eax
jmp 0x57b263
push dword [ebp - 4]
push str._sSETUPLDR.BIN
lea edx, [ebp - 0x108]
push edx
call fcn.006712b0
add esp, 0xc
movsx ecx, byte [ebp + 8]
push ecx
push str._c:NTLDR
lea eax, [ebp - 0x20c]
push eax
call fcn.006712b0
add esp, 0xc
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x57b20a
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0066ebe8
add esp, 8
test eax, eax
je 0x57b20a
lea eax, [ebp - 0x20c]
push eax
lea edx, [ebp - 0x108]
push edx
push 0x5aad
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0x10
mov edx, 0xa00988
or ecx, 0xffffffff
mov eax, dword [sym.UltraISO.exe__frmUSBWrite]
call fcn.0056f95c
push 1
lea eax, [ebp - 0x20c]
push eax
lea edx, [ebp - 0x108]
push edx
call sub.KERNEL32.DLL_CopyFileA
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0066ebe8
add esp, 8
test eax, eax
je 0x57b25e
lea eax, [ebp - 0x20c]
push eax
lea edx, [ebp - 0x108]
push edx
push 0x4eaa
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0x10
mov edx, 0xa00988
mov ecx, 6
mov eax, dword [sym.UltraISO.exe__frmUSBWrite]
call fcn.0056f95c
xor eax, eax
jmp 0x57b263
mov eax, 1
mov esp, ebp
pop ebp
ret