joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180054594
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800545c4
xor eax, eax
jmp 0x180054687
mov rbp, rbx
cmp word [rax], si
je 0x1800545e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800545d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800545cc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180052c7c
movsxd r14, eax
test eax, eax
jne 0x180054627
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800545bd
mov rcx, r14
call fcn.18004dd64
mov rdi, rax
test rax, rax
jne 0x180054640
xor ecx, ecx
call fcn.18004d694
jmp 0x18005461c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180052c7c
test eax, eax
jne 0x180054671
mov rcx, rdi
call fcn.18004d694
jmp 0x18005467b
xor ecx, ecx
call fcn.18004d694
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x1800573fc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18004a9e0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18005749d
cmp ebx, dword [rsp + 0x30]
je 0x180057496
test esi, esi
je 0x180057496
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180057471
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18005747e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18005745b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180057482
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18005749f
mov eax, 1
jmp 0x18005749f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18005be38
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18005126c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005126c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18005bf88
cmp rax, 0xffffffffffffffff
je 0x18005bf88
xor edi, edi
test rbp, rbp
jle 0x18005bf33
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18004c834
mov rbx, rax
test rax, rax
jne 0x18005bec0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18005bf29
mov edx, 0x8000
mov ecx, r14d
call fcn.18005bcbc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18004d38c
cmp eax, 0xffffffff
je 0x18005bf09
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005bed0
mov edx, r15d
mov ecx, r14d
call fcn.18005bcbc
jmp 0x18005bf29
cmp byte [rsi + 0x38], dil
je 0x18005bf20
cmp dword [rsi + 0x34], 5
jne 0x18005bf20
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18005bf29
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18004d694
jmp 0x18005bf9c
jns 0x18005bf9c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005126c
cmp rax, 0xffffffffffffffff
jne 0x18005bf54
cmp byte [rsi + 0x30], dil
je 0x18005bf9c
mov edi, dword [rsi + 0x2c]
jmp 0x18005bf9c
mov ecx, r14d
call fcn.180054d50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18005bf9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18005bf9c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18005bf95
mov eax, dword [rsi + 0x2c]
jmp 0x18005bf9a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005126c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18005c7c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18005c7e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18005c7e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140d85058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d851df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140d85089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d8506f
add dl, dl
jne 0x140d85096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d850f6
xor eax, eax
add dl, dl
jne 0x140d850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d851ad
add dl, dl
jne 0x140d850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d8507e
mov eax, 1
add dl, dl
jne 0x140d85106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d85113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d850fb
sub eax, ebx
mov ebx, 1
jne 0x140d8514c
mov ecx, 1
add dl, dl
jne 0x140d8512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d8513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d85123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d85168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d85175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d8515d
cmp eax, 0x7d00
jae 0x140d8519b
cmp eax, 0x500
jb 0x140d85196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8507e
cmp eax, 0x7f
ja 0x140d8519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d851d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140d8507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002ec0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [r8]
mov rsi, r8
and dword [r9], 0
mov rbx, r9
neg eax
mov rdi, rdx
mov rbp, rcx
sbb r8d, r8d
add r8d, 3
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
je 0x1400287f2
mov eax, 1
mov dword [rbx], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x14002884a
mov edx, 0x400023d3
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.14003285c
test eax, eax
je 0x140028840
cmp eax, 2
jne 0x140028822
and dword [rsi], 0
mov r8d, 3
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
nop
jmp 0x140002f09
mov eax, 1
jmp 0x140002f0b
xor eax, eax
jmp 0x140002f0b
Function at 0x140004a78
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentStringsW]
nop dword [rax + rax]
mov rbx, qword [0x1400449a8]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
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.14001a3bc
mov qword [0x1400449a8], rax
add rsp, 0x20
pop rbx
ret

Function at 0x1400053fc
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 [0x14004cc40], 0
mov ebx, r8d
mov rbp, rdx
mov edi, ecx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__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 0x140028934
cmp dword [rsi], 0
je 0x1400288e0
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + 0x38]
test eax, 0xc000
je 0x14000549c
mov ecx, 0x8002
mov edi, 1
and eax, ecx
cmp eax, ecx
je 0x14002890a
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 dword [rsi], 2
jb 0x1400054ac
mov edx, 0xfeff
cmp word [rbp], dx
je 0x1400054b5
bts eax, 0xf
mov dword [rcx + 0x38], eax
jmp 0x140005470
bts eax, 0xe
jmp 0x1400054b0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e3
je 0x140028934
cmp dword [rsi], 0
jne 0x140005461
and dword [0x14004cc50], 0
xor eax, eax
jmp 0x140005486
mov ebx, dword [rsi]
lea r9, [rsp + 0x30]
mov r8, rsi
mov rdx, rbp
mov ecx, edi
call fcn.14002fd90
mov edx, dword [0x14004cc40]
cmp ebx, dword [rsi]
cmovne edx, edi
mov dword [0x14004cc40], edx
jmp 0x140005484
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, edi
mov dword [0x14004cc50], eax
call fcn.140014604
mov ebx, dword [rsp + 0x78]
mov ecx, ebx
call fcn.14001447c
mov ecx, ebx
test eax, eax
jne 0x140028979
call fcn.140014604
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
jmp 0x14002897e
call fcn.140014604
mov ecx, dword [0x14004cc50]
mov edx, 1
call fcn.1400313b4
int3
Function at 0x140005584
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 0x1400289aa
inc dword [0x14004cb6c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dword [rdx + 0x38], 0x4000
jne 0x140028a0b
test byte [rdx + 0x38], 2
jne 0x1400289cd
test byte [rdx + 0x38], 4
je 0x140028a0b
mov eax, dword [0x14004cb5c]
add eax, 0xfffffffd
cmp eax, 1
ja 0x140028a0b
mov ecx, ebx
call fcn.14001447c
test eax, eax
jne 0x140028a0b
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__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 0x140028a5b
test byte [rdi + 0x38], 0x80
jne 0x140028a5b
mov ecx, ebx
call fcn.14001447c
test eax, eax
jne 0x140028a5b
mov eax, dword [0x14004cb5c]
cmp eax, 3
je 0x140028a5b
test rsi, rsi
je 0x140028a5b
cmp eax, 2
je 0x140028a5b
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__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.140014604
nop
jmp 0x1400055bb
Function at 0x140007340
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 0x1400073e4
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, [0x140037d20]
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 0x1400073e4
cmp dword [rsp + 0x40], 4
jne 0x1400073e4
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
xor eax, eax
jmp 0x1400073dd
Function at 0x140008c8c
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]
xor ebx, ebx
test eax, eax
js 0x140008dcb
mov qword [rbp + 0x7f], rbx
call qword [sym.imp.api_ms_win_core_console_l3_2_0.dll_GetConsoleWindow]
nop dword [rax + rax]
lea rcx, [rbp + 0x7f]
mov qword [rbp - 0x61], rax
call fcn.14000b380
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.140008dd8
test eax, eax
js 0x140008d96
call fcn.14001b6cc
xor edx, edx
mov dword [rbp - 0x51], 0x70
lea r8d, [rbx + 0x6c]
lea rcx, [rbp - 0x4d]
call sub.api_ms_win_crt_string_l1_1_0.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_console_l3_2_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_appmodel_shellexecute_l1_1_0.dll_ShellExecuteExW]
nop dword [rax + rax]
mov r8d, eax
test eax, eax
je 0x140029376
mov rdx, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x17]
mov qword [rdx], rcx
mov ebx, r8d
lea rcx, [rbp + 0x7f]
call fcn.14000b380
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoUninitialize]
nop dword [rax + rax]
mov eax, ebx
lea r11, [rsp + 0xb0]
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 eax, eax
jmp 0x140008dad
cmp qword [rbp - 0x19], rbx
jne 0x14002938b
mov dword [0x14004cc50], 8
jmp 0x140008d93
cmp qword [rbp - 0x19], 0x20
mov ecx, 2
mov eax, dword [rbp - 0x19]
cmove eax, ecx
mov dword [0x14004cc50], eax
jmp 0x140008d93
Function at 0x140009f70
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 [0x1400400b0]
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 0x140029472
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 0x140029491
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14001f920
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp word [rsp + 0x2a], 0x3a
jne 0x140009fb0
cmp word [rsp + 0x2c], 0x5c
jne 0x140009fb0
xor eax, eax
jmp 0x140009fc9
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 0x140009fc7
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 0x140009fc7
test al, 1
je 0x140009fc7
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 0x140009fc7
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 0x1400294fe
xor ebx, ebx
jmp 0x140009fc7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140009fc7
Function at 0x14000ce70
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 [0x1400400b0]
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.api_ms_win_crt_string_l1_1_0.dll_memset
mov al, byte [rbp + 0x160]
lea rcx, [rsp + 0x50]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, rdi
call fcn.140010e10
test eax, eax
js 0x14000cfa6
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 0x14000cf87
cmp eax, 2
je 0x14000cfa6
cmp eax, 5
je 0x14000cfa6
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
jne 0x14000cfa6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x14000cfa6
mov rcx, qword [rbp + 0x158]
mov qword [rbp + 0x158], rsi
test rcx, rcx
je 0x14000cf9f
call fcn.14001fe90
mov eax, 1
jmp 0x14000cfc0
mov rcx, qword [rbp + 0x158]
mov qword [rbp + 0x158], rsi
test rcx, rcx
je 0x14000cfbe
call fcn.14001fe90
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001f920
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

Function at 0x14000d13c
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000d14e
cmp byte [0x14004cbcc], 0
jne 0x14000d154
add rsp, 0x28
ret
cmp qword [0x14004cbb0], 0
jne 0x14000d14e
jmp 0x140025a40
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
nop dword [rax + rax]
and dword [0x14004cb70], 0
mov byte [0x14004cbcc], 0
jmp 0x14000d14e
Function at 0x14000d2d0
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 [0x1400400b0]
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.api_ms_win_crt_string_l1_1_0.dll_memset
mov al, byte [rbp + 0x130]
lea rcx, [rsp + 0x20]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, rdi
call fcn.140010e10
test eax, eax
js 0x14000d4b6
lea ecx, [r12 + 0x48]
call fcn.14000fd4c
mov rcx, rax
mov rdi, rax
mov qword [rax], rbx
call fcn.14000cb6c
mov r15, qword [rdi + 0x30]
mov ecx, 0xffce
mov rsi, qword [rdi]
mov rbx, qword [rdi + 0x18]
call fcn.14000fd4c
xor r8d, r8d
mov qword [0x14004cc48], rax
mov edx, 0x7fe7
mov rcx, rax
call fcn.14001a478
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.140018ed8
test eax, eax
jne 0x14000d4b6
mov rcx, qword [rbp + 0x128]
lea r14d, [r12 + 0x5c]
test rcx, rcx
jne 0x14000d3da
lea rcx, [rsp + 0x20]
mov edx, r14d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [0x14005b640]
mov word [rax + 2], r12w
mov rax, qword [rbp + 0x128]
test rax, rax
cmovne rdx, rax
call fcn.140016cc0
test rbx, rbx
je 0x14000d48d
cmp word [rbx], 0x3a
je 0x14000d48d
cmp word [rbx], r14w
jne 0x14000d44d
cmp rbx, rsi
je 0x14000d449
mov rax, rsi
cmp word [rax], r12w
je 0x14000d43a
mov rcx, rax
add rax, 2
cmp rax, rbx
jne 0x14000d426
jmp 0x14000d43d
mov rcx, r12
cmp word [rcx], 0x3a
je 0x14000d449
cmp word [rcx], r14w
jne 0x14000d44d
add rbx, 2
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
je 0x14000d46e
mov eax, r12d
jmp 0x14000d47a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [0x14004cc50], eax
mov word [rbx], r14w
cmp dword [0x14004cc50], r12d
jne 0x14000d4b6
mov rcx, rdi
call fcn.14000cb6c
mov qword [rdi + 0x30], r15
mov rcx, qword [rbp + 0x128]
mov qword [rbp + 0x128], r12
test rcx, rcx
je 0x14000d4b1
call fcn.14001fe90
mov rax, rdi
jmp 0x14000d4c5
lea rcx, [rsp + 0x20]
call fcn.14001e0bc
mov eax, 1
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14001f920
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
Function at 0x14000def4
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.api_ms_win_crt_private_l1_1_0.dll__o__get_osfhandle]
nop dword [rax + rax]
cmp byte [0x14005bc9c], 0
mov rbp, rax
jne 0x140026110
mov r13d, 0x2000
lea r14, [0x140050dd0]
cmp ebx, r13d
ja 0x140026134
test ebx, ebx
je 0x14000dfad
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rsi
mov ecx, dword [0x1400449b8]
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 0x14000dfd5
cmp dword [rdi], ebx
jne 0x14000dfd5
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 0x14000dfb5
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 0x14000dfb5
and qword [rsp + 0x38], 0
mov r9d, 0x1000
and qword [rsp + 0x30], 0
mov r8, rsi
mov ecx, dword [0x1400449b8]
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, [0x140050dd0]
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 0x14000dfd5
cmp dword [rdi], r14d
jne 0x14000dfd5
jmp 0x14000df3f