joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005920
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x180146c24], 0
jne 0x18000598f
lea rbx, [0x180146b20]
mov edx, 0x104
mov dword [0x180146c24], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x180005986
mov qword [rsp + 0x30], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov rcx, qword [0x1800e3390]
mov rax, rbx
mov qword [rdi - 1], rcx
movzx ecx, word [0x1800e3398]
mov word [rdi + 7], cx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x180146b20]
add rsp, 0x20
pop rbx
ret
Function at 0x180009ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rbp + 0x190], rax
cmp dword [0x180150be4], 0
je 0x180009f2c
mov eax, dword [0x180150be0]
jmp 0x18000a123
mov dword [0x180150be4], 1
mov dword [0x180150be0], 1
mov ebx, 0x20019
call fcn.18009fe30
mov ecx, 0x20219
test eax, eax
cmovne ebx, ecx
lea rcx, [rsp + 0x30]
call fcn.18004b170
nop
mov r9d, ebx
lea r8, str.softwareTECOcular.3Agent
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x30]
call fcn.18004ab70
mov esi, 4
xor ebx, ebx
test rax, rax
je 0x180009ffd
mov r8d, esi
lea rdx, str.RunAs
lea rcx, [rsp + 0x30]
call fcn.18004b160
mov edi, eax
or r8d, 0xffffffff
lea rdx, str.RunAs
lea rcx, [rsp + 0x30]
call fcn.180049870
movzx ecx, al
test al, al
jne 0x180009fc0
mov dword [0x180150be0], ebx
jmp 0x180009feb
cmp ecx, 2
jne 0x180009fcd
mov dword [0x180150be0], ecx
jmp 0x180009feb
cmp ecx, 3
jne 0x180009fda
mov dword [0x180150be0], ecx
jmp 0x180009feb
mov eax, dword [0x180150be0]
cmp ecx, esi
cmove eax, esi
mov dword [0x180150be0], eax
lea rcx, [rsp + 0x30]
call fcn.1800497c0
test edi, edi
jne 0x18000a111
mov byte [rsp + 0x70], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x71]
call fcn.18006f140
mov byte [rbp + 0x80], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x81]
call fcn.18006f140
xor r8d, r8d
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.180063c60
lea r11, [0x1800e3f78]
mov qword [rsp + 0x40], r11
lea rax, [0x1800e3f70]
mov qword [rsp + 0x48], rax
lea rax, [0x1800e3f60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x64], 3
mov dword [rsp + 0x68], esi
lea rdi, [rsp + 0x40]
lea rsi, [0x1800e3f50]
nop word [rax + rax]
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x80]
lea r8, [0x1800e3014]
mov edx, 0x103
lea rcx, [rsp + 0x70]
call fcn.180071398
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000a0f7
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x80]
lea r8, [0x1800e3014]
mov edx, 0x103
lea rcx, [rsp + 0x70]
call fcn.180071398
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000a104
inc ebx
add rdi, 8
cmp ebx, 3
jae 0x18000a111
jmp 0x18000a090
movsxd rax, ebx
mov ecx, dword [rsp + rax*4 + 0x60]
mov dword [0x180150be0], ecx
mov ebx, dword [0x180150be0]
lea rcx, [rsp + 0x30]
call fcn.18004aaf0
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.18006f110
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18000cf60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasb al, byte [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x18000cfc2
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
mov qword [rsp + 0x30], rdi
nop
test byte [rbx], 0x10
je 0x18000d085
cmp byte [rbx + 0x2c], 0x2e
jne 0x18000cff9
movzx eax, byte [rbx + 0x2d]
cmp al, 0x2e
jne 0x18000cff1
cmp byte [rbx + 0x2e], 0
je 0x18000d0ad
test al, al
je 0x18000d0ad
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasb al, byte [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x18000d0a3
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov byte [rax + rbp - 1], 0
xor eax, eax
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx + 0x2c]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18000d030
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasb al, byte [rdi]
movzx eax, word [0x1800e4264]
mov rcx, rbp
mov word [rdi - 1], ax
movzx eax, byte [0x1800e4266]
mov byte [rdi + 1], al
call fcn.18000cf60
mov rdi, qword [rsp + 0x30]
mov word [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x18000d0a8
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + 0x70]
mov byte [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x18000d0a8
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x18000d0c7
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov rcx, qword [rsp + 0x28]
test eax, eax
jne 0x18000cfd0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000d0f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasw ax, word [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x18000d153
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
xor r8d, r8d
mov qword [rsp + 0x30], rdi
test byte [rbx], 0x10
je 0x18000d232
cmp word [rbx + 0x2c], 0x2e
jne 0x18000d191
movzx eax, word [rbx + 0x2e]
cmp ax, 0x2e
jne 0x18000d188
cmp word [rbx + 0x30], 0
je 0x18000d260
test ax, ax
je 0x18000d260
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasw ax, word [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x18000d256
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov word [rbp + rax*2 - 2], r8w
xor eax, eax
repne scasw ax, word [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx + 0x2c]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x18000d1d0
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasw ax, word [rdi]
mov eax, dword [0x1800e4268]
mov rcx, rbp
mov dword [rdi - 2], eax
movzx eax, word [0x1800e426c]
mov word [rdi + 2], ax
call fcn.18000d0f0
mov rdi, qword [rsp + 0x30]
mov esi, eax
mov eax, 0x2a
mov word [rbp + rdi*2 - 2], ax
xor eax, eax
mov word [rbp + rdi*2], ax
jmp 0x18000d25b
mov word [rbp + rdi*2 - 2], r8w
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
call qword [rsp + 0x70]
mov esi, eax
mov eax, 0x2a
mov word [rbp + rdi*2 - 2], ax
jmp 0x18000d25b
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x18000d280
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, qword [rsp + 0x28]
mov r8d, 0
test eax, eax
jne 0x18000d163
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000de40
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x390
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov ebp, edx
mov rbx, rcx
test rcx, rcx
je 0x18000e072
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x18000e072
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp eax, 0xffffffff
je 0x18000e072
test al, 1
je 0x18000deaf
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test dil, 0x10
je 0x18000e050
lea rcx, [rsp + 0x271]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x3a8], rsi
mov byte [rsp + 0x270], 0
call fcn.18006f140
lea rcx, [rsp + 0x270]
mov rdx, rbx
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x18000def0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasb al, byte [rdi]
movzx eax, word [0x1800e4264]
lea rcx, [rsp + 0x24]
mov word [rdi - 1], ax
movzx eax, byte [0x1800e4266]
xor edx, edx
mov r8d, 0x13c
mov dword [rsp + 0x20], 0
mov byte [rdi + 1], al
call fcn.18006f140
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000e03d
nop dword [rax]
lea rdx, [0x1800e45ec]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18000e01e
lea rdx, [0x1800e45e8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18000e01e
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x160], 0
call fcn.18006f140
lea rcx, [rsp + 0x160]
sub rcx, rbx
mov rdx, rbx
nop
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x18000dfc0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
movzx eax, word [0x1800e33ac]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x4c]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18000e000
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.18000de40
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18000df60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rsi, qword [rsp + 0x3a8]
jmp 0x18000e059
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x18000e074
test ebp, ebp
je 0x18000e074
lea r8d, [rax + 4]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x18000e074
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.18006f110
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000e700
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1e0], rbx
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x18000e8f2
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x18000e8f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000e8f2
test al, 0x10
je 0x18000e8f2
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1800423d0
nop
mov dl, 0x5c
lea rcx, [rsp + 0x20]
call fcn.18003feb0
mov dword [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x13c
lea rcx, [rsp + 0x64]
call fcn.18006f140
lea r8, [0x1800e4264]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.180042760
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.18003ecb0
cmp rdi, 0xffffffffffffffff
je 0x18000e8e1
lea rdx, [0x1800e45ec]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18000e8c1
lea rdx, [0x1800e45e8]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18000e8c1
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x28]
call fcn.1800423d0
nop
lea r8, [0x1800e33ac]
lea rdx, [rsp + 0x20]
test byte [rsp + 0x60], 0x10
je 0x18000e874
lea rcx, [rsp + 0x30]
call fcn.180042760
nop
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180042700
nop
mov rdx, rsi
mov rcx, qword [rax]
call fcn.18000e700
nop
lea rcx, [rsp + 0x50]
call fcn.18003ecb0
nop
lea rcx, [rsp + 0x30]
jmp 0x18000e8b1
lea rcx, [rsp + 0x40]
call fcn.180042760
nop
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.180042700
nop
mov r8, rax
mov edx, dword [rsi + 8]
mov rcx, rsi
call fcn.180043f70
nop
lea rcx, [rsp + 0x38]
call fcn.18003ecb0
nop
lea rcx, [rsp + 0x40]
call fcn.18003ecb0
nop
lea rcx, [rsp + 0x28]
call fcn.18003ecb0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18000e7e4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x20]
call fcn.18003ecb0
mov eax, 1
jmp 0x18000e8f4
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.18006f110
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000e920
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
movsxd rsi, r8d
mov rdi, rdx
mov rbp, rcx
call fcn.18009ff30
test eax, eax
je 0x18000e951
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
test rdi, rdi
je 0x18000e9dc
test esi, esi
je 0x18000e9dc
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r13
call fcn.18006f140
mov rcx, rsi
call fcn.18006f3c0
mov r12, rax
test rax, rax
je 0x18000e9d2
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.18006f140
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test eax, eax
je 0x18000e9d2
mov r9d, esi
mov r8, rdi
or edx, 0xffffffff
mov rcx, r12
xor ebx, ebx
call fcn.18001c730
test eax, eax
je 0x18000e9d2
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000ea60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r15d, r15d
mov qword [rsp + 0xc8], rbp
mov r14, r8
mov r12, rdx
mov r13, rcx
mov edi, 0x200
mov dword [rsp + 0x40], r15d
mov ebx, r15d
mov qword [rsp + 0x70], rsi
cmp ebx, 1
jne 0x18000eab0
mov edi, 0x400
jmp 0x18000eb18
cmp ebx, 2
jne 0x18000eb18
xor eax, eax
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, r13
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18000ebb6
mov edi, dword [rsp + 0x5c]
cmp edi, 0x200
jb 0x18000ebb6
mov ecx, edi
mov ebp, edi
call fcn.18006f3c0
mov rsi, rax
test rax, rax
je 0x18000eb38
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.18006f140
jmp 0x18000eb3b
mov rsi, r15
mov r8, rbp
xor edx, edx
mov rcx, rsi
mov qword [r12], rsi
call fcn.18006f140
mov rdx, qword [r12]
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test eax, eax
jne 0x18000eb84
mov rcx, qword [r12]
call fcn.18006f310
inc ebx
mov qword [r12], r15
cmp ebx, 3
jl 0x18000eaa4
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18006f110
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
xor eax, eax
jmp 0x18000eb8d
Function at 0x18000ebc0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, ecx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.18006f140
movzx eax, word [0x1800e338c]
xor ebx, ebx
mov word [rsp + 0x20], ax
movzx eax, byte [0x1800e338e]
mov byte [rsp + 0x22], al
test edi, edi
je 0x18000ec1a
cmp edi, 1
jne 0x18000ec2a
call fcn.18009fed0
test eax, eax
jne 0x18000ec2a
mov eax, 4
jmp 0x18000ec95
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
add dil, 0x41
mov r8d, 0x103
mov byte [rsp + 0x20], dil
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
dec eax
cmp eax, 0x102
ja 0x18000ec93
lea rcx, [rsp + 0x30]
call fcn.180070a10
lea rdx, str.cdrom
lea rcx, [rsp + 0x30]
call fcn.18006f6f0
mov ecx, 5
lea rdx, str.floppy
test rax, rax
cmovne ebx, ecx
lea rcx, [rsp + 0x30]
call fcn.18006f6f0
test rax, rax
mov eax, 4
jne 0x18000ec95
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18006f110
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x18000ecc0
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
push rbx
push rbp
sub rsp, 0x98
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov rbp, rdx
test rdx, rdx
je 0x18000ee96
cmp r8d, 0x200
jne 0x18000ee96
xor eax, eax
mov dword [rsp + 0x38], 0x10
add cx, 0x41
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x18], rsi
movabs rax, 0x5c003a0041
mov qword [r11 - 0x60], rax
lea rax, [r11 - 0x58]
mov word [rsp + 0x48], cx
mov qword [r11 - 0x78], rax
lea rax, [r11 - 0x64]
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x80], rax
lea rax, [r11 - 0x68]
lea rcx, [r11 - 0x60]
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x28], r12
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x18000ee3e
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
lea r8d, [rbx + 5]
lea rdx, str.FAT16
not rcx
lea rsi, [rcx - 1]
lea rcx, [rbp + 0x36]
call fcn.1800798b4
lea edi, [rbx + 3]
test eax, eax
jne 0x18000edcc
cmp esi, 5
jne 0x18000edac
mov r8d, esi
lea rdx, [0x1800e4728]
jmp 0x18000edba
cmp esi, edi
jne 0x18000edcc
mov r8, rdi
lea rdx, [0x1800e4720]
lea rcx, [rsp + 0x50]
call fcn.1800d4484
test eax, eax
je 0x18000ee7a
lea rdx, str.FAT12
lea rcx, [rbp + 0x36]
mov r8d, 5
call fcn.1800798b4
test eax, eax
jne 0x18000ee02
cmp esi, edi
jne 0x18000ee02
lea rdx, [0x1800e4720]
lea rcx, [rsp + 0x50]
mov r8, rdi
call fcn.1800d4484
test eax, eax
je 0x18000ee7a
lea rcx, [rbp + 0x52]
lea rdx, str.FAT32
mov r8d, 5
call fcn.1800798b4
test eax, eax
jne 0x18000ee3e
cmp esi, 5
jne 0x18000ee3e
lea rdx, [0x1800e4700]
lea rcx, [rsp + 0x50]
mov r8d, esi
call fcn.1800d4484
test eax, eax
jne 0x18000ee3e
lea edi, [rsi - 3]
jmp 0x18000ee7a
lea rdx, str.EXFAT
lea rcx, [rbp + 3]
mov r8d, 5
call fcn.1800798b4
test eax, eax
jne 0x18000ee5d
lea edi, [rax + 5]
jmp 0x18000ee7a
lea rdx, str.NTFS
lea rcx, [rbp + 3]
mov r8d, 4
call fcn.1800798b4
test eax, eax
sete bl
mov edi, ebx
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x90]
mov eax, edi
mov rdi, qword [rsp + 0x88]
jmp 0x18000ee98
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18006f110
add rsp, 0x98
pop rbp
pop rbx
ret
Function at 0x1800102c0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1d8], rbx
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
test rcx, rcx
je 0x180010487
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180010487
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180010487
test al, 0x10
je 0x180010487
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.1800423d0
nop
mov dl, 0x5c
lea rcx, [rsp + 0x20]
call fcn.18003feb0
mov dword [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x13c
lea rcx, [rsp + 0x54]
call fcn.18006f140
lea r8, [0x1800e4264]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.180042760
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
lea rcx, [rsp + 0x40]
call fcn.18003ecb0
cmp rdi, 0xffffffffffffffff
je 0x180010476
lea rdx, [0x1800e45ec]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18001044b
lea rdx, [0x1800e45e8]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18001044b
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x28]
call fcn.1800423d0
nop
test byte [rsp + 0x50], 0x10
je 0x180010437
lea r8, [0x1800e33ac]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.180042760
nop
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180042700
nop
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rax]
call fcn.1800102c0
nop
lea rcx, [rsp + 0x30]
call fcn.18003ecb0
nop
lea rcx, [rsp + 0x38]
call fcn.18003ecb0
jmp 0x180010439
inc dword [rbx]
test esi, esi
je 0x180010441
cmp esi, dword [rbx]
jbe 0x180010462
lea rcx, [rsp + 0x28]
call fcn.18003ecb0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x18001046c
jmp 0x1800103a0
lea rcx, [rsp + 0x28]
call fcn.18003ecb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x20]
call fcn.18003ecb0
mov eax, 1
jmp 0x180010489
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.18006f110
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret