joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e5420
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rbx, [r8 + 0x2c]
mov r12, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov r15d, 0x7fff
mov edx, 0x7fff
sub rdx, rax
lea rcx, [r12 + rax*2]
lea r8, [0x14029d582]
mov r9, rbx
call fcn.1400169e0
mov word [r12 + 0xfffe], 0
test eax, eax
js 0x1400e551b
movsxd r12, eax
sub r15, qword [rdi + 0x10]
cmp r15, r12
jl 0x1400e551b
mov edx, 0x8000
mov rcx, rbx
call fcn.140276700
cmp rax, r12
jne 0x1400e551b
add qword [rdi + 0x10], r12
mov r15d, dword [r14]
test r15d, 0x400
jne 0x1400e554c
xor ebp, ebp
test r15b, 0x10
je 0x1400e552b
lea rdx, [0x1402fab92]
mov rcx, rbx
call fcn.1402812fc
test eax, eax
je 0x1400e54f2
lea rdx, [0x1402fab96]
mov rcx, rbx
call fcn.1402812fc
mov ebp, 1
test eax, eax
jne 0x1400e552b
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140263300
mov rcx, rsi
mov rdx, rdi
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400e5270
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, 3
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140263300
mov eax, ebp
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ebp, 2
cmp byte [rdi + 0x2a], 0
je 0x1400e552b
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e552b
mov ebp, 0
test r15b, 0x10
je 0x1400e552b
mov r14, rax
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400e564f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x60]
mov ebp, dword [rsp + 0x70]
mov r12d, dword [rsp + 0x74]
mov r15, qword [rsi + 0x20]
test r15, r15
je 0x1400e5603
mov rax, r15
jmp 0x1400e55e9
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400e5603
cmp dword [rax], r14d
jne 0x1400e55e0
cmp dword [rax + 4], r12d
jne 0x1400e55e0
cmp dword [rax + 8], ebp
jne 0x1400e55e0
mov ebp, 2
jmp 0x1400e552b
lea rdx, [0x1402fab92]
mov rcx, rbx
call fcn.1402812fc
test eax, eax
je 0x1400e5667
lea rdx, [0x1402fab96]
mov rcx, rbx
call fcn.1402812fc
test eax, eax
je 0x1400e5667
mov ecx, 0x18
call fcn.140263580
mov dword [rax], r14d
mov dword [rax + 4], r12d
mov dword [rax + 8], ebp
mov qword [rax + 0x10], r15
mov qword [rsi + 0x20], rax
mov ebp, 1
jmp 0x1400e552b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
jmp 0x1400e5520
mov rcx, rsi
mov rdx, rdi
call fcn.1400e5270
mov ebp, eax
jmp 0x1400e552b
Function at 0x1400e56e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rcx, rdx
call fcn.1400eb650
mov rdi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023770
mov rsi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e57a3
mov edi, 2
test al, 0x10
je 0x1400e57b7
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e57b7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x1400e57b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xfffffffe
xor edi, edi
cmp eax, 2
sete dil
add edi, edi
mov rcx, rsi
call fcn.14026b828
mov eax, edi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400e57d0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
xor edi, edi
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400e5888
lea edi, [rax + 1]
movsxd rcx, eax
cmp eax, 0xffffffff
lea rax, [rcx + rcx + 2]
mov rcx, 0xffffffffffffffff
cmovge rcx, rax
call fcn.140263328
mov rsi, rax
mov ecx, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r14
movsxd rbx, eax
mov rcx, rbx
call fcn.140023770
mov rdi, rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r14
mov rcx, rsi
call fcn.1402635bc
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400e58a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rcx, rdx
call fcn.1400eb650
mov rdi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023770
mov rsi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call rbx
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test eax, eax
jne 0x1400e597f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400e597f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e5979
test al, 0x10
je 0x1400e597f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e597f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x1400e5984
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
setne bl
mov rcx, rsi
call fcn.14026b828
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400e59a0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, 0x8000
mov edx, 2
call fcn.140023710
mov rsi, rax
mov ecx, 0x7fff
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
mov word [rsi + rax*2], 0
mov rcx, rsi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee6a0
mov rdi, rax
mov rcx, rsi
call fcn.14026b828
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400e5a00
Capabilities:
Create directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, rdx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], 0
mov ecx, 0x8000
mov edx, 2
call fcn.140023710
mov rsi, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023770
mov rdi, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
lea r8, [0x14029d582]
mov edx, 0x7fff
mov rcx, rsi
mov r9, rdi
call fcn.1400169e0
mov word [rsi + 0xfffe], 0
cmp eax, 0x7fff
ja 0x1400e5b62
mov ebp, eax
movsxd r14, eax
mov edx, 0x8000
mov rcx, rdi
call fcn.140276700
cmp rax, r14
jne 0x1400e5b62
mov qword [rsp + 0x48], r14
cmp ebp, 0x7ff7
ja 0x1400e5b6d
mov dword [rsp + 0x3c], 0
lea rdx, [rsp + 0x3c]
mov ecx, 4
call fcn.1400e1330
test al, al
je 0x1400e5b9c
mov r9d, dword [rsp + 0x3c]
lea r8, [0x1402fab8e]
lea rsi, [rsp + 0x57]
mov edx, 9
mov rcx, rsi
call fcn.1400251c0
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400e50f0
mov rsi, qword [rsp + 0x40]
test al, al
je 0x1400e5b6d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400e5b9c
mov rcx, rsi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee6a0
jmp 0x1400e5ba4
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov rcx, rdi
call fcn.14026b828
mov rcx, rsi
call fcn.14026b828
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140263300
mov rax, rbx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.1400e5bb0
mov rbx, rax
jmp 0x1400e5b6f
Function at 0x1400e5bb0
Capabilities:
Create directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0x8000
mov edx, 2
call fcn.140023710
mov rsi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023770
mov rdi, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
lea r8, [0x14029d582]
mov edx, 0x7fff
mov rcx, rsi
mov r9, rdi
call fcn.1400169e0
mov word [rsi + 0xfffe], 0
cmp eax, 0x7fff
ja 0x1400e5d38
mov ebx, eax
movsxd r15, eax
mov edx, 0x8000
mov rcx, rdi
call fcn.140276700
cmp rax, r15
jne 0x1400e5d38
cmp ebx, 0x7fdb
ja 0x1400e5d43
lea rcx, [rsp + 0x38]
call qword [sym.imp.RPCRT4.dll_UuidCreateSequential]
cmp eax, 0x720
je 0x1400e5ca2
test eax, eax
jne 0x1400e5d43
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x30]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1400e5d43
mov rbx, qword [rsp + 0x30]
mov r14d, 0x7fff
sub r14, r15
lea rcx, [rsi + r15*2]
lea r8, [0x14029d582]
mov rdx, r14
mov r9, rbx
call fcn.1400169e0
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e5d38
movsxd r15, eax
cmp r14, r15
jl 0x1400e5d38
mov edx, 0x8000
mov rcx, rbx
call fcn.140276700
cmp rax, r15
jne 0x1400e5d38
lea rcx, [rsp + 0x30]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
xor ebx, ebx
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400e5d45
mov rcx, rsi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee6a0
mov rbx, rax
jmp 0x1400e5d45
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov rcx, rdi
call fcn.14026b828
mov rcx, rsi
call fcn.14026b828
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140263300
mov rax, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400e5d80
Capabilities:
Delete directory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov ebx, r8d
mov rdi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
call fcn.1400eb650
mov r14, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r15, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call r15
movsxd r12, eax
lea rcx, [r12 + r12]
call fcn.140023770
mov rsi, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r14
mov r9d, 0xffffffff
call r15
test bl, bl
je 0x1400e5e6e
mov ecx, 0x8000
mov edx, 2
call fcn.140023710
mov rdi, rax
mov qword [rsp + 0x30], rax
lea r8, [0x14029d582]
mov edx, 0x7fff
mov rcx, rax
mov r9, rsi
call fcn.1400169e0
mov word [rdi + 0xfffe], 0
cmp eax, 0x7fff
ja 0x1400e5e91
movsxd rbx, eax
mov edx, 0x8000
mov rcx, rsi
call fcn.140276700
cmp rax, rbx
jne 0x1400e5e91
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x30]
call fcn.1400e5ee0
mov ebx, eax
jmp 0x1400e5e9e
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.1400ec2e0
cmp eax, 1
jne 0x1400e5ea8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
jmp 0x1400e5eb5
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov rcx, rdi
call fcn.14026b828
jmp 0x1400e5eb5
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov rcx, rsi
call fcn.14026b828
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400e61f0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rcx, rdx
call fcn.1400eb650
mov rbx, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023770
mov rsi, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e6337
test al, 0x10
je 0x1400e633d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e633d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400eb650
mov rdi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023770
mov rbx, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call r14
mov rcx, rsi
mov rdx, rbx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov rcx, rbx
call fcn.14026b828
jmp 0x1400e634a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov rcx, rsi
call fcn.14026b828
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400e6360
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx]
mov rax, qword [rdx + 8]
mov ebx, 0x7fff
mov edx, 0x7fff
sub rdx, rax
lea rcx, [r14 + rax*2]
lea r8, [0x14029d582]
mov r9, rdi
call fcn.1400169e0
mov word [r14 + 0xfffe], 0
test eax, eax
js 0x1400e641b
movsxd r14, eax
sub rbx, qword [rsi + 8]
cmp rbx, r14
jl 0x1400e641b
mov edx, 0x8000
mov rcx, rdi
call fcn.140276700
cmp rax, r14
jne 0x1400e641b
add qword [rsi + 8], r14
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x1400e6428
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400e6426
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
je 0x1400e6428
mov ecx, edx
and ecx, 1
je 0x1400e6428
and edx, 0xfffffffe
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400e6426
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x1400e6428
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400eb170
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14027833c
cdqe
add rsp, 0x28
ret
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
jmp 0x140025370

Function at 0x1400eb180
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, r8
mov rsi, rdx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
call fcn.140281a68
mov rbx, rax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rax
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400eb25e
mov edi, dword [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400eb265
mov ecx, dword [rsp + 0x44]
add rcx, rcx
call fcn.140263328
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebx, eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov ecx, ebx
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r9d, dword [rsp + 0x44]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, ebx
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov rcx, rdi
call fcn.1402635bc
movsxd rdi, esi
jmp 0x1400eb265
mov rdi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140263300
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400eb3c0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
call fcn.140281a68
xor edi, edi
mov rcx, rax
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400eb40a
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax]
call fcn.140281a68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne dil
mov eax, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ec2e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov ebp, r8d
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [0x1402fad10]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x38]
mov r8b, 1
call fcn.1400eb6b0
mov rsi, qword [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023770
mov rdi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ec3a1
mov ebx, eax
test eax, 0x400
jne 0x1400ec3a8
shr ebx, 4
and ebx, 1
jmp 0x1400ec415
mov ebx, 5
jmp 0x1400ec415
mov ebx, 2
test bpl, bpl
je 0x1400ec415
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400ec415
mov r14, rax
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
shr eax, 4
and eax, 1
test ebx, ebx
mov ebx, 2
cmovne ebx, eax
mov rcx, rdi
call fcn.14026b828
cmp byte [rsp + 0x38], 0
je 0x1400ec42c
mov rcx, rsi
call fcn.14026b828
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400ec600
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [0x1402fad40]
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x78], r9
lea rcx, [rsp + 0x30]
mov r8b, 1
call fcn.1400eb6b0
mov rdi, qword [rsp + 0x38]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023770
mov rsi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ec6c2
mov ecx, eax
and ecx, 0x400
je 0x1400ec6c2
mov rcx, rsi
test al, 0x10
jne 0x1400ec6d1
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400ec6d7
mov ecx, 0x1126
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x1400ec6dd
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rcx, rsi
call fcn.14026b828
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140263300
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400ec710
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, r8
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea r14, [0x1402fad40]
mov qword [rsp + 0x48], r14
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x80], rdi
lea rcx, [rsp + 0x38]
mov r8b, 1
mov r9, rdi
call fcn.1400eb6b0
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
xor r8d, r8d
call fcn.1400ec2e0
test eax, eax
je 0x1400ec782
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400ec876
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x80], rdi
lea rcx, [rsp + 0x38]
mov rdx, rsi
mov r8b, 1
mov r9, rdi
call fcn.1400eb6b0
mov rsi, qword [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023770
mov rdi, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r14
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023770
mov rbx, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r14
mov rcx, rdi
mov rdx, rbx
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne sil
mov rcx, rbx
call fcn.14026b828
mov rcx, rdi
call fcn.14026b828
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140263300
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret