joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014e8
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdi, rcx
lea edx, [rbx + 4]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
nop dword [rax + rax]
cmp eax, 3
je 0x14001aaa0
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001aabf
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140018f90
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp word [rsp + 0x2a], 0x3a
jne 0x140001528
cmp word [rsp + 0x2c], 0x5c
jne 0x140001528
xor eax, eax
jmp 0x140001541
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 5
jne 0x14000153f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000153f
test al, 1
je 0x14000153f
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
je 0x14000153f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001ab2c
xor ebx, ebx
jmp 0x14000153f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000153f
Function at 0x140003540
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]
nop dword [rax + rax]
test eax, eax
je 0x140021318
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]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x14002136c
mov edx, 0x400023d3
mov rcx, rsi
lea r8d, [rdx + 1]
call fcn.14002ee48
test eax, eax
je 0x140003590
cmp eax, 2
jne 0x14002134d
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]
nop dword [rax + rax]
mov dword [rdi], eax
jmp 0x140003595
xor eax, eax
jmp 0x140003595
Function at 0x140004f58
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, 0x1a
mov rsi, r9
mov word [rsp + 0x50], ax
mov ebx, r8d
mov rax, qword [rdx + 0x40]
mov rdi, rcx
test rax, rax
cmovne rdx, rax
cmp r8d, 0xffffffff
jne 0x140022944
inc dword [0x140045acc]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dword [rdx + 0x38], 0x4000
jne 0x1400229a5
test byte [rdx + 0x38], 2
jne 0x140022967
test byte [rdx + 0x38], 4
je 0x1400229a5
mov eax, dword [0x140045abc]
add eax, 0xfffffffd
cmp eax, 1
ja 0x1400229a5
mov ecx, ebx
call fcn.1400101b8
test eax, eax
jne 0x1400229a5
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 1
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test rdi, rdi
je 0x1400229f5
test byte [rdi + 0x38], 0x80
jne 0x1400229f5
mov ecx, ebx
call fcn.1400101b8
test eax, eax
jne 0x1400229f5
mov eax, dword [0x140045abc]
cmp eax, 3
je 0x1400229f5
test rsi, rsi
je 0x1400229f5
cmp eax, 2
je 0x1400229f5
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
mov r9, rsi
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
nop dword [rax + rax]
mov ecx, ebx
call fcn.14000d208
nop
jmp 0x140004f8f
Function at 0x140004fe8
Capabilities:
Delete file
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rsi, r9
and dword [0x140045b98], 0
mov ebx, r8d
mov rbp, rdx
mov edi, ecx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
and qword [rsp + 0x20], 0
mov r9, rsi
mov rcx, rax
mov r8d, ebx
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x140022a88
mov ecx, dword [rsi]
test ecx, ecx
je 0x140022a34
mov rdx, qword [rsp + 0x70]
mov eax, dword [rdx + 0x38]
test eax, 0xc000
je 0x140005089
mov ecx, 0x8002
mov edi, 1
and eax, ecx
cmp eax, ecx
je 0x140022a5e
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp ecx, 2
jb 0x140005099
mov ecx, 0xfeff
cmp word [rbp], cx
je 0x1400050a2
bts eax, 0xf
mov dword [rdx + 0x38], eax
jmp 0x14000505d
bts eax, 0xe
jmp 0x14000509d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e3
je 0x140022a88
mov ecx, dword [rsi]
test ecx, ecx
jne 0x14000504e
and dword [0x140045ba8], ecx
xor eax, eax
jmp 0x140005073
mov ebx, dword [rsi]
lea r9, [rsp + 0x30]
mov r8, rsi
mov rdx, rbp
mov ecx, edi
call fcn.14002bc00
mov edx, dword [0x140045b98]
cmp ebx, dword [rsi]
cmovne edx, edi
mov dword [0x140045b98], edx
jmp 0x140005071
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, edi
mov dword [0x140045ba8], eax
call fcn.14000d208
mov ebx, dword [rsp + 0x78]
mov ecx, ebx
call fcn.1400101b8
mov ecx, ebx
test eax, eax
jne 0x140022acd
call fcn.14000d208
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x140022ad2
call fcn.14000d208
mov ecx, dword [0x140045ba8]
mov edx, 1
call fcn.14002d990
int3
Function at 0x1400058d4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov dword [rsp + 0x48], 4
mov r9d, 0x2000000
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140005978
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400348c0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140005978
cmp dword [rsp + 0x40], 4
jne 0x140005978
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
xor eax, eax
jmp 0x140005971
Function at 0x1400065f8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 8], ecx
push rbp
push r14
push r15
lea rbp, [rax - 0x37]
sub rsp, 0xb0
mov edi, ecx
mov rsi, r9
xor ecx, ecx
mov r14, r8
mov r15, rdx
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoInitialize]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140006738
and qword [rbp + 0x7f], 0
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetConsoleWindow]
nop dword [rax + rax]
lea rcx, [rbp + 0x7f]
mov qword [rbp - 0x61], rax
call fcn.1400079cc
lea rax, [rbp + 0x3f]
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x61]
lea rcx, [rbp + 0x7f]
call fcn.1400067f8
test eax, eax
js 0x14000673c
call fcn.140015a68
xor edx, edx
mov dword [rbp - 0x51], 0x70
lea rcx, [rbp - 0x4d]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
mov eax, 0x8008140
mov ecx, 0x8000140
test dil, 0x10
cmovne eax, ecx
mov dword [rbp - 0x4d], eax
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetConsoleWindow]
nop dword [rax + rax]
lea rcx, [rbp - 0x51]
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x49], rax
mov eax, dword [rbp + 0x5f]
mov dword [rbp - 0x21], eax
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], rsi
call qword [sym.imp.ext_ms_win_shell_shell32_l1_2_0.dll_ShellExecuteExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140024092
mov rcx, qword [rbp + 0x77]
mov rax, qword [rbp + 0x17]
mov qword [rcx], rax
lea rcx, [rbp + 0x7f]
call fcn.1400079cc
test ebx, ebx
js 0x140006718
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoUninitialize]
nop dword [rax + rax]
lea r11, [rsp + 0xb0]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
xor edi, edi
jmp 0x140006708
xor edi, edi
jmp 0x1400066ff
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x1400240aa
mov dword [0x140045ba8], 8
jmp 0x1400066ff
mov eax, dword [rbp - 0x19]
cmp rcx, 0x20
mov edx, 2
cmove eax, edx
mov dword [0x140045ba8], eax
jmp 0x1400066ff

Function at 0x140006b84
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentStringsW]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [0x140041918]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
call fcn.140014a14
mov qword [0x140041918], rax
add rsp, 0x28
ret
Function at 0x1400089c0
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 [0x14003d0f8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov edi, 0x104
mov byte [rbp + 0x160], 1
movzx ebx, cx
mov qword [rbp + 0x168], rdi
xor esi, esi
lea rcx, [rsp + 0x50]
mov r8d, edi
mov qword [rbp + 0x158], rsi
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, rdi
call fcn.14000ca40
test eax, eax
js 0x140008ace
lea rcx, [rbp + 0x170]
mov word [rbp + 0x170], bx
mov dword [rbp + 0x172], 0x5c003a
mov word [rbp + 0x176], si
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 1
jbe 0x14001b3c1
cmp eax, 2
je 0x140008ace
cmp eax, 5
je 0x140008ace
mov rax, qword [rbp + 0x158]
lea rdx, [rsp + 0x50]
mov r8d, dword [rbp + 0x168]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x38], esi
lea rcx, [rbp + 0x170]
test rax, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
cmovne rdx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x14001b3ac
mov rcx, qword [rbp + 0x158]
mov qword [rbp + 0x158], rsi
test rcx, rcx
je 0x140008aed
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140018f90
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]
nop dword [rax + rax]
cmp eax, 5
jne 0x140008ace
mov rcx, qword [rbp + 0x158]
mov qword [rbp + 0x158], rsi
test rcx, rcx
je 0x14001b3e0
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov eax, 1
jmp 0x140008aef
Function at 0x14000cad4
Capabilities:
Set console window title

Disassembly:
test rcx, rcx
je 0x14000cb23
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, 0x20
xor r12d, r12d
mov rbp, rcx
cmp qword [0x140045b10], r12
je 0x14000cb25
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
cmp dword [0x140045b28], r12d
jne 0x14000cb05
jmp 0x14001c6c8
mov ecx, 0x20c
call fcn.14000cd90
mov rdi, rax
test rax, rax
je 0x14000cb05
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
nop dword [rax + rax]
test eax, eax
je 0x14000cb05
or rsi, 0xffffffffffffffff
mov rcx, rsi
inc rcx
cmp word [rbp + rcx*2], r12w
jne 0x14001c701
add ecx, dword [0x140045ad0]
lea r14d, [rax + 0xa]
add r14d, ecx
mov rcx, rdi
movsxd r15, r14d
lea rdx, [r15 + r15]
call fcn.14000b6b0
mov rbx, rax
test rax, rax
je 0x14001c79c
cmp byte [0x140045b2c], r12b
mov rdi, rax
je 0x14001c756
mov ecx, dword [0x140045ad0]
mov r8, rbp
sub r14d, ecx
mov edx, r14d
lea rcx, [rax + rcx*2]
call fcn.1400113e0
jmp 0x14001c78d
lea r8, [0x140036528]
mov rdx, r15
mov rcx, rbx
call fcn.140011300
inc rsi
cmp word [rbx + rsi*2], r12w
jne 0x14001c768
mov r8, rbp
mov dword [0x140045ad0], esi
mov rdx, r15
mov rcx, rbx
call fcn.140011300
mov byte [0x140045b2c], 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
nop dword [rax + rax]
mov rcx, rdi
call fcn.14000ff70
nop
jmp 0x14000cb05
Function at 0x14001081c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebp, 0x2000
lea rdi, [0x14003d910]
xor esi, esi
mov r8d, ebp
mov rdx, rdi
mov word [0x14003d910], si
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140010877
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
cmp byte [0x140045b25], sil
je 0x140010970
lea rdx, [0x140034384]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400109bf
lea rdx, str.ERRORLEVEL
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400109a1
lea rdx, str.CMDEXTVERSION
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001d878
lea rdx, str.CMDCMDLINE
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001d883
lea rdx, str.DATE
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400109d1
lea rdx, str.TIME
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140010977
lea rdx, str.RANDOM
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001d895
lea rdx, str.HIGHESTNUMANODENUMBER
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001d8a9
xor eax, eax
jmp 0x140010861
mov r9d, ebp
mov r8, rdi
mov edx, 1
xor ecx, ecx
call fcn.140013140
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x4000
jae 0x1400109e5
mov word [rcx + rdi], si
jmp 0x14001085e
mov r9d, dword [0x14004598c]
lea r8, [0x1400347c8]
mov rdx, rbp
mov rcx, rdi
call fcn.1400133f0
jmp 0x14001085e
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.14001417c
jmp 0x14001085e
mov r9d, ebp
mov r8, rdi
mov edx, 1
xor ecx, ecx
call fcn.140006ee4
jmp 0x140010989
call fcn.140019168
int3
mov r9d, 2
jmp 0x1400109a8
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
nop
jmp 0x140010861
call qword [sym.imp.msvcrt.dll_rand]
nop dword [rax + rax]
mov r9d, eax
jmp 0x1400109a8
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], esi
call qword [sym.imp.api_ms_win_core_systemtopology_l1_1_0.dll_GetNumaHighestNodeNumber]
nop dword [rax + rax]
mov r9d, dword [rsp + 0x38]
jmp 0x1400109a8
Function at 0x14001291c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
mov dword [rsp + 0x22], 0x5c003a
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 1
seta bl
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018f90
add rsp, 0x30
pop rbx
ret
Function at 0x1400136ec
Capabilities:
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 r13
push r14
push r15
sub rsp, 0x40
mov rdi, r9
mov ebx, r8d
mov rsi, rdx
mov r15d, r8d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
cmp byte [0x1400586fc], 0
mov rbp, rax
jne 0x14001e90c
mov r13d, 0x2000
lea r14, [0x140049c00]
cmp ebx, r13d
ja 0x14001e930
test ebx, ebx
je 0x1400137a5
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rsi
mov ecx, dword [0x140041928]
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
and qword [rsp + 0x20], 0
mov r9, rdi
mov rdx, r14
mov rcx, rbp
lea ebx, [rax - 1]
mov r8d, ebx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x1400137cd
cmp dword [rdi], ebx
jne 0x1400137cd
mov dword [rdi], r15d
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
xor eax, eax
jmp 0x1400137ad
and qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
nop
jmp 0x1400137ad
and qword [rsp + 0x38], 0
mov r9d, 0x1000
and qword [rsp + 0x30], 0
mov r8, rsi
mov ecx, dword [0x140041928]
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
and qword [rsp + 0x20], 0
lea rdx, [0x140049c00]
mov r8d, eax
mov r9, rdi
mov rcx, rbp
mov r14d, eax
add rsi, r13
add ebx, 0xffffe000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x1400137cd
cmp dword [rdi], r14d
jne 0x1400137cd
jmp 0x140013737
Function at 0x140015c3c
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140015c4e
cmp byte [0x140045b2c], 0
jne 0x140015c54
add rsp, 0x28
ret
cmp qword [0x140045b10], 0
jne 0x140015c4e
jmp 0x14001f420
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
nop dword [rax + rax]
and dword [0x140045ad0], 0
mov byte [0x140045b2c], 0
jmp 0x140015c4e
Function at 0x140016fb4
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor r14d, r14d
mov rsi, rcx
test rcx, rcx
je 0x14001717e
mov r8d, 0x104
mov qword [rbp + 0x148], r14
xor edx, edx
mov qword [rbp + 0x158], r8
lea rcx, [rsp + 0x40]
mov byte [rbp + 0x150], 1
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x150]
lea rcx, [rsp + 0x40]
neg al
sbb rdx, rdx
and edx, 0xfdc6
add rdx, 0x208
call fcn.14000ca40
test eax, eax
js 0x140017182
mov rax, qword [rbp + 0x148]
lea rbx, [rsp + 0x40]
test rax, rax
mov rcx, rsi
cmovne rbx, rax
call fcn.140011ea0
mov edx, dword [rbp + 0x158]
lea r9, [rsp + 0x30]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140017110
mov rax, qword [rbp + 0x148]
lea rbx, [rsp + 0x40]
test rax, rax
lea r8d, [r14 + 4]
lea rdx, str.._
cmovne rbx, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsncmp]
nop dword [rax + rax]
test eax, eax
je 0x14001f97c
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14001fa0c
cmp word [rax], r14w
je 0x14001fa0c
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rcx, [0x140018590]
lea rax, [rbp + 0x160]
mov r8d, 0x1037
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.14001823c
mov rcx, qword [rsp + 0x38]
movzx edi, al
call fcn.140013a0c
test edi, edi
je 0x140017159
mov rcx, qword [rbp + 0x148]
mov qword [rbp + 0x148], r14
test rcx, rcx
je 0x14001712f
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140018f90
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp word [rbx + 2], 0x5c
je 0x14001f9ea
cmp word [rbx + 2], 0x3a
jne 0x140017110
cmp word [rbx + 4], 0x5c
jne 0x140017110
cmp word [rbx + 6], r14w
jne 0x140017110
jmp 0x14001f9ea
xor eax, eax
jmp 0x140017131
mov edi, r14d
jmp 0x140017110
add rbx, 8
mov rcx, rsi
mov rdx, rbx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001f9cb
cmp rax, rsi
jbe 0x14001f9cb
movzx ebx, word [rax]
mov rcx, rsi
mov word [rax], r14w
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
mov rax, qword [rsp + 0x30]
cmp edi, 0xffffffff
mov word [rax], bx
jmp 0x14001f9df
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140017110
jmp 0x140017182
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 1
jbe 0x140017110
mov edi, 1
jmp 0x140017110
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
mov edi, r14d
setne dil
jmp 0x140017110
Function at 0x140017ff8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor edi, edi
mov rsi, rcx
bt edx, 0xa
jb 0x1400202ef
or qword [rbp + 0x77], 0xffffffffffffffff
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
nop dword [rax + rax]
test eax, eax
js 0x1400202ef
cmp word [rbp - 9], di
ja 0x1400202b0
mov eax, edi
lea rcx, [rbp - 0x29]
mov qword [rbp + 7], rax
mov qword [rbp + 0x27], rcx
lea r9, [rbp - 0x19]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x5040
lea rcx, [rbp + 0x77]
mov dword [rbp + 0x17], 0x30
lea r8, [rbp + 0x17]
mov qword [rbp + 0x1f], rax
mov edx, 0x10000
mov dword [rbp + 0x2f], 0x40
movdqu xmmword [rbp + 0x37], xmm0
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
lea rcx, [rbp - 9]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
nop dword [rax + rax]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
test ebx, ebx
js 0x1400202ef
mov rcx, qword [rbp + 0x77]
call fcn.140018114
mov ebx, 1
test eax, eax
jne 0x1400202bd
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
je 0x1400202ef
mov rbx, qword [rsp + 0xc0]
mov eax, edi
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 7]
lea rcx, [rbp - 9]
jmp 0x140018053
mov rcx, qword [rbp + 0x77]
lea r8, [rbp + 0x6f]
mov r9d, ebx
mov byte [rbp + 0x6f], bl
lea rdx, [rbp - 0x19]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
mov ebx, edi
setns bl
jmp 0x1400180de
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400180f6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x1400180f6