joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bc090
Capabilities:
Get session user name

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x120
mov rbx, qword [0x140207460]
mov rax, qword [rbx]
mov qword [rsp + 0x118], rax
xor eax, eax
mov eax, dword [0x14023e330]
test eax, eax
je 0x1400bc0e0
mov rax, qword [0x14023e328]
mov rdx, qword [rsp + 0x118]
sub rdx, qword [rbx]
jne 0x1400bc1c5
add rsp, 0x120
pop rbx
pop rsi
pop rdi
ret
lea rsi, [rsp + 0x50]
mov dword [rsp + 0x4c], 0x64
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400bc1a0
xor edx, edx
mov r9d, 0xffffffff
mov r8, rsi
mov ecx, 0xfde9
lea rdi, [0x14023e2c0]
mov dword [rsp + 0x28], 0x64
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400bc192
sub eax, 1
js 0x1400bc1a0
mov ecx, 0x18
call fcn.1400a5fa0
mov ecx, 3
mov qword [rax], rdi
mov rsi, rax
mov qword [0x14023e328], rax
call fcn.1400bbf50
mov qword [rsi + 8], rax
mov rax, qword [0x14023e328]
cmp qword [rax + 8], 0
je 0x1400bc1b8
mov qword [rax + 0x10], 0
mov dword [0x14023e330], 1
jmp 0x1400bc0bf
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x22
nop
mov dword [0x14023e330], 1
xor eax, eax
jmp 0x1400bc0bf
lea rdi, str.unknown
mov qword [rax + 8], rdi
jmp 0x1400bc17b
call fcn.1401be670
nop
nop dword [rax + rax]

Function at 0x1400bc7b0
Capabilities:
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x358
mov rbp, qword [0x140207460]
mov rax, qword [rbp]
mov qword [rsp + 0x348], rax
xor eax, eax
mov qword [rsp + 0x28], r8
mov esi, r9d
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea rdi, [rsp + 0x240]
mov r9d, edx
lea r8, str._.s_s.exe
mov edx, 0x104
mov rcx, rdi
call sub.libintl_8.dll_libintl_snprintf
mov r9d, 0xffffffff
mov rdx, rdi
mov rcx, rbx
mov r8d, 0x104
call fcn.1400bb020
test eax, eax
js 0x1400bc8c0
xor r9d, r9d
mov r8d, 0x104
mov edx, eax
mov rcx, rbx
call fcn.1400bc630
test eax, eax
js 0x1400bc870
test esi, esi
je 0x1400bc890
mov rcx, rbx
call sub.msvcrt.dll_wcslen
xor ecx, ecx
mov rsi, qword [sym.imp.msvcrt.dll__waccess]
mov word [rsp + rax*2 + 0x28], cx
xor edx, edx
mov rcx, rbx
call rsi
test eax, eax
jne 0x1400bc870
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400bc8e0
nop dword [rax]
xor eax, eax
mov rdx, qword [rsp + 0x348]
sub rdx, qword [rbp]
jne 0x1400bc8fd
add rsp, 0x358
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor edx, edx
mov rsi, qword [sym.imp.msvcrt.dll__waccess]
mov rcx, rbx
call rsi
test eax, eax
je 0x1400bc8f0
mov rcx, rbx
call sub.msvcrt.dll_wcslen
xor edx, edx
cmp dword [rsp + 0x3a0], 1
mov word [rsp + rax*2 + 0x28], dx
je 0x1400bc870
jmp 0x1400bc851
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
jne 0x1400bc870
call rbx
mov dword [rax], 0x26
jmp 0x1400bc870
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov byte [rsp + rax + 0x23c], 0
mov rcx, rdi
call fcn.1400a5f80
jmp 0x1400bc872
call fcn.1401be670
nop
nop word cs:[rax + rax]
nop
Function at 0x1400bd460
Capabilities:
Check if file exists
Create directory
Get disk information
Get token membership
Query environment variable

Disassembly:
push rbp
mov eax, 0x2048
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rbp, qword [0x140207460]
xor edx, edx
mov rax, qword [rbp]
mov qword [rsp + 0x2038], rax
xor eax, eax
mov rsi, rcx
call fcn.1400bc1d0
test eax, eax
je 0x1400bd62f
call fcn.1400b9ca0
lea rdi, [rsp + 0x30]
mov r9d, 0xffffffff
mov rdx, rsi
mov r8d, 0x1000
mov rcx, rdi
mov ebx, eax
call fcn.1400bb020
test eax, eax
js 0x1400bd508
mov r9d, ebx
mov r8d, 0xf8
mov edx, eax
mov rcx, rdi
call fcn.1400bc630
test eax, eax
js 0x1400bd51a
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wmkdir]
mov ebx, eax
test eax, eax
je 0x1400bd528
mov rax, qword [rsp + 0x2038]
sub rax, qword [rbp]
jne 0x1400bd640
mov eax, ebx
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x1400bd618
mov ebx, 0xffffffff
jmp 0x1400bd4e5
call fcn.1400b9ad0
mov eax, dword [0x1401c4554]
mov qword [rsp + 0x28], rsi
test eax, eax
je 0x1400bd4e5
lea rcx, [rsp + 0x28]
call fcn.1400c36c0
mov rax, qword [rsp + 0x28]
movzx edx, byte [rax]
test dl, dl
je 0x1400bd4e5
mov rsi, rax
jmp 0x1400bd579
mov rdx, rax
cmp ecx, 0x5c
je 0x1400bd588
add rax, 1
mov qword [rsp + 0x28], rax
movzx edx, byte [rdx + 1]
test dl, dl
je 0x1400bd5b0
movsx ecx, dl
cmp dl, 0x2f
jne 0x1400bd560
nop dword [rax]
add rax, 1
mov qword [rsp + 0x28], rax
movsx ecx, byte [rax]
cmp cl, 0x2f
je 0x1400bd588
cmp ecx, 0x5c
je 0x1400bd588
test cl, cl
je 0x1400bd5b0
mov rsi, rax
mov rdx, rax
jmp 0x1400bd568
mov eax, dword [0x1401c4554]
cmp eax, 1
je 0x1400bd625
cmp eax, 2
jne 0x1400bd645
mov r8d, 4
mov rdx, rsi
lea rcx, str..git
call qword [sym.imp.msvcrt.dll__strnicmp]
test eax, eax
jne 0x1400bd4e5
movzx eax, byte [rsi + 4]
test al, al
je 0x1400bd600
movsx edx, al
cmp al, 0x2f
je 0x1400bd600
cmp edx, 0x5c
jne 0x1400bd4e5
nop word [rax + rax]
mov edx, 1
mov rcx, rdi
call fcn.1400b9b60
mov ebx, eax
jmp 0x1400bd4e5
call rbx
mov dword [rax], 0x26
jmp 0x1400bd51a
cmp byte [rsi], 0x2e
je 0x1400bd600
jmp 0x1400bd4e5
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
jmp 0x1400bd51a
call fcn.1401be670
call fcn.1400b8cc0
nop
nop dword [rax + rax]
Function at 0x1400bf130
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push r13
mov eax, 0x3058
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rdi, qword [0x140207460]
mov rbx, rcx
lea r13, [rsp + 0x40]
mov rbp, rdx
mov rsi, r8
mov rax, qword [rdi]
mov qword [rsp + 0x3048], rax
xor eax, eax
call fcn.1400b9ca0
mov r9d, 0xffffffff
mov rdx, rbx
mov rcx, r13
mov r8d, 0x1000
mov r12d, eax
call fcn.1400bb020
test eax, eax
js 0x1400bf220
mov r9d, r12d
mov r8d, 0x104
mov edx, eax
mov rcx, r13
call fcn.1400bc630
test eax, eax
js 0x1400bf22e
lea rax, [rsp + 0x3c]
lea r12, [rsp + 0x2040]
mov edx, 1
mov rcx, r13
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov r8, r12
call fcn.1400bb610
test eax, eax
js 0x1400bf22e
movsxd rbx, dword [rsp + 0x38]
mov rdx, r12
mov rcx, rbp
lea r8d, [rbx + 1]
movsxd r8, r8d
cmp r8, rsi
cmova r8, rsi
call sub.msvcrt.dll_memcpy
cmp rbx, rsi
cmovbe rsi, rbx
mov rax, rsi
mov rdx, qword [rsp + 0x3048]
sub rdx, qword [rdi]
jne 0x1400bf242
add rsp, 0x3058
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x1400bf238
mov eax, 0xffffffff
jmp 0x1400bf1fc
call rbx
mov dword [rax], 0x26
jmp 0x1400bf22e
call fcn.1401be670
nop
nop dword [rax + rax]

Function at 0x1400bf250
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Timestomp file

Disassembly:
push r13
mov eax, 0x2048
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rdi, qword [0x140207460]
mov rsi, rcx
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x2c], 0
mov rax, qword [rdi]
mov qword [rsp + 0x2038], rax
xor eax, eax
call fcn.1400b9ca0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rbx
mov r8d, 0x1000
mov ebp, eax
call fcn.1400bb020
test eax, eax
js 0x1400bf370
mov r9d, ebp
mov r8d, 0x104
mov edx, eax
mov rcx, rbx
call fcn.1400bc630
test eax, eax
js 0x1400bf311
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400bf390
mov r12, qword [sym.imp.msvcrt.dll__wchmod]
mov rbp, qword [sym.imp.msvcrt.dll__wunlink]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edx, 0x1b6
call r12
mov rcx, rbx
call rbp
test eax, eax
je 0x1400bf390
call r13
cmp eax, 5
je 0x1400bf340
cmp eax, 0x20
je 0x1400bf340
mov eax, 0xffffffff
nop word cs:[rax + rax]
mov rdx, qword [rsp + 0x2038]
sub rdx, qword [rdi]
jne 0x1400bf394
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wrmdir]
test eax, eax
je 0x1400bf390
lea rcx, [rsp + 0x2c]
mov r8, rsi
lea rdx, str.Unlink_of_file__s_failed._Should_I_try_again_
call fcn.1400bbec0
test eax, eax
jne 0x1400bf2ec
jmp 0x1400bf311
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
jne 0x1400bf311
call rbx
mov dword [rax], 0x26
jmp 0x1400bf311
xor eax, eax
jmp 0x1400bf320
call fcn.1401be670
nop
nop word [rax + rax]
Function at 0x1400bf3a0
Capabilities:
Check if file exists
Get common file path
Read file on windows
Timestomp file

Disassembly:
push r13
mov eax, 0x2288
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rbx, qword [0x140207460]
mov rax, qword [rbx]
mov qword [rsp + 0x2278], rax
xor eax, eax
mov rbp, rcx
lea rsi, [rsp + 0x20]
mov ecx, 0x4a
mov r13, qword [rbp + 0x10]
mov rdi, rsi
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x270]
call fcn.1400b9ca0
mov r9d, 0xffffffff
mov rdx, r13
mov rcx, rdi
mov r8d, 0x1000
mov r12d, eax
call fcn.1400bb020
test eax, eax
js 0x1400bf4b0
mov r9d, r12d
mov r8d, 0x104
mov edx, eax
mov rcx, rdi
call fcn.1400bc630
test eax, eax
js 0x1400bf4be
jne 0x1400bf478
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bf44e
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x21], 4
jne 0x1400bf498
xor eax, eax
mov rdx, qword [rsp + 0x2278]
sub rdx, qword [rbx]
jne 0x1400bf4f4
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
sub eax, 1
cdqe
cmp word [rsp + rax*2 + 0x270], 0x2f
jne 0x1400bf42c
xor edx, edx
mov word [rsp + rax*2 + 0x270], dx
jmp 0x1400bf42c
xor eax, eax
cmp dword [rsp + 0x44], 0xa0000003
sete al
jmp 0x1400bf450
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x1400bf4e0
mov rax, qword [0x1402078f0]
mov rbx, qword [rbp + 0x10]
lea rcx, str.could_not_get_long_path_for__s
cmp dword [rax], 0
jne 0x1400bf4ea
mov rdx, rbx
call fcn.1400a08a0
nop dword [rax]
call rbx
mov dword [rax], 0x26
jmp 0x1400bf4be
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
jmp 0x1400bf4d5
call fcn.1401be670
nop
nop word [rax + rax]
Function at 0x1400bf500
Capabilities:
Check if file exists
Get common file path

Disassembly:
push r12
mov eax, 0x4030
push rbp
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rdi, qword [0x140207460]
mov rax, qword [rdi]
mov qword [rsp + 0x4028], rax
xor eax, eax
mov rbx, rcx
lea rbp, [rsp + 0x20]
mov rsi, rdx
call fcn.1400b9ca0
mov r9d, 0xffffffff
mov rdx, rbx
mov rcx, rbp
mov r8d, 0x1000
mov r12d, eax
call fcn.1400bb020
test eax, eax
js 0x1400bf5e8
mov r9d, r12d
mov r8d, 0x104
mov edx, eax
mov rcx, rbp
call fcn.1400bc630
test eax, eax
js 0x1400bf5f6
call fcn.1400b9ca0
lea r12, [rsp + 0x2020]
mov r9d, 0xffffffff
mov rdx, rsi
mov r8d, 0x1000
mov rcx, r12
mov ebx, eax
call fcn.1400bb020
test eax, eax
js 0x1400bf5e8
mov r9d, ebx
mov r8d, 0x104
mov edx, eax
mov rcx, r12
call fcn.1400bc630
test eax, eax
js 0x1400bf5f6
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
je 0x1400bf60a
xor eax, eax
mov rdx, qword [rsp + 0x4028]
sub rdx, qword [rdi]
jne 0x1400bf626
add rsp, 0x4030
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x1400bf600
mov eax, 0xffffffff
jmp 0x1400bf5ca
call rbx
mov dword [rax], 0x26
jmp 0x1400bf5f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, esi
mov rbx, rax
call fcn.1400b95f0
mov dword [rbx], eax
jmp 0x1400bf5f6
call fcn.1401be670
nop
nop dword [rax]
Function at 0x1400bf630
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbp
mov eax, 0x2058
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rdi, qword [0x140207460]
mov rax, qword [rdi]
mov qword [rsp + 0x2048], rax
xor eax, eax
mov rsi, rcx
lea rbx, [rsp + 0x40]
call fcn.1400b9ca0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rbx
mov r8d, 0x1000
mov ebp, eax
call fcn.1400bb020
test eax, eax
js 0x1400bf748
mov r9d, ebp
mov r8d, 0x104
mov edx, eax
mov rcx, rbx
call fcn.1400bc630
test eax, eax
js 0x1400bf756
mov rax, qword [0x1402079a0]
mov eax, dword [rax]
test eax, eax
je 0x1400bf707
mov dword [rsp + 0x28], 0x2000000
xor r9d, r9d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov r8d, 7
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400bf78f
xor r9d, r9d
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
je 0x1400bf76a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.1400b8820
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wchdir]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [0x14023eec8], eax
mov rax, qword [rsp + 0x2048]
sub rax, qword [rdi]
jne 0x1400bf7ab
mov eax, ebx
add rsp, 0x2058
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x1400bf760
mov ebx, 0xffffffff
jmp 0x1400bf72a
call rbx
mov dword [rax], 0x26
jmp 0x1400bf756
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, ebp
mov rbx, rax
call fcn.1400b95f0
mov rcx, rsi
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400bf756
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, esi
mov rbx, rax
call fcn.1400b95f0
mov dword [rbx], eax
jmp 0x1400bf756
call fcn.1401be670
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400bf7c0
Capabilities:
Check if file exists

Disassembly:
push r12
mov eax, 0x2070
push rbp
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov r12, qword [0x140207460]
mov rax, qword [r12]
mov qword [rsp + 0x2068], rax
xor eax, eax
mov rbx, rcx
lea rbp, [rsp + 0x60]
mov rdi, rdx
call fcn.1400b9ca0
mov r9d, 0xffffffff
mov rdx, rbx
mov rcx, rbp
mov r8d, 0x1000
mov esi, eax
call fcn.1400bb020
test eax, eax
js 0x1400bf940
mov r9d, esi
mov r8d, 0x104
mov edx, eax
mov rcx, rbp
call fcn.1400bc630
test eax, eax
js 0x1400bf94e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x1400bf859
test bl, 1
jne 0x1400bf928
mov eax, ebx
shl eax, 0x15
and eax, 0x2000000
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x100
mov qword [rsp + 0x30], 0
mov rcx, rbp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400bf9a0
test rdi, rdi
je 0x1400bf970
imul rax, qword [rdi + 8], 0x989680
lea r9, [rsp + 0x50]
movabs rdx, 0x19db1ded53e8000
add rax, rdx
mov qword [rsp + 0x50], rax
imul rax, qword [rdi], 0x989680
add rax, rdx
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rsi
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x1400bf958
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x1400bf8ef
test bl, 1
jne 0x1400bf918
mov rax, qword [rsp + 0x2068]
sub rax, qword [r12]
jne 0x1400bf9d5
mov eax, edi
add rsp, 0x2070
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400bf8ef
mov edx, ebx
mov rcx, rbp
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400bf84f
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x1400bf9c8
mov edi, 0xffffffff
jmp 0x1400bf8ef
call qword [sym.imp.msvcrt.dll__errno]
mov edi, 0xffffffff
mov dword [rax], 0x16
jmp 0x1400bf8dc
lea r9, [rsp + 0x50]
mov qword [rsp + 0x48], r9
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
jmp 0x1400bf8c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, edi
mov edi, 0xffffffff
mov rsi, rax
call fcn.1400b95f0
mov dword [rsi], eax
jmp 0x1400bf8e5
call rbx
mov dword [rax], 0x26
jmp 0x1400bf94e
call fcn.1401be670
nop
nop dword [rax + rax]
Function at 0x1400c0900
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sub.msvcrt.dll_strlen
cmp eax, 3
jle 0x1400c0930
cdqe
lea rdx, [0x1401e1172]
lea rcx, [rbx + rax - 4]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x1400c09f8
mov rcx, rbx
xor edx, edx
call fcn.1400c0420
mov ebx, eax
test eax, eax
js 0x1400c09f8
lea rdi, [0x14023ed80]
mov ecx, eax
mov r8d, 0x103
mov rdx, rdi
call sub.msvcrt.dll__read
mov ecx, ebx
movsxd rsi, eax
call sub.msvcrt.dll__close
cmp esi, 3
jle 0x1400c09f8
cmp byte [0x14023ed80], 0x23
jne 0x1400c09f8
cmp byte [0x14023ed81], 0x21
jne 0x1400c09f8
mov rcx, rdi
lea rdx, [0x1401e1715]
mov byte [rdi + rsi], 0
call sub.msvcrt.dll_strcspn
add rdi, rax
cmp byte [rdi], 0
je 0x1400c09f8
mov byte [rdi], 0
lea rbx, [0x14023ed82]
mov edx, 0x2f
mov rcx, rbx
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x1400c09e0
lea rbx, [rax + 1]
mov edx, 0x20
mov rcx, rbx
call sub.msvcrt.dll_strchr
test rax, rax
je 0x1400c09fa
mov byte [rax], 0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x5c
mov rcx, rbx
call sub.msvcrt.dll_strrchr
test rax, rax
jne 0x1400c09bb
nop word [rax + rax]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400c1210
Capabilities:
Check if file exists
Copy file
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x140207460]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
mov eax, dword [0x1401c43e0]
mov qword [rsp + 0x30], 0
cmp eax, 0xffffffff
je 0x1400c1250
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbx]
jne 0x1400c1298
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
lea rdx, str.SYSTEMCurrentControlSetServicescexecsvc
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
sete al
movzx eax, al
mov dword [0x1401c43e0], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1401c43e0]
jmp 0x1400c123a
call fcn.1401be670
nop
nop
Function at 0x1400c15f0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rdi, qword [0x140207460]
mov rax, qword [rdi]
mov qword [rsp + 0x1028], rax
xor eax, eax
mov ebx, ecx
mov rsi, r8
test ch, 4
je 0x1400c1627
cmp edx, 0xa000000c
je 0x1400c1660
mov eax, ebx
and eax, 0x10
cmp eax, 1
sbb eax, eax
and eax, 0x4000
add eax, 0x4100
mov edx, eax
or dl, 0x80
and ebx, 1
cmove eax, edx
mov rdx, qword [rsp + 0x1028]
sub rdx, qword [rdi]
jne 0x1400c16ad
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
test r8, r8
je 0x1400c166e
call fcn.1400c1210
test eax, eax
jne 0x1400c1678
mov eax, 0xa100
jmp 0x1400c163b
lea rbp, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rsi
mov rdx, rbp
call fcn.1400bf130
cmp eax, 0x1b
jle 0x1400c166e
lea rdx, str._ContainerMappedDirectories_
mov rcx, rbp
call fcn.14007d6d0
test eax, eax
je 0x1400c166e
mov eax, 0x4100
jmp 0x1400c163b
call fcn.1401be670
nop
nop word cs:[rax + rax]
nop
Function at 0x1400c1a30
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push r15
mov eax, 0x42f8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rdi, qword [0x140207460]
mov rax, qword [rdi]
mov qword [rsp + 0x42e8], rax
xor eax, eax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x3c], 0
call fcn.1400c16c0
test eax, eax
jne 0x1400c1a8b
movzx eax, word [rsp + 0x46]
and ax, 0xf000
cmp ax, 0xa000
je 0x1400c1c9f
call fcn.1400b9ca0
mov rdx, qword [rsp + 0x28]
lea rdi, [rsp + 0x2e0]
mov r9d, 0xffffffff
mov r8d, 0x1000
mov rcx, rdi
mov qword [rsp + 0x20], rdi
mov ebx, eax
call fcn.1400bb020
test eax, eax
js 0x1400c1c6d
mov r9d, ebx
mov r8d, 0x104
mov edx, eax
mov rcx, rdi
call fcn.1400bc630
test eax, eax
js 0x1400c1c07
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.msvcrt.dll__wrmdir]
test eax, eax
je 0x1400c1c88
call r15
cmp eax, 5
je 0x1400c1c38
cmp eax, 0x20
je 0x1400c1c38
call r15
mov r14, qword [sym.imp.msvcrt.dll__errno]
mov esi, eax
call r14
mov ecx, esi
mov rbx, rax
call fcn.1400b95f0
mov dword [rbx], eax
call r14
cmp dword [rax], 0xd
jne 0x1400c1c07
lea rbx, [rsp + 0x22e0]
mov rdx, qword [rsp + 0x20]
lea rdi, [rsp + 0x90]
mov rcx, rbx
lea rbp, [0x1401e18c2]
lea r13, [0x1401e18c6]
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
lea rdx, [0x1401e18bc]
call sub.msvcrt.dll_wcscat
mov rcx, rbx
mov rdx, rdi
lea rbx, [rsp + 0xbc]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400c1c5c
nop word [rax + rax]
mov rdx, rbp
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400c1bc2
mov rdx, r13
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400c1c48
mov rdx, rdi
mov rcx, rsi
call r12
test eax, eax
jne 0x1400c1ba0
call r15
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp ebx, 0x12
sete al
test eax, eax
je 0x1400c1c51
mov r8, qword [rsp + 0x28]
lea rcx, [rsp + 0x3c]
lea rdx, str.Deletion_of_directory__s_failed._Should_I_try_again_
call fcn.1400bbec0
test eax, eax
jne 0x1400c1af0
mov eax, 0xffffffff
mov rdi, qword [0x140207460]
mov rdx, qword [rsp + 0x42e8]
sub rdx, qword [rdi]
jne 0x1400c1c9a
add rsp, 0x42f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [sym.imp.msvcrt.dll__errno]
jmp 0x1400c1b33
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
call r14
mov dword [rax], 0x29
jmp 0x1400c1c07
call r15
cmp eax, 0x12
sete al
movzx eax, al
jmp 0x1400c1be5
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
jne 0x1400c1c07
call rbx
mov dword [rax], 0x26
jmp 0x1400c1c07
mov dword [rsp + 0x20], eax
call fcn.14008b200
mov eax, dword [rsp + 0x20]
jmp 0x1400c1c0c
call fcn.1401be670
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x14
jmp 0x1400c1c07
Function at 0x1400c20f0
Capabilities:
Query or enumerate registry value
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rdi, qword [0x140207460]
mov rax, qword [rdi]
mov qword [rsp + 0x48], rax
xor eax, eax
movsxd rbx, ecx
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400c212a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x1400c2148
xor eax, eax
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rdi]
jne 0x1400c21cf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
test ebx, ebx
je 0x1400c21b0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400c212a
lea rax, [0x140242f88]
or dword [rax + rbx*4], 1
mov eax, dword [0x14023ef20]
test eax, eax
jne 0x1400c21a1
movzx eax, word [rsp + 0x38]
mov qword [0x140242f80], rsi
mov dword [0x140242f74], 0
mov word [0x140242f7a], ax
mov word [0x140242f78], ax
mov dword [0x14023ef20], 1
mov eax, 1
jmp 0x1400c212c
lea rdx, [rsp + 0x2c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400c212a
xor edx, edx
mov word [rsp + 0x38], dx
jmp 0x1400c215e
call fcn.1401be670
nop
nop word cs:[rax + rax]
Function at 0x1400c3820
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor edx, edx
mov qword [rcx + 0x10], r9
mov rbx, rcx
mov r9, rcx
mov qword [rcx + 8], r8
lea r8, [0x1400c37f0]
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
xor edx, edx
mov qword [rbx], rax
test rax, rax
je 0x1400c3870
mov eax, edx
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edx, dword [rax]
mov eax, edx
add rsp, 0x30
pop rbx
ret