joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050290
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 [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rcx
lea rsi, [rcx + 0x50]
mov dword [rsi], 7
add rcx, 0x58
call fcn.140052000
lea rcx, [rbx + 0x60]
call fcn.140052000
lea rcx, [rbx + 0x68]
call fcn.140052000
lea rcx, [rbx + 0x70]
call fcn.140052000
mov byte [rbx + 0x4c], 0
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x50]
call fcn.14027b2c0
mov qword [rsp + 0x50], 0
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.1400520c0
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 0x1400503db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140050437
cmp dword [rsp + 0x48], 0x44
jbe 0x14005038f
mov ecx, 0x80004005
call fcn.14004fb90
int3
mov eax, dword [rsp + 0x4c]
cmp eax, 0x80
jbe 0x1400503ab
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140051e60
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 0x140050437
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 0x140050437
mov rdx, rdi
lea rcx, [rbx + 0x60]
call fcn.140051fa0
lea rdx, str.everyone
lea rcx, [rbx + 0x58]
call fcn.140051fa0
xor edx, edx
lea rcx, [rbx + 0x70]
call fcn.140051fa0
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x140050433
lea rcx, [rsp + 0x50]
call fcn.140052080
mov al, 1
jmp 0x14005047d
mov dword [rsi], 7
lea rcx, [rbx + 0x58]
call fcn.140052000
lea rcx, [rbx + 0x60]
call fcn.140052000
lea rcx, [rbx + 0x68]
call fcn.140052000
lea rcx, [rbx + 0x70]
call fcn.140052000
mov byte [rbx + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x14005047b
lea rcx, [rsp + 0x50]
call fcn.140052080
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14012a2b0
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 0x140051c80
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 [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov rdi, rdx
test rdx, rdx
je 0x140051e4f
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140051e4f
lea rcx, [0x140322a78]
mov qword [rsp + 0xa0], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140051d41
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140461000], eax
jle 0x140051d35
lea rcx, [0x140461000]
call fcn.14012a4bc
cmp dword [0x140461000], 0xffffffff
jne 0x140051d35
lea rdx, str.DeriveAppContainerSidFromAppContainerName
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140461000]
mov qword [0x140460fc0], rax
call fcn.14012a45c
mov rax, qword [0x140460fc0]
test rax, rax
jne 0x140051d6c
xor eax, eax
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14012a2b0
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, [0x14045dd00]
call rax
test eax, eax
jne 0x140051e48
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 0x140051e3e
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 0x140051e3e
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 0x140051d43
xor eax, eax
jmp 0x140051d4b
Function at 0x140052ca0
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 [0x1403a8088]
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 0x140052e59
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x140052e59
mov r9, rbp
mov r8, rsi
lea rdx, [0x140322ad0]
lea rcx, [rsp + 0x280]
call fcn.14004bec0
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 0x140052e33
nop dword [rax]
xor r8d, r8d
mov rdx, rbp
lea rcx, [rsp + 0x2cc]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x140052e0d
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 0x140052d80
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 0x140052e27
lea rdx, [rsp + 0x2a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140052e29
jmp 0x140052d50
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rsp + 0x298]
cmp r8, 8
jb 0x140052e59
inc r8
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x280]
call fcn.14004e2e0
mov eax, ebx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x500
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400544c0
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 2]
call fcn.1400526c0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140054502
xor r9d, r9d
lea rdx, [0x140054360]
mov r8, rbx
mov rcx, rax
call fcn.140052980
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]

Function at 0x140054bf0
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 0x140054c27
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rbx
call fcn.140054230
test eax, eax
jne 0x140054c17
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 0x140054c7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
jmp 0x140054c91
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140054c96
sub eax, 2
je 0x140054c8f
cmp eax, ebx
jne 0x140054c91
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 0x140054cb0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140052750
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 0x140054d1b
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140054d14
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.14004e2e0
xor eax, eax
jmp 0x140054d9c
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call fcn.140054bf0
test eax, eax
je 0x140054d59
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140054d52
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.14004e2e0
mov eax, 1
jmp 0x140054d9c
call fcn.14005e1b0
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call fcn.140054bf0
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140054d9a
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.14004e2e0
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x50
pop rbx
ret
Function at 0x140054db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
je 0x140054e31
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140054e13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140054e13
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 0x140054e1e
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 0x140054e31
cmp eax, 0x7b
jne 0x140054e13
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140054e40
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rcx, rcx
jne 0x140054e6c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x38
ret
mov qword [rsp + 0x48], rbx
call fcn.14004bc80
mov rcx, rax
mov rbx, rax
call fcn.140054db0
test eax, eax
jne 0x140054f1e
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
test eax, eax
js 0x140054ea2
mov rcx, rbx
call fcn.140054db0
test eax, eax
jne 0x140054f1e
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathGetArgsW]
test rax, rax
je 0x140054f0d
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 0x140054edf
mov rcx, qword [rax]
call fcn.140054db0
test eax, eax
jne 0x140054ee6
cmp dword [rsp + 0x20], 2
jg 0x140054ef3
mov rcx, qword [rdi]
call fcn.14004bc80
mov rbx, rax
jmp 0x140054efc
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
mov rcx, rbx
call fcn.140054db0
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x140054f1e
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov rcx, rbx
call fcn.140054db0
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x38
ret
Function at 0x140054f40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140055006
test rdx, rdx
je 0x140055006
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140055006
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 0x140055002
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 0x140054ff9
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 0x140055008
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140055030
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400550f1
test rdx, rdx
je 0x1400550f1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400550f1
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 0x1400550ed
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 0x1400550e4
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 0x1400550f3
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400551d0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a8088]
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 0x140055254
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x14005524b
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.14012a2b0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140055480
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x28], rax
test cx, cx
jne 0x1400554ac
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x38
ret
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x1400554be
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140055498
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.14012a2b0
add rsp, 0x38
ret

Function at 0x1400555d0
Capabilities:
Copy file

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x140055673
test rdx, rdx
je 0x140055673
mov qword [rsp + 0x60], rbx
or rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140055600
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.14012a2b0
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x68
ret
Function at 0x140055690
Capabilities:
Copy file

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x14005573a
mov qword [rsp + 0x60], rbx
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400556c0
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.14012a2b0
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x68
ret

Function at 0x140055750
Capabilities:
Move file

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x1400557f3
test rdx, rdx
je 0x1400557f3
mov qword [rsp + 0x60], rbx
or rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140055780
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.14012a2b0
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x68
ret
Function at 0x140055910
Capabilities:
Get disk information

Disassembly:
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1403a8088]
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 0x140055af4
lea edx, [rax + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x140055af4
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, [0x140460b30]
mov rcx, r12
mov qword [rsp + 0x50], r13
call fcn.14027b2c0
xor edx, edx
lea rcx, [0x140460500]
mov r8d, 0x104
call fcn.14027b2c0
mov rdx, r12
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x140055a90
cmp word [0x140460b30], 0
je 0x140055a90
xor r13d, r13d
lea rsi, [0x140460b32]
mov edi, r13d
mov rax, r12
nop dword [rax]
nop dword [rax + rax]
movzx r9d, word [rax]
lea r8, [0x140322d10]
movzx eax, word [rsi]
lea rcx, [0x140460500]
mov edx, 0x208
mov word [rsp + 0x42], ax
mov word [rsp + 0x40], r9w
mov word [rsp + 0x44], r13w
call fcn.14004ebd0
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], Ordinal_133
lea rcx, [0x140460500]
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 0x140055a79
mov rcx, rax
call fcn.140055d60
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.1402804bc
test eax, eax
je 0x140055ad2
add rdi, 4
add rsi, 8
cmp word [r12 + rdi*2], r13w
lea rax, [r12 + rdi*2]
jne 0x1400559e0
mov rdx, r15
mov rcx, r14
call fcn.140055b00
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.14012a2b0
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 0x140055a9b
xor eax, eax
jmp 0x140055abc