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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rdi, rcx
mov esi, r15d
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ebx, eax
mov r14d, 0x80
cmove ebx, r14d
test bpl, bl
je 0x18001d32f
mov edx, ebx
mov rcx, rdi
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, ebp
bt ebx, 0xb
jae 0x18001d3cb
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x18001d388
test esi, esi
je 0x18001d384
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
jmp 0x18001d3dc
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], r15d
mov r9d, 2
mov edx, 0x9c040
mov qword [rsp + 0x20], r15
mov rcx, r14
mov word [rsp + 0x40], r15w
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, r14
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x18001d3da
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18001d520
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x6b0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x280]
call fcn.180113150
xor edx, edx
lea rcx, [rsp + 0x490]
mov r8d, 0x208
call fcn.180113150
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001d580
movzx ecx, word [rbx + rax*2 - 2]
lea r14, [0x180154c70]
test rdi, rdi
lea rax, [0x180155ddc]
mov ebp, 0x5c
lea r8, [0x180155c60]
cmove rdi, rax
mov r9, rbx
cmp bp, cx
mov qword [rsp + 0x20], rdi
mov edx, 0x103
lea rcx, [rsp + 0x490]
cmovne r8, r14
call fcn.18000f870
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x250
call fcn.180113150
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001d6fa
nop word [rax + rax]
lea rdx, [0x180155a8c]
lea rcx, [rsp + 0x5c]
call fcn.1801153c8
test eax, eax
je 0x18001d6e4
lea rdx, [0x180155a90]
lea rcx, [rsp + 0x5c]
call fcn.1801153c8
test eax, eax
je 0x18001d6e4
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001d650
cmp bp, word [rbx + rax*2 - 2]
lea r8, [0x180155c60]
lea rax, [rsp + 0x5c]
mov r9, rbx
cmovne r8, r14
mov qword [rsp + 0x20], rax
mov edx, 0x103
lea rcx, [rsp + 0x280]
call fcn.18000f870
mov eax, dword [rsp + 0x30]
test al, 1
je 0x18001d6ae
and eax, 0xfffffffe
lea rcx, [rsp + 0x280]
mov edx, eax
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x280]
test al, 0x10
je 0x18001d6c6
mov r8d, esi
xor edx, edx
call sym.SafeBase64.dll_DeleteDirectory
jmp 0x18001d6e4
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001d6e4
xor edx, edx
lea r8d, [rax + 4]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18001d610
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x18001d710
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x6b0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001d740
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push rdi
sub rsp, 0x2a0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
call fcn.1800f3548
mov rcx, rax
test rax, rax
je 0x18001d967
mov rax, qword [rax]
mov qword [rsp + 0x2b8], rbx
mov qword [rsp + 0x2c0], rbp
mov qword [rsp + 0x2c8], rsi
mov qword [rsp + 0x298], r14
mov qword [rsp + 0x290], r15
call qword [rax + 0x18]
xor r14d, r14d
mov esi, 1
add rax, 0x18
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
test rdi, rdi
jne 0x18001d7bf
mov eax, r14d
jmp 0x18001d7cc
mov rax, rbp
inc rax
cmp word [rdi + rax*2], r14w
jne 0x18001d7c2
mov r8d, eax
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.180007b10
lea rdx, [0x180155a80]
mov rax, rbp
inc rax
cmp word [rdx + rax*2], r14w
jne 0x18001d7e6
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.180020bb0
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, rbp
je 0x18001d90b
nop dword [rax]
mov eax, dword [rsp + 0x5c]
cmp eax, 0x2e
je 0x18001d8e9
cmp eax, 0x2e002e
jne 0x18001d840
cmp r14w, word [rsp + 0x60]
je 0x18001d8e9
test rdi, rdi
jne 0x18001d84a
mov eax, r14d
jmp 0x18001d85a
mov rax, rbp
nop dword [rax]
inc rax
cmp word [rdi + rax*2], r14w
jne 0x18001d850
mov r8d, eax
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.180007b10
mov r8d, 1
lea rdx, [0x180155ad4]
lea rcx, [rsp + 0x20]
call fcn.180020bb0
lea rcx, [rsp + 0x5c]
mov rax, rbp
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x18001d890
mov r8d, eax
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.180020bb0
test byte [rsp + 0x30], 0x10
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
je 0x18001d8d6
call sym.SafeBase64.dll_DeleteDirs
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x18001d8e7
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18001d820
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14d, esi
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
mov r15, qword [rsp + 0x290]
sub ebp, 1
mov rbp, qword [rsp + 0x2c0]
mov rsi, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2b8]
jg 0x18001d943
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
mov r14, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x2a0
pop rdi
ret
mov ecx, 0x80004005
call fcn.180007f70
int3
Function at 0x18001d980
Capabilities:
Delete file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xbd0]
sub rsp, 0xcd0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0xbc0], rax
mov rdi, rcx
call fcn.1800f3548
mov rcx, rax
test rax, rax
je 0x18001dc1d
mov rax, qword [rax]
mov qword [rsp + 0xce8], rbx
mov qword [rsp + 0xcf0], rsi
call qword [rax + 0x18]
add rax, 0x18
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
test rdi, rdi
je 0x18001da0c
cmp rdi, 0x10000
jae 0x18001d9fd
movzx edx, di
lea rcx, [rsp + 0x50]
call fcn.18000f660
jmp 0x18001da1e
mov rax, rsi
inc rax
cmp word [rdi + rax*2], 0
jne 0x18001da00
jmp 0x18001da0e
xor eax, eax
mov r8d, eax
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.180007b10
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [rax - 1]
cmp edx, 0xfffffffd
ja 0x18001da6b
test al, 0x10
je 0x18001da46
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
jmp 0x18001dbcb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001dbd0
xor edx, edx
lea r8d, [rax + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x18001dbd0
cmp dword [rbx - 0x10], 0
jl 0x18001dbd0
lea rdx, [0x180155ddc]
mov rcx, rbx
call fcn.18011273c
test rax, rax
je 0x18001dbd0
sub rax, rbx
sar rax, 1
cmp eax, esi
je 0x18001dbd0
xor edx, edx
lea rcx, [rbp + 0x380]
mov r8d, 0x208
call fcn.180113150
xor edx, edx
lea rcx, [rbp + 0x590]
mov r8d, 0x208
call fcn.180113150
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.180113150
xor edx, edx
lea rcx, [rbp + 0x7a0]
mov r8d, 0x208
call fcn.180113150
xor edx, edx
lea rcx, [rbp + 0x9b0]
mov r8d, 0x208
call fcn.180113150
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x208
call fcn.180113150
mov qword [rsp + 0x40], 0x103
lea rax, [rbp + 0x590]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x9b0]
lea rax, [rbp + 0x380]
mov qword [rsp + 0x30], 0x103
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x7a0]
mov r8d, 0x103
mov qword [rsp + 0x20], 0x103
mov rcx, rdi
call fcn.180127104
lea r8, [rbp + 0x380]
mov edx, 0x103
lea rcx, [rsp + 0x60]
call fcn.180125a58
lea r8, [rbp + 0x590]
mov edx, 0x103
lea rcx, [rsp + 0x60]
call fcn.180125a58
lea r8, [rbp + 0x7a0]
mov edx, 0x103
lea rcx, [rbp + 0x170]
call fcn.180125a58
lea r8, [rbp + 0x9b0]
mov edx, 0x103
lea rcx, [rbp + 0x170]
call fcn.180125a58
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call sym.SafeBase64.dll_DeleteDirectory
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
mov rbx, qword [rsp + 0xce8]
sub esi, 1
mov rsi, qword [rsp + 0xcf0]
jg 0x18001dbf8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, 1
mov rcx, qword [rbp + 0xbc0]
xor rcx, rsp
call fcn.18010faf0
mov rdi, qword [rsp + 0xcf8]
add rsp, 0xcd0
pop rbp
ret
mov ecx, 0x80004005
call fcn.180007f70
int3
Function at 0x18001dc30
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor eax, eax
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov edx, 0x3ff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.1801259f0
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001dc91
lea rax, [rax*2 + 2]
cmp rax, 0x800
jae 0x18001dd0a
xor ecx, ecx
mov dword [rsp + 0x28], 3
mov word [rsp + rax + 0x60], cx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov eax, 0x214
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x18001dcff
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x870
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x18001dce6
call fcn.18010fc24
int3
Function at 0x18001f310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edi, edx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.180113150
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x18001f3a0
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18001f370
mov ecx, eax
lea rdx, [rsp + 0x20]
lea rdx, [rdx + rcx*2]
test eax, eax
je 0x18001f3a0
nop dword [rax]
dec eax
lea rdx, [rdx - 2]
cmp word [rdx], 0x5c
je 0x18001f3cc
test eax, eax
jne 0x18001f390
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
xor eax, eax
lea r8, [rsp + 0x20]
mov word [rdx], ax
mov rcx, rbx
lea edx, [rdi - 1]
call fcn.1801259f0
mov eax, 1
jmp 0x18001f3ab

Function at 0x18001f3f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov esi, r8d
mov dword [rsp + 0x20], 3
mov rbp, rdx
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18001f445
xor eax, eax
jmp 0x18001f46d
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18001f490
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, r9
mov r15d, r8d
mov r12, rdx
mov rdi, rcx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ebx, eax
mov ebp, 0x80
cmove ebx, ebp
test bl, 1
je 0x18001f4e5
mov edx, ebx
mov rcx, rdi
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [rbp - 0x7f]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebp
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x18001f52b
test esi, esi
je 0x18001f527
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
jmp 0x18001f564
mov r9, r14
mov qword [rsp + 0x20], 0
mov r8d, r15d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x18001f561
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, r14d
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 r12
ret
Function at 0x18001f590
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push rsi
push rdi
push r12
push r13
sub rsp, 0x78
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r13, r9
mov r12d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.1800f3548
mov rcx, rax
test rax, rax
je 0x18001f744
mov rax, qword [rax]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r15
call qword [rax + 0x18]
xor r14d, r14d
mov rbp, 0xffffffffffffffff
add rax, 0x18
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x18001f620
cmp rsi, 0x10000
jae 0x18001f611
movzx edx, si
lea rcx, [rsp + 0x40]
call fcn.18000f660
jmp 0x18001f633
mov rax, rbp
inc rax
cmp word [rsi + rax*2], r14w
jne 0x18001f614
jmp 0x18001f623
mov eax, r14d
mov r8d, eax
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.180007b10
lea rdx, str.._TMP_
mov rax, rbp
nop dword [rax]
inc rax
cmp word [rdx + rax*2], r14w
jne 0x18001f640
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.180020bb0
mov rbx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, rbp
je 0x18001f6fd
mov r9, r13
mov qword [rsp + 0x20], r14
mov r8d, r12d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
test edi, edi
jne 0x18001f6bf
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18001f6fd
mov r8d, 3
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x18001f6d9
mov eax, 1
jmp 0x18001f6f7
xor edx, edx
mov rcx, rsi
call fcn.18012561c
cmp eax, ebp
je 0x18001f6f5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, r14d
jmp 0x18001f6f7
mov eax, ebp
test eax, eax
setg r14b
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
mov r15, qword [rsp + 0x58]
sub ebp, 1
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
jg 0x18001f724
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x78
pop r13
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.180007f70
int3
Function at 0x18001f750
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rbx, rcx
test r8d, r8d
je 0x18001f7f5
xor eax, eax
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call sym.SafeBase64.dll_GetFileSizeByName
test eax, eax
je 0x18001f7f5
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sym.SafeBase64.dll_GetFileSizeByName
test eax, eax
je 0x18001f7f5
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jne 0x18001f7f5
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call sym.SafeBase64.dll_GetFileSM3
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call sym.SafeBase64.dll_GetFileSM3
mov r8d, 0x20
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180113430
test eax, eax
jne 0x18001f7f5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 2
jmp 0x18001f833
mov r8d, 3
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x18001f812
mov eax, 1
jmp 0x18001f833
xor edx, edx
mov rcx, rdi
call fcn.18012561c
cmp eax, 0xffffffff
je 0x18001f82e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x18001f833
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x18001f860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18001f8b4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x18001f880
test eax, eax
je 0x18001f8ac
cdqe
movzx ecx, word [rbx + rax*2 - 2]
cmp cx, 0x5c
je 0x18001f8a1
cmp cx, 0x3a
jne 0x18001f8ac
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
shr eax, 4
and eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x18001fb00
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x78
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdx, rcx
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x18001fb20
cmp rcx, 2
jb 0x18001fbc6
xor eax, eax
test rcx, rcx
je 0x18001fb4f
nop dword [rax + rax]
cmp word [rdx + rax*2], 0x3a
je 0x18001fb4f
inc rax
cmp rax, rcx
jb 0x18001fb40
dec rcx
cmp rax, rcx
jae 0x18001fbaf
movabs rcx, 0x5c003a0043
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov qword [rsp + 0x28], rcx
test rax, rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
lea rcx, [rax - 1]
cmove rcx, rax
movzx eax, word [rdx + rcx*2]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x18001fbc6
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x78
ret
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x78
ret
Function at 0x18001fbe0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.180113150
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x18001fc20
cmp rax, 3
jbe 0x18001fcb4
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18001fcb4
lea edx, [rax + 0x5c]
mov rcx, rbx
call fcn.180112958
test rax, rax
je 0x18001fcb9
sub rax, rbx
mov qword [rsp + 0x258], rdi
sar rax, 1
lea rcx, [rsp + 0x20]
mov r9, rax
mov r8, rbx
mov edx, 0x103
call fcn.180126d84
lea rcx, [rsp + 0x20]
call sym.SafeBase64.dll_CreateDirs
mov edi, eax
test eax, eax
je 0x18001fc95
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test eax, eax
jne 0x18001fca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ecx, 1
cmove edi, ecx
mov eax, edi
mov rdi, qword [rsp + 0x258]
jmp 0x18001fcb9
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x240
pop rbx
ret

Function at 0x18001fce0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x18001fd33
mov ecx, dword [rsp + 0x60]
mov dword [rbx], ecx
mov ecx, dword [rsp + 0x5c]
mov dword [rbx + 4], ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x18001fd87
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18001fd6e
xor eax, eax
jmp 0x18001fd87
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
ret