joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004fc40
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rcx
lea rsi, [rcx + 0x50]
mov dword [rsi], 7
add rcx, 0x58
call fcn.1400519b0
lea rcx, [rbx + 0x60]
call fcn.1400519b0
lea rcx, [rbx + 0x68]
call fcn.1400519b0
lea rcx, [rbx + 0x70]
call fcn.1400519b0
mov byte [rbx + 0x4c], 0
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x50]
call fcn.1402767a0
mov qword [rsp + 0x50], 0
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140051a70
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x48], 0x44
mov dword [rsp + 0x4c], Ordinal_133
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x20]
lea rdx, str.everyone
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14004fd8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004fde7
cmp dword [rsp + 0x48], 0x44
jbe 0x14004fd3f
mov ecx, 0x80004005
call fcn.14004f540
int3
mov eax, dword [rsp + 0x4c]
cmp eax, 0x80
jbe 0x14004fd5b
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140051810
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x20]
lea rdx, str.everyone
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14004fde7
mov byte [rbx + 0x4c], 1
lea rdx, [rbx + 8]
lea r8, [rbp - 0x20]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x14004fde7
mov rdx, rdi
lea rcx, [rbx + 0x60]
call fcn.140051950
lea rdx, str.everyone
lea rcx, [rbx + 0x58]
call fcn.140051950
xor edx, edx
lea rcx, [rbx + 0x70]
call fcn.140051950
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x14004fde3
lea rcx, [rsp + 0x50]
call fcn.140051a30
mov al, 1
jmp 0x14004fe2d
mov dword [rsi], 7
lea rcx, [rbx + 0x58]
call fcn.1400519b0
lea rcx, [rbx + 0x60]
call fcn.1400519b0
lea rcx, [rbx + 0x68]
call fcn.1400519b0
lea rcx, [rbx + 0x70]
call fcn.1400519b0
mov byte [rbx + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x14004fe2b
lea rcx, [rsp + 0x50]
call fcn.140051a30
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140051630
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov rdi, rdx
test rdx, rdx
je 0x1400517ff
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400517ff
lea rcx, [0x14031da48]
mov qword [rsp + 0xa0], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400516f1
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140458bd0], eax
jle 0x1400516e5
lea rcx, [0x140458bd0]
call fcn.140125c74
cmp dword [0x140458bd0], 0xffffffff
jne 0x1400516e5
lea rdx, str.DeriveAppContainerSidFromAppContainerName
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140458bd0]
mov qword [0x140458b90], rax
call fcn.140125c14
mov rax, qword [0x140458b90]
test rax, rax
jne 0x14005171c
xor eax, eax
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp + 0x17]
lea rcx, [0x1404567d0]
call rax
test eax, eax
jne 0x1400517f8
xor eax, eax
mov qword [rsp + 0x38], rbx
mov qword [rbp + 0x1f], rax
mov esi, 1
mov qword [rbp + 0x27], rax
xor r9d, r9d
mov qword [rbp + 0x3f], rax
mov edx, esi
mov rax, qword [rbp + 0x17]
mov rcx, rdi
mov qword [rbp + 0x47], rax
lea r8d, [rsi + 3]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x23], esi
mov dword [rbp + 0x1f], 0x1f01ff
mov dword [rbp + 0x27], 3
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x2f], rbx
mov dword [rbp + 0x3f], 5
mov qword [rbp + 7], rbx
mov qword [rbp + 0xf], rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x1400517ee
mov r8, qword [rbp + 0xf]
lea r9, [rbp + 7]
lea rdx, [rbp + 0x1f]
mov ecx, esi
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1400517ee
mov rax, qword [rbp + 7]
lea r8d, [rsi + 3]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, esi
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov rcx, qword [rbp + 7]
test eax, eax
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
jmp 0x1400516f3
xor eax, eax
jmp 0x1400516fb
Function at 0x140052650
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x500
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov r15, r9
mov r14, r8
mov rbp, rdx
mov rsi, rcx
mov r12, qword [rsp + 0x560]
mov ebx, 1
test rcx, rcx
je 0x140052809
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x140052809
mov r9, rbp
mov r8, rsi
lea rdx, [0x14031daa0]
lea rcx, [rsp + 0x280]
call fcn.14004bce0
nop
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], 8
cmovae rcx, qword [rsp + 0x280]
lea rdx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400527e3
nop dword [rax]
xor r8d, r8d
mov rdx, rbp
lea rcx, [rsp + 0x2cc]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400527bd
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x2a0]
mov edx, 4
nop
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140052730
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
mov r9, r12
mov r8, r15
mov rdx, rsi
lea rcx, [rsp + 0x30]
call r14
test eax, eax
je 0x1400527d7
lea rdx, [rsp + 0x2a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400527d9
jmp 0x140052700
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rsp + 0x298]
cmp r8, 8
jb 0x140052809
inc r8
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x280]
call fcn.14004e100
mov eax, ebx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x500
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140054530
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov edx, 0x80
mov rbx, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140054567
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rbx
call fcn.140053be0
test eax, eax
jne 0x140054557
mov qword [rsp + 0x30], rdi
lea r8d, [rax + 4]
mov dword [rsp + 0x28], 0x4000000
xor r9d, r9d
mov qword [rsp + 0x50], rsi
mov edx, 0x10000
mov rcx, rbx
mov dword [rsp + 0x20], 3
mov esi, edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, 1
cmp rax, 0xffffffffffffffff
je 0x1400545bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
jmp 0x1400545d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400545d6
sub eax, 2
je 0x1400545cf
cmp eax, ebx
jne 0x1400545d1
mov esi, ebx
test esi, esi
cmovne edi, ebx
mov rsi, qword [rsp + 0x50]
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400545f0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140052100
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14005465b
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140054654
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.14004e100
xor eax, eax
jmp 0x1400546dc
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call fcn.140054530
test eax, eax
je 0x140054699
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140054692
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.14004e100
mov eax, 1
jmp 0x1400546dc
call fcn.14005db60
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call fcn.140054530
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1400546da
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.14004e100
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x50
pop rbx
ret
Function at 0x1400546f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
je 0x140054771
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140054753
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140054753
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14005475e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140054771
cmp eax, 0x7b
jne 0x140054753
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140054780
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rcx, rcx
jne 0x1400547ac
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x38
ret
mov qword [rsp + 0x48], rbx
call fcn.14004baa0
mov rcx, rax
mov rbx, rax
call fcn.1400546f0
test eax, eax
jne 0x14005485e
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
test eax, eax
js 0x1400547e2
mov rcx, rbx
call fcn.1400546f0
test eax, eax
jne 0x14005485e
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathGetArgsW]
test rax, rax
je 0x14005484d
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x14005481f
mov rcx, qword [rax]
call fcn.1400546f0
test eax, eax
jne 0x140054826
cmp dword [rsp + 0x20], 2
jg 0x140054833
mov rcx, qword [rdi]
call fcn.14004baa0
mov rbx, rax
jmp 0x14005483c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
mov rcx, rbx
call fcn.1400546f0
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x14005485e
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov rcx, rbx
call fcn.1400546f0
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x38
ret
Function at 0x140054880
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140054946
test rdx, rdx
je 0x140054946
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140054946
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x2000000
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140054942
xor eax, eax
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140054939
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsi], rax
mov rdx, rsi
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140054948
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140054970
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140054a31
test rdx, rdx
je 0x140054a31
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140054a31
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x2000000
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140054a2d
xor eax, eax
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140054a24
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsi], rax
mov rdx, rsi
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140054a33
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140054b10
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, rdx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], Ordinal_133
mov edx, 0x80
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140054b94
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140054b8b
mov ecx, dword [rsp + 0x40]
mov ebx, 1
shl rcx, 0x20
mov eax, eax
add rcx, rax
mov qword [rsi], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140054dc0
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x28], rax
test cx, cx
jne 0x140054dec
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x38
ret
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140054dfe
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140054dd8
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov word [rsp + 0x26], bx
mov dword [rsp + 0x22], 0x5c003a
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
seta bl
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x38
ret

Function at 0x140054f10
Capabilities:
Copy file

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x140054fb3
test rdx, rdx
je 0x140054fb3
mov qword [rsp + 0x60], rbx
or rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140054f40
xor ebx, ebx
mov word [rcx + rax*2 + 2], bx
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, 0x310
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret
Function at 0x140054fd0
Capabilities:
Copy file

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x14005507a
mov qword [rsp + 0x60], rbx
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140055000
xor ebx, ebx
mov word [rcx + rax*2 + 2], bx
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, 0x710
mov word [rsp + 0x40], ax
lea rax, str.d:personal
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret

Function at 0x140055090
Capabilities:
Move file

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x140055133
test rdx, rdx
je 0x140055133
mov qword [rsp + 0x60], rbx
or rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400550c0
xor ebx, ebx
mov word [rcx + rax*2 + 2], bx
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, 0x310
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x28], 1
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x68
ret
Function at 0x140055280
Capabilities:
Get disk information

Disassembly:
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, rdx
mov r14, rcx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140055464
lea edx, [rax + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x140055464
mov qword [rsp + 0xa0], rbx
xor edx, edx
mov qword [rsp + 0x70], rbp
mov r8d, 0x104
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
lea r12, [0x140458910]
mov rcx, r12
mov qword [rsp + 0x50], r13
call fcn.1402767a0
xor edx, edx
lea rcx, [0x1404582e0]
mov r8d, 0x104
call fcn.1402767a0
mov rdx, r12
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x140055400
cmp word [0x140458910], 0
je 0x140055400
xor r13d, r13d
lea rsi, [0x140458912]
mov edi, r13d
mov rax, r12
nop dword [rax]
nop dword [rax + rax]
movzx r9d, word [rax]
lea r8, [0x14031dce0]
movzx eax, word [rsi]
lea rcx, [0x1404582e0]
mov edx, 0x208
mov word [rsp + 0x42], ax
mov word [rsp + 0x40], r9w
mov word [rsp + 0x44], r13w
call fcn.14004e9f0
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], Ordinal_133
lea rcx, [0x1404582e0]
mov edx, 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400553e9
mov rcx, rax
call fcn.140055710
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbp, eax
mov rdx, rbx
mov r8, rbp
mov rcx, r14
call fcn.14027b99c
test eax, eax
je 0x140055442
add rdi, 4
add rsi, 8
cmp word [r12 + rdi*2], r13w
lea rax, [r12 + rdi*2]
jne 0x140055350
mov rdx, r15
mov rcx, r14
call fcn.140055470
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x78
pop r15
pop r14
ret
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r14 + rbp*2]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x14005540b
xor eax, eax
jmp 0x14005542c
Function at 0x140055470
Capabilities:
Get disk information

Disassembly:
push rbp
push r14
sub rsp, 0x48
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov r14, rcx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400555f9
lea edx, [rax + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1400555f9
mov qword [rsp + 0x70], rbx
xor edx, edx
mov qword [rsp + 0x78], rsi
mov r8d, 0x104
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
lea r15, [0x140458700]
mov rcx, r15
call fcn.1402767a0
xor edx, edx
lea rcx, [0x1404584f0]
mov r8d, 0x104
call fcn.1402767a0
mov rdx, r15
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x14005559b
cmp word [0x140458700], 0
je 0x14005559b
xor r12d, r12d
lea rdi, [0x140458702]
mov ebx, r12d
mov rax, r15
nop dword [rax]
movzx eax, word [rax]
lea rdx, [0x1404584f0]
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
movzx eax, word [rdi]
mov r8d, 0x104
mov word [rsp + 0x22], ax
mov word [rsp + 0x24], r12w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1400555a7
lea rcx, [0x1404584f0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
lea rdx, [0x1404584f0]
mov r8, rsi
mov rcx, r14
call fcn.14027b99c
test eax, eax
je 0x1400555d7
add rbx, 4
add rdi, 8
cmp word [r15 + rbx*2], r12w
lea rax, [r15 + rbx*2]
jne 0x140055530
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x48
pop r14
pop rbp
ret
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r14 + rsi*2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x1400555a9
xor eax, eax
jmp 0x1400555c2