joyce8/EMBER2024-capa huggingface dataset:
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 0x140022ad8
mov ecx, dword [rsi]
test ecx, ecx
je 0x140022a84
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 0x140022aae
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 0x140022ad8
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.14002bc40
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 0x140022b1d
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 0x140022b22
call fcn.14000d208
mov ecx, dword [0x140045ba8]
mov edx, 1
call fcn.14002d9d0
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, [0x140034920]
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 0x1400240e2
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 0x1400240fa
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 0x14001b411
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 0x14001b3fc
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.140018f80
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 0x14001b430
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov eax, 1
jmp 0x140008aef
Function at 0x1400091c0
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 [0x14003d0f8]
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.14000ca40
test eax, eax
js 0x140009392
lea ecx, [r12 + 0x48]
call fcn.14000b998
mov rcx, rax
mov rdi, rax
mov qword [rax], rbx
call fcn.140008b20
mov r15, qword [rdi + 0x30]
mov ecx, 0xffce
mov rsi, qword [rdi]
mov rbx, qword [rdi + 0x18]
call fcn.14000b998
xor r8d, r8d
mov qword [0x140045ba0], rax
mov edx, 0x7fe7
mov rcx, rax
call fcn.14001417c
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.140013060
test eax, eax
jne 0x140009392
mov rax, qword [rbp + 0x128]
lea rcx, [rsp + 0x20]
test rax, rax
lea r14d, [r12 + 0x5c]
cmovne rcx, rax
test rcx, rcx
je 0x14001b650
mov edx, r14d
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
mov word [rax + 2], r12w
lea rdx, [rsp + 0x20]
mov rax, qword [rbp + 0x128]
lea rcx, [0x140058250]
test rax, rax
cmovne rdx, rax
call fcn.14000b364
test rbx, rbx
je 0x1400093ea
cmp word [rbx], 0x3a
je 0x1400093ea
cmp word [rbx], r14w
jne 0x140009357
cmp rbx, rsi
je 0x14001b660
mov rax, rsi
cmp word [rax], r12w
je 0x14001b658
mov rcx, rax
add rax, 2
cmp rax, rbx
jne 0x14000932d
cmp word [rcx], 0x3a
je 0x14001b660
cmp word [rcx], r14w
je 0x14001b660
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]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x1400093e5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [0x140045ba8], eax
mov word [rbx], r14w
cmp dword [0x140045ba8], r12d
je 0x1400093ea
mov edi, 1
mov rcx, qword [rbp + 0x128]
mov qword [rbp + 0x128], r12
test rcx, rcx
je 0x1400093b6
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rax, rdi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140018f80
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 0x14000937f
mov rcx, rdi
call fcn.140008b20
mov qword [rdi + 0x30], r15
jmp 0x140009397
mov rax, r12
jmp 0x1400092e4
mov rcx, r12
jmp 0x140009343
add rbx, 2
jmp 0x140009357
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 0x14001c718
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 0x14001c751
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 0x14001c7ec
cmp byte [0x140045b2c], r12b
mov rdi, rax
je 0x14001c7a6
mov ecx, dword [0x140045ad0]
mov r8, rbp
sub r14d, ecx
mov edx, r14d
lea rcx, [rax + rcx*2]
call fcn.1400113e0
jmp 0x14001c7dd
lea r8, [0x140036588]
mov rdx, r15
mov rcx, rbx
call fcn.140011300
inc rsi
cmp word [rbx + rsi*2], r12w
jne 0x14001c7b8
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, [0x1400343e4]
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 0x14001d8c8
lea rdx, str.CMDCMDLINE
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001d8d3
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 0x14001d8e5
lea rdx, str.HIGHESTNUMANODENUMBER
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001d8f9
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, [0x140034828]
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.140019158
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.140018f80
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 0x14001e95c
mov r13d, 0x2000
lea r14, [0x140049c00]
cmp ebx, r13d
ja 0x14001e980
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 0x14001417c
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebp, ebp
movsxd rdi, edx
movzx esi, r8w
mov rbx, rcx
test r8w, r8w
jne 0x1400141d4
mov rdx, rcx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018f80
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x3d
movzx ecx, si
mov word [rsp + 0x20], ax
call qword [sym.imp.msvcrt.dll_towupper]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], 0x3a
mov word [rsp + 0x22], ax
call fcn.14001081c
test rax, rax
je 0x14001ecac
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.1400113e0
jmp 0x1400141b9
movzx ecx, si
call qword [sym.imp.msvcrt.dll_towupper]
nop dword [rax + rax]
mov word [rbx], ax
mov eax, 1
mov dword [rbx + 2], 0x5c003a
mov word [rbx + 6], bp
jmp 0x1400141bb
Function at 0x14001498c
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov byte [0x140045966], dil
test rdx, rdx
je 0x1400149ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x1400149a8
neg rax
sbb rax, rax
and rdx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
mov ebx, eax
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
test ebx, ebx
mov qword [0x140041918], rax
mov rbx, qword [rsp + 0x30]
sete dil
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x140014a14
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
nop dword [rax + rax]
xor ebp, ebp
mov rbx, rax
mov edi, ebp
test rax, rax
je 0x140014aae
mov rcx, rax
cmp word [rax], bp
je 0x140014a59
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140014a48
cmp word [rcx], bp
jne 0x140014a48
sub rcx, rbx
add rcx, 2
sar rcx, 1
lea esi, [rcx + rcx]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140014a9f
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
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 0x14001f470
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

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 0x14001f9cc
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14001fa5c
cmp word [rax], r14w
je 0x14001fa5c
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.140018f80
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 0x14001fa3a
cmp word [rbx + 2], 0x3a
jne 0x140017110
cmp word [rbx + 4], 0x5c
jne 0x140017110
cmp word [rbx + 6], r14w
jne 0x140017110
jmp 0x14001fa3a
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 0x14001fa1b
cmp rax, rsi
jbe 0x14001fa1b
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 0x14001fa2f
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