joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5610cc
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x80d614
push SysStringLen
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x561113
push 0x80d64a
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x56119b
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
push 0x80d662
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x561152
push 0x80d672
call fcn.0055feb8
pop ecx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x56119b
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
push str.AutoMount
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x561191
push str.ISODriveSetServiceStat:
call fcn.0055feb8
pop ecx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x56119b
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5611a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push dword [ebp + 8]
push 0x80d6b8
push 0x80d6ac
lea eax, [ebp - 0x110]
push eax
call fcn.00670e94
add esp, 0x10
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
je 0x561208
push 0x80d6ee
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x561359
imul edx, dword [ebp + 8], 0x23
movsx ecx, byte [edx*8 + 0xcf1d39]
push ecx
push 0x80d706
lea eax, [ebp - 0x214]
push eax
call fcn.00670e94
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
call fcn.0066ca1c
pop ecx
inc eax
push eax
lea ecx, [ebp - 0x214]
push ecx
push 1
push 0
push 0x80d709
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x561275
push 0x80d70f
call fcn.0055feb8
pop ecx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x561359
imul edx, dword [ebp + 8], 0x23
mov cl, byte [edx*8 + 0xcf1d38]
cmp cl, 1
jne 0x5612a9
imul eax, dword [ebp + 8], 0x118
add eax, 0xcf1d3a
push eax
push 0x80d727
lea edx, [ebp - 0x214]
push edx
call fcn.00670e94
add esp, 0xc
jmp 0x5612bd
push 0x80d72a
lea ecx, [ebp - 0x214]
push ecx
call fcn.00670e94
add esp, 8
lea eax, [ebp - 0x214]
push eax
call fcn.0066ca1c
pop ecx
inc eax
push eax
lea edx, [ebp - 0x214]
push edx
push 1
push 0
push str.IMAGE
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x561306
push 0x80d732
call fcn.0055feb8
pop ecx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x561359
imul edx, dword [ebp + 8], 0x23
xor ecx, ecx
mov cl, byte [edx*8 + 0xcf1d38]
mov dword [ebp - 0xc], ecx
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.MEDIA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
je 0x56134f
push str.ISODriveSetDriveLetter:
call fcn.0055feb8
pop ecx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x561359
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x561360
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push dword [ebp + 8]
push 0x80d774
push 0x80d768
lea eax, [ebp - 0x110]
push eax
call fcn.00670e94
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
push SysStringLen
call sub.ADVAPI32.DLL_RegDeleteKeyA
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5613b0
push str.ISODriveRemoveDriveStat:
call fcn.0055feb8
pop ecx
or eax, 0xffffffff
jmp 0x5613b2
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5614c0
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 0x80d7c3
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x56152e
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 0x56152e
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x56152e
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x56153f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
cmp eax, edx
jle 0x561547
or eax, 0xffffffff
jmp 0x5615fb
mov edx, dword [ebp + 8]
dec edx
push edx
push 0x80d815
push str._sDevice_d
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00670e94
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 0x56159a
or eax, 0xffffffff
jmp 0x5615fb
movsx edx, byte [ebp + 0xc]
push edx
push 0x80d84b
lea ecx, [ebp - 0x220]
push ecx
call fcn.00670e94
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.0066ca1c
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 0x5615f1
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
jmp 0x5615fb
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x563b24
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 0x563b93
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 0x80dd2d
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 0x56c53c
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 0x56c598
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 0x56c598
mov eax, dword [ebp - 0x14]
jmp 0x56c59b
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x56c5a0
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 0x8117ff
lea eax, [ebp - 0x120]
push eax
call fcn.00670e94
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 0x56c6bf
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 0x56c63a
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x56c6c1
push dword [ebp - 0x18]
call fcn.0066c210
pop ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x56c6bf
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 0x56c6ae
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
cmp edx, 7
jne 0x56c6b6
push dword [ebp - 0x10]
call fcn.0066c220
pop ecx
mov eax, 1
jmp 0x56c6c1
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call fcn.0066c220
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x56ce4c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov eax, dword [ebp + 8]
test eax, eax
jne 0x56ce63
xor eax, eax
jmp 0x56cf7f
mov edx, dword [ebp + 8]
mov byte [edx + 0x2b8], 0
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx + 0x214]
push eax
push 0x8119dd
lea edx, [ebp - 0x114]
push edx
call fcn.00670e94
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 0x56cf16
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x56cee6
push 0x5a86
call fcn.00402a64
pop ecx
push eax
mov edx, dword [ebp + 8]
add edx, 0x2b8
push edx
call fcn.00670e94
add esp, 8
jmp 0x56cf0a
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402a64
pop ecx
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x2b8
push ecx
call fcn.00670e94
add esp, 0xc
push dword [ebp - 8]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x56cf7f
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 0x56cf48
mov edx, dword [ebp - 0x10]
cmp edx, 0x200
je 0x56cf6c
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402a64
pop ecx
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x2b8
push ecx
call fcn.00670e94
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 0x56d4b8
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.006744e4
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 0x56d510
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x56d538
push dword [ebp + 0x14]
call fcn.004628c0
push eax
push str.Error__s_writing_the_device_at__d_SetFilePointer_.
mov edx, dword [ebp + 8]
add edx, 0x2b8
push edx
call fcn.00670e94
add esp, 0x10
or eax, 0xffffffff
jmp 0x56d5d7
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 0x56d57f
push dword [ebp + 0x14]
call fcn.004628c0
push eax
push str.Error__s_writing_the_device_at__d_WriteFile_.
mov edx, dword [ebp + 8]
add edx, 0x2b8
push edx
call fcn.00670e94
add esp, 0x10
or eax, 0xffffffff
jmp 0x56d5d7
mov edx, dword [ebp + 0x10]
shl edx, 9
mov ecx, dword [ebp - 0xc]
cmp edx, ecx
je 0x56d5bb
push dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
shr eax, 9
push eax
push dword [ebp + 0x14]
call fcn.004628c0
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.00670e94
add esp, 0x18
or eax, 0xffffffff
jmp 0x56d5d7
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.00572d1c
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x576524
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 0x81267f
lea edx, [ebp - 0x120]
push edx
call fcn.00670e94
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 0x5765e8
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x5765a4
push 0x5a86
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 8
jmp 0x5765c3
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
mov eax, dword [ebp - 4]
call fcn.00640730
push eax
call fcn.004627e0
add esp, 8
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576675
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 0x576617
mov edx, dword [ebp + 8]
shl edx, 9
mov ecx, dword [ebp - 0x1c]
cmp edx, ecx
je 0x576660
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
mov eax, dword [ebp - 4]
call fcn.00640730
push eax
call fcn.004627e0
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 0x576675
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 0x57667c
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 0x576723
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x5766df
push 0x5a86
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 8
jmp 0x5766fe
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
mov eax, dword [ebp - 4]
call fcn.00640730
push eax
call fcn.004627e0
add esp, 8
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x5767ab
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 0x57674d
mov eax, dword [ebp - 0x1c]
cmp eax, 0x200
je 0x576796
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
mov eax, dword [ebp - 4]
call fcn.00640730
push eax
call fcn.004627e0
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 0x5767ab
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 0x5767b0
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 0x576857
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x576813
push 0x5a86
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 8
jmp 0x576832
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
mov eax, dword [ebp - 4]
call fcn.00640730
push eax
call fcn.004627e0
add esp, 8
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x5768df
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 0x576881
mov eax, dword [ebp - 0x1c]
cmp eax, 0x800
je 0x5768ca
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
mov eax, dword [ebp - 4]
call fcn.00640730
push eax
call fcn.004627e0
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 0x5768df
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 0x5768e4
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 0x57698b
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
jne 0x576947
push 0x5a86
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 8
jmp 0x576966
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa4
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
mov eax, dword [ebp - 4]
call fcn.00640730
push eax
call fcn.004627e0
add esp, 8
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
jmp 0x576a26
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.005764d4
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 0x5769c8
mov edx, dword [ebp + 8]
shl edx, 9
mov ecx, dword [ebp - 0x1c]
cmp edx, ecx
je 0x576a11
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x5aa9
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
mov eax, dword [ebp - 4]
call fcn.00640730
push eax
call fcn.004627e0
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 0x576a26
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 0x57a588
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.00670e94
add esp, 0xc
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x57a5cb
xor eax, eax
jmp 0x57a785
movsx edx, byte [ebp + 8]
push edx
push 0x812805
lea ecx, [ebp - 0x454]
push ecx
call fcn.00670e94
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 0x57a774
push 0x81280d
lea edx, [ebp - 0x220]
push edx
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x57a755
push 0x81280f
lea ecx, [ebp - 0x220]
push ecx
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x57a755
test byte [ebp - 0x24c], 0x10
je 0x57a755
lea eax, [ebp - 0x220]
push eax
movsx edx, byte [ebp + 8]
push edx
push 0x812812
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00670e94
add esp, 0x10
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x57a680
inc dword [ebp - 4]
lea edx, [ebp - 0x220]
push edx
movsx ecx, byte [ebp + 8]
push ecx
push 0x812826
lea eax, [ebp - 0x10c]
push eax
call fcn.00670e94
add esp, 0x10
push 0
lea edx, [ebp - 0x10c]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x57a6b8
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.00670e94
add esp, 0x10
push 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x57a6f0
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.00670e94
add esp, 0x10
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x57a728
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, 3
jle 0x57a750
lea ecx, [ebp - 0x220]
push ecx
movsx eax, byte [ebp + 8]
push eax
push 0x812862
push 0xd12ccc
call fcn.00670e94
add esp, 0x10
jmp 0x57a76c
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 0x57a603
push dword [ebp - 8]
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp - 4]
cmp eax, 3
jle 0x57a783
mov eax, 1
jmp 0x57a785
xor eax, eax
mov esp, ebp
pop ebp
ret