joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001380c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r15d, 0x104
mov r14d, edx
mov rsi, rcx
mov qword [rbp + 0x388], r15
xor ebx, ebx
lea rcx, [rbp + 0x170]
mov dil, 1
mov qword [rbp + 0x378], rbx
mov r8d, r15d
mov byte [rbp + 0x380], dil
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r15d
mov qword [rbp + 0x158], rbx
xor edx, edx
mov byte [rbp + 0x160], dil
lea rcx, [rsp + 0x50]
mov qword [rbp + 0x168], r15
call sub.msvcrt.dll_memset
mov r8d, r15d
mov qword [rbp + 0x598], rbx
xor edx, edx
mov byte [rbp + 0x5a0], dil
lea rcx, [rbp + 0x390]
mov qword [rbp + 0x5a8], r15
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x380]
lea rcx, [rbp + 0x170]
neg al
mov r12d, 0x7ee3
sbb rdx, rdx
and rdx, r12
add rdx, r15
call fcn.1400104d0
test eax, eax
js 0x14001d6df
mov al, byte [rbp + 0x160]
lea rcx, [rsp + 0x50]
neg al
sbb rdx, rdx
and rdx, r12
add rdx, r15
call fcn.1400104d0
test eax, eax
js 0x14001d6df
mov al, byte [rbp + 0x160]
lea rcx, [rsp + 0x50]
neg al
sbb rdx, rdx
and rdx, r12
add rdx, r15
call fcn.1400104d0
test eax, eax
js 0x14001d6df
cmp qword [rbp + 0x598], rbx
lea r8, [rbp + 0x390]
mov r9d, dword [rbp + 0x5a8]
mov edx, r14d
cmovne r8, qword [rbp + 0x598]
mov rcx, rsi
mov dword [0x1400502f8], ebx
call fcn.14000a850
test al, al
je 0x140013a20
cmp qword [rbp + 0x598], rbx
lea rdx, [rbp + 0x390]
lea rcx, [rsp + 0x50]
cmovne rdx, qword [rbp + 0x598]
call fcn.140010630
lea rdx, [0x1400304d0]
lea rcx, [rsp + 0x50]
call fcn.140010578
cmp qword [rbp + 0x378], rbx
lea rdx, [rbp + 0x170]
mov eax, dword [rbp + 0x388]
lea rcx, [rsp + 0x50]
cmovne rdx, qword [rbp + 0x378]
cmp qword [rbp + 0x158], rbx
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x40]
cmovne rcx, qword [rbp + 0x158]
xor r9d, r9d
mov qword [rsp + 0x30], rdx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x14001d6c6
cmp qword [rbp + 0x378], rbx
lea rcx, [rbp + 0x170]
lea rdx, [0x140030610]
cmovne rcx, qword [rbp + 0x378]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001d6ba
mov rcx, qword [rbp + 0x598]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rbp + 0x378]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov al, bl
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp dword [rsp + 0x40], 0xc
je 0x14001d6ec
jmp 0x140013a20
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x90
cmove eax, ebx
mov dword [0x1400502f8], eax
jmp 0x140013a20
mov dword [0x1400502f8], 8
mov dil, bl
mov bl, dil
jmp 0x140013a20
Function at 0x1400142a0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400142b2
cmp byte [0x1400398a4], 0
jne 0x1400142b7
add rsp, 0x28
ret
cmp qword [0x1400502b0], 0
jne 0x1400142b2
jmp 0x14001da9c
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
and dword [0x140039868], 0
mov byte [0x1400398a4], 0
jmp 0x1400142b2
Function at 0x1400145a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov edi, 0x104
mov byte [rbp + 0x130], 1
mov rbx, rcx
mov qword [rbp + 0x138], rdi
xor r12d, r12d
lea rcx, [rsp + 0x20]
mov r8d, edi
mov qword [rbp + 0x128], r12
xor edx, edx
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x130]
lea rcx, [rsp + 0x20]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, rdi
call fcn.1400104d0
test eax, eax
js 0x140014768
lea ecx, [r12 + 0x48]
call fcn.14000fdec
mov rcx, rax
mov rdi, rax
mov qword [rax], rbx
call fcn.14001430c
mov r15, qword [rdi + 0x30]
mov ecx, 0xffce
mov rsi, qword [rdi]
mov rbx, qword [rdi + 0x18]
call fcn.14000fdec
xor r8d, r8d
mov qword [0x1400502f0], rax
mov edx, 0x7fe7
mov rcx, rax
call fcn.14000bae4
mov rax, qword [rbp + 0x128]
lea rcx, [rsp + 0x20]
mov edx, dword [rbp + 0x138]
test rax, rax
mov r8, rsi
cmovne rcx, rax
call fcn.140012fc4
test eax, eax
jne 0x140014768
mov rax, qword [rbp + 0x128]
lea rcx, [rsp + 0x20]
test rax, rax
lea r14d, [r12 + 0x5c]
cmovne rcx, rax
test rcx, rcx
je 0x14001df2c
mov edx, r14d
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov word [rax + 2], r12w
lea rdx, [rsp + 0x20]
mov rax, qword [rbp + 0x128]
lea rcx, [0x140050090]
test rax, rax
cmovne rdx, rax
call fcn.140010630
test rbx, rbx
je 0x1400147ad
cmp word [rbx], 0x3a
je 0x1400147ad
cmp word [rbx], r14w
jne 0x140014739
cmp rbx, rsi
je 0x14001df3c
mov rax, rsi
cmp word [rax], r12w
je 0x14001df34
mov rcx, rax
add rax, 2
cmp rax, rbx
jne 0x14001470f
cmp word [rcx], 0x3a
je 0x14001df3c
cmp word [rcx], r14w
je 0x14001df3c
movzx r14d, word [rbx]
mov rcx, rsi
mov word [rbx], r12w
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400147a8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x1400502f8], eax
mov word [rbx], r14w
cmp dword [0x1400502f8], r12d
je 0x1400147ad
mov edi, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rax, rdi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov eax, r12d
jmp 0x140014755
mov rcx, rdi
call fcn.14001430c
mov qword [rdi + 0x30], r15
jmp 0x14001476d
mov rax, r12
jmp 0x1400146c6
mov rcx, r12
jmp 0x140014725
add rbx, 2
jmp 0x140014739
Function at 0x14001601c
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, dword [r8]
mov r14, r8
neg eax
mov rdi, r9
mov rsi, rdx
mov rbp, rcx
sbb ebx, ebx
and dword [r9], 0
add ebx, 3
mov r8d, ebx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
je 0x14001eda6
mov dword [rdi], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001edee
mov edx, 0x400023d3
mov rcx, rsi
lea r8d, [rdx + 1]
call fcn.14002b314
test eax, eax
je 0x140016066
cmp eax, 2
jne 0x14001edd5
and dword [r14], 0
or ebx, 1
mov rdx, rsi
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
mov dword [rdi], eax
jmp 0x14001606b
xor eax, eax
jmp 0x14001606b
Function at 0x140016b14
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, rdx
mov dword [rsp + 0x28], 2
xor edx, edx
mov r15d, r8d
mov r8, qword [rsp + 0x70]
mov r14, rcx
xor sil, sil
mov rcx, rax
test r9d, r9d
sete dl
and qword [r11 - 0x28], 0
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov rdi, qword [rsp + 0x78]
or r12, 0xffffffffffffffff
mov rbx, rax
mov qword [rdi], rax
cmp rax, r12
je 0x140016c05
mov rcx, qword [rsp + 0x70]
lea rax, [fcn.140016cc0]
mov edx, r15d
cmp r14, rax
jne 0x140016c3a
call fcn.140016cc0
test eax, eax
je 0x140016c84
and dword [0x1400502f8], 0
mov sil, 1
cmp rbx, r12
je 0x140016be3
mov r8, qword [0x140050300]
test r8, r8
je 0x140016c13
mov edx, dword [0x1400398f4]
cmp edx, dword [0x140050308]
jge 0x140016c4b
test r8, r8
je 0x140016be0
mov rax, qword [rdi]
movsxd rcx, edx
inc edx
mov dword [0x1400398f4], edx
mov qword [r8 + rcx*8], rax
mov sil, 1
test sil, sil
je 0x140016c05
mov al, sil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x1400502f8], eax
jmp 0x140016be8
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x28]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov r8, rax
mov edx, dword [0x1400398f4]
mov qword [0x140050300], rax
jmp 0x140016bc9
mov rax, r14
call qword [0x14002fd18]
mov rbx, qword [rdi]
jmp 0x140016b94
lea eax, [rdx + 1]
movsxd rbx, eax
shl rbx, 3
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, qword [0x140050300]
mov r9, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
mov r8, rax
test rax, rax
je 0x140021e02
inc dword [0x140050308]
jmp 0x140016c2b
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
je 0x140016ca7
mov rbx, qword [rdi]
cmp rbx, r12
jne 0x140016b77
jmp 0x140016c05
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov qword [rdi], r12
mov rbx, r12
jmp 0x140016ba6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rdi]
mov dword [0x1400502f8], eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
xor al, al
mov qword [rdi], r12
jmp 0x140016beb
Function at 0x140016d68
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov esi, 0x104
mov byte [rbp + 0x160], 1
movzx edi, cx
mov qword [rbp + 0x168], rsi
xor ebx, ebx
lea rcx, [rsp + 0x50]
mov r8d, esi
mov qword [rbp + 0x158], rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x160]
lea rcx, [rsp + 0x50]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, rsi
call fcn.1400104d0
test eax, eax
js 0x140016e6b
lea rcx, [rbp + 0x170]
mov word [rbp + 0x170], di
mov dword [rbp + 0x172], 0x5c003a
mov word [rbp + 0x176], bx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140021e31
cmp eax, 2
je 0x140016e6b
cmp eax, 5
je 0x140016e6b
cmp qword [rbp + 0x158], rbx
lea rdx, [rsp + 0x50]
mov r8d, dword [rbp + 0x168]
lea r9, [rsp + 0x40]
cmovne rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x170]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x140021e22
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x140016e6b
mov ebx, 1
jmp 0x140016e6b

Function at 0x1400177a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400177ec
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400177e4
cmp dword [rcx + 0x3c], edx
jl 0x1400177e4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400177e4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400177ec
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400268b8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edi, edi
test rcx, rcx
je 0x140026a0b
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140026a0b
lea r8d, [rdi + 0x40]
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140026b98
test eax, eax
je 0x140026a02
mov eax, 0x5a4d
cmp ax, word [rsp + 0x60]
jne 0x140026a02
mov edx, dword [rsp + 0x9c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140026a02
lea r8d, [rdi + 4]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call fcn.140026b98
test eax, eax
je 0x140026a02
cmp dword [rsp + 0x40], 0x4550
jne 0x140026a02
lea r8d, [rdi + 0x14]
mov rcx, rsi
lea rdx, [rsp + 0x48]
call fcn.140026b98
test eax, eax
je 0x140026a02
cmp word [rsp + 0x58], di
jbe 0x140026a02
movzx ebx, word [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140026a02
movzx r8d, word [rsp + 0x58]
mov rdx, rax
mov rcx, rsi
call fcn.140026b98
test eax, eax
je 0x1400269ee
movzx ecx, word [rsp + 0x48]
mov rdx, rbx
call fcn.140026b68
test rax, rax
je 0x1400269ee
movzx edi, word [rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
movzx eax, di
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140026b98
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov edi, r8d
mov ebx, 1
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x140026bc5
cmp edi, dword [rsp + 0x58]
je 0x140026bc7
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140029ebc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rcx
mov ebp, r8d
mov ecx, dword [rcx]
mov r14, r9
mov rdi, rdx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
mov ecx, dword [rsi]
call fcn.14000d778
xor edx, edx
mov rcx, rdi
call fcn.14000244c
mov dword [rsi], eax
cmp eax, 0xffffffff
jne 0x140029f1e
mov ebx, 1
mov edx, ebx
mov r8, rdi
mov ecx, 0x4000271f
call fcn.140014d90
mov eax, ebx
jmp 0x140029fd5
mov ebx, ebp
mov ecx, eax
neg ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r9d, 2
xor r8d, r8d
mov rcx, rax
mov edx, ebx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov ecx, dword [rsi]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rdx, qword [rsp + 0x70]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140029f72
mov ecx, dword [rsi]
call fcn.14000d778
or dword [rsi], 0xffffffff
jmp 0x140029f03
cmp dword [rsp + 0x50], ebp
jne 0x140029f66
mov rdx, qword [rsp + 0x70]
mov r8, rbp
mov rcx, r14
call sub.msvcrt.dll_memcmp
mov ecx, dword [rsi]
mov ebx, eax
call fcn.14000d778
test ebx, ebx
mov ebx, 1
mov edx, ebx
je 0x140029fa4
or dword [rsi], 0xffffffff
jmp 0x140029f0a
mov rcx, rdi
call fcn.14000244c
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x140029f08
mov ecx, eax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r9d, 2
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14002a968
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rbp, rdx
and dword [rax - 0x24], r15d
mov r12d, r9d
mov r14, r8
lea edx, [r15 + 2]
call fcn.14000244c
mov edi, eax
cmp eax, 0xffffffff
jne 0x14002a9b8
lea ecx, [rax + 0x6f]
call fcn.14002b61c
lea edx, [rdi + 2]
xor ecx, ecx
call fcn.140029fe8
int3
mov ecx, edi
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, rax
mov r8d, r12d
mov rdx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14002aa86
mov eax, dword [rbp + 0x38]
mov ebx, dword [rsp + 0x30]
mov esi, ebx
test eax, 0xc000
jne 0x14002aa0f
cmp ebx, 2
jbe 0x14002aa08
mov ecx, 0xfeff
cmp word [r14], cx
jne 0x14002aa08
bts eax, 0xe
jmp 0x14002aa0c
bts eax, 0xf
mov dword [rbp + 0x38], eax
test esi, esi
je 0x14002aa3b
xor ecx, ecx
lea r9, [rsp + 0x34]
and eax, 0x8002
lea r8, [rsp + 0x30]
cmp eax, 0x8002
mov rdx, r14
sete cl
call fcn.14002844c
mov ebx, dword [rsp + 0x30]
mov r15d, eax
cmp ebx, r12d
je 0x14002a9b8
test r15d, r15d
jne 0x14002aa65
mov ecx, edi
sub ebx, esi
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9d, [r15 + 1]
xor r8d, r8d
mov rcx, rax
mov edx, ebx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, edi
mov dword [0x1400502f8], eax
call fcn.14000d778
mov ecx, dword [0x1400502f8]
xor edx, edx
call fcn.140014d90
mov edx, 1
xor ecx, ecx
call fcn.140029fe8
int3
Function at 0x14002ad34
Capabilities:
Delete file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r9
mov ebp, r8d
mov rbx, rdx
mov esi, ecx
xor edi, edi
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov rcx, rax
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x14002ad8b
cmp ebp, dword [rsp + 0x30]
jne 0x14002ad8b
cmp dword [0x140039834], edi
je 0x14002ae02
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [rsp + 0x70]
mov dword [0x1400502f8], eax
call fcn.14000d778
mov ecx, esi
call fcn.14000d778
mov ecx, esi
call fcn.14000f518
test eax, eax
je 0x14002adb9
mov edi, 0x1d
jmp 0x14002adc2
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov ecx, dword [0x1400502f8]
mov eax, 0x70
and dword [0x1400398e4], 0
test ecx, ecx
cmove ecx, eax
cmp dword [0x140039834], 0
mov dword [0x1400502f8], ecx
je 0x14002adec
xor edi, edi
jmp 0x14002adf5
test edi, edi
jne 0x14002adf5
call fcn.14002b61c
mov edx, 1
mov ecx, edi
call fcn.140029fe8
int3
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14002b0ec
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rbp + 0x148], rax
mov esi, 0x104
mov byte [rbp + 0x130], 1
mov ebx, ecx
mov qword [rbp + 0x138], rsi
xor r14d, r14d
lea rcx, [rsp + 0x20]
mov r8d, esi
mov qword [rbp + 0x128], r14
xor edx, edx
mov edi, r14d
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x130]
lea rcx, [rsp + 0x20]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, rsi
call fcn.1400104d0
test eax, eax
js 0x14002b2b1
lea eax, [r14 + 0x3d]
mov dword [rbp + 0x144], 0x3a
add bx, 0x40
mov word [rbp + 0x140], ax
lea rcx, [rbp + 0x140]
mov word [rbp + 0x142], bx
call fcn.140012b78
mov rbx, rax
test rax, rax
je 0x14002b1c7
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test al, al
jne 0x14002b28e
lea ecx, [r14 + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
mov edi, eax
mov rcx, qword [rbp + 0x128]
lea rdx, [rsp + 0x20]
test rcx, rcx
cmovne rdx, rcx
movzx ecx, word [rbp + 0x142]
mov word [rdx], cx
lea rdx, [rsp + 0x20]
mov rcx, qword [rbp + 0x128]
movzx eax, word [rbp + 0x144]
test rcx, rcx
cmovne rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rdx + 2], ax
lea rdx, [rsp + 0x20]
mov rax, qword [rbp + 0x128]
test rax, rax
cmovne rcx, rax
mov eax, 0x5c
mov word [rcx + 4], ax
lea rcx, [rsp + 0x20]
mov rax, qword [rbp + 0x128]
test rax, rax
cmovne rcx, rax
mov word [rcx + 6], r14w
lea rcx, [rbp + 0x140]
mov rax, qword [rbp + 0x128]
test rax, rax
cmovne rdx, rax
call fcn.14000b9d8
mov rax, qword [rbp + 0x128]
lea rcx, [rsp + 0x20]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14002b281
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.140014d90
test rbx, rbx
je 0x14002b28e
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
mov rax, qword [0x140050298]
lea rcx, [0x140050090]
mov edx, dword [0x1400502a8]
test rax, rax
cmovne rcx, rax
xor r8d, r8d
call fcn.14000bae4
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14002b2ec
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
test eax, eax
jne 0x14002b30b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x1400502f8], eax
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002b75c
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor esi, esi
mov rdi, rcx
mov r8d, 0x104
mov qword [rsp + 0x20], rsi
xor edx, edx
mov qword [rbp + 0x138], rsi
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x148], r8
lea ebx, [rsi + 1]
mov byte [rbp + 0x140], bl
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x140]
lea rcx, [rsp + 0x30]
neg al
sbb rdx, rdx
and edx, 0xfdc6
add rdx, 0x208
call fcn.1400104d0
test eax, eax
js 0x14002b84b
mov rax, qword [rbp + 0x138]
lea r8, [rsp + 0x30]
mov edx, dword [rbp + 0x148]
lea r9, [rsp + 0x20]
test rax, rax
mov rcx, rdi
cmovne r8, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
test eax, eax
je 0x14002b84b
cmp eax, 0xffce
jbe 0x14002b84b
mov rax, qword [rbp + 0x138]
lea rcx, [rsp + 0x30]
test rax, rax
cmovne rcx, rax
mov word [rcx + 6], si
lea rcx, [rsp + 0x30]
mov rax, qword [rbp + 0x138]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 4
je 0x14002b84d
mov ebx, esi
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180024120
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002413d
mov eax, 1
cmp edx, eax
jne 0x18002417f
mov qword [0x180073658], rcx
add rsp, 0x28
ret
cmp qword [0x18005ea60], 0
je 0x18002417a
cmp qword [0x18005ea68], 8
lea rcx, [0x18005ea50]
cmovae rcx, qword [0x18005ea50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
lea rdx, [0x1800336fc]
lea rcx, [0x18005ea50]
call fcn.180001750
mov eax, 1
add rsp, 0x28
ret