joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007ebf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0x298
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, str.SYSTEMMountedDevices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14007ec49
xor al, al
jmp 0x14007ed64
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140268ee0
mov dword [rsp + 0x40], 0x206
mov dword [rsp + 0x44], 3
lea rcx, [rsp + 0x38]
call fcn.140004410
nop
movzx eax, word [rsp + 0x2a0]
mov r8d, eax
lea rdx, str.DosDevices_C:
lea rcx, [rsp + 0x38]
call fcn.140004850
lea rcx, [rsp + 0x38]
call fcn.140003250
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14007ecfc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x38]
call fcn.1400031c0
movzx eax, byte [rsp + 0x30]
jmp 0x14007ed64
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140004170
xor r8d, r8d
lea rdx, str.FLOPPY
lea rcx, [rsp + 0x50]
call fcn.1400066b0
cmp eax, 0xffffffff
je 0x14007ed39
mov dword [rsp + 0x34], 1
jmp 0x14007ed41
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x50]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x38]
call fcn.1400031c0
movzx eax, byte [rsp + 0x31]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x298
ret
Function at 0x14007f8c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x368
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov qword [rsp + 0x20], 0
lea r8, [0x1402eb408]
mov rdx, qword [rsp + 0x370]
lea rcx, [rsp + 0xb8]
call fcn.14003d750
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140003570
lea rdx, [rsp + 0x100]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0xb8]
call fcn.1400049b0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14007f966
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x370]
call fcn.1400049b0
mov rax, qword [rsp + 0x40]
jmp 0x14007fab7
mov eax, dword [rsp + 0x100]
and eax, 0x10
test eax, eax
je 0x14007fa4a
lea rdx, [0x1402eb410]
lea rcx, [rsp + 0x12c]
call fcn.1402775e4
test eax, eax
je 0x14007f9a8
lea rdx, [0x1402eb418]
lea rcx, [rsp + 0x12c]
call fcn.1402775e4
test eax, eax
jne 0x14007f9ad
jmp 0x14007fa75
lea r8, [0x1402eb41c]
mov rdx, qword [rsp + 0x370]
lea rcx, [rsp + 0xd8]
call fcn.14003d750
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x12c]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.140025050
nop
lea rcx, [rsp + 0xd8]
call fcn.1400049b0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
call fcn.1400055f0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14007f8c0
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x98]
call fcn.1400049b0
jmp 0x14007fa75
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x11c]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007f966
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x370]
call fcn.1400049b0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x368
ret
Function at 0x140080b60
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea rcx, [rsp + 0xb0]
call fcn.1400032f0
nop
mov rcx, qword [rsp + 0x300]
call fcn.14007bd60
mov eax, 0x41
mov word [rsp + 0x20], ax
jmp 0x140080bbb
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
cmp eax, 0x5a
jg 0x140080ceb
movzx eax, word [rsp + 0x20]
cmp eax, 0x43
jge 0x140080be6
movzx ecx, word [rsp + 0x20]
call fcn.14007ebf0
movzx eax, al
test eax, eax
je 0x140080be6
jmp 0x140080bae
movzx ecx, word [rsp + 0x20]
call fcn.140277a64
mov word [rsp + 0x24], ax
lea rdx, [rsp + 0x70]
lea rcx, [0x1403cf2e0]
call fcn.140069210
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x78]
lea rcx, [0x1403cf2e0]
call fcn.140066a80
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x24]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.140084390
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x88]
lea rcx, [0x1403cf2e0]
call fcn.140069210
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140054d20
movzx eax, al
test eax, eax
je 0x140080c7c
jmp 0x140080bae
movzx eax, word [rsp + 0x20]
mov r8d, eax
lea rdx, [0x1402eb670]
lea rcx, [rsp + 0xb0]
call fcn.140032c40
lea rcx, [rsp + 0xb0]
call fcn.140003570
mov r8d, 0x104
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x140080ce6
lea rcx, [rsp + 0xb0]
call fcn.14007e790
movzx eax, al
test eax, eax
jne 0x140080ce6
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x300]
call fcn.140087720
jmp 0x140080bae
mov rcx, qword [rsp + 0x300]
call fcn.14006e0b0
cmp rax, 1
jbe 0x140080dd2
mov rcx, qword [rsp + 0x300]
call fcn.140026a10
movzx eax, word [rax]
cmp eax, 0x41
jne 0x140080d6a
mov eax, 0x41
mov word [rsp + 0x26], ax
lea rdx, [rsp + 0x26]
mov rcx, qword [rsp + 0x300]
call fcn.1400876f0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x300]
call fcn.140066a80
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x300]
call fcn.140087340
mov rcx, qword [rsp + 0x300]
call fcn.140026a10
movzx eax, word [rax]
cmp eax, 0x42
jne 0x140080dd2
mov eax, 0x42
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x300]
call fcn.1400876f0
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x300]
call fcn.140066a80
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x300]
call fcn.140087340
mov rcx, qword [rsp + 0x300]
call fcn.14006e0b0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xb0]
call fcn.1400049b0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x2f8
ret
Function at 0x140081a90
Capabilities:
Enumerate disk volumes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x260]
call fcn.140003250
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140081b85
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
call fcn.14026f9f4
test rax, rax
je 0x140081b7a
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x268]
call fcn.140084290
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140268ee0
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
je 0x140081b7a
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x268]
call fcn.140084290
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140268ee0
jmp 0x140081b3a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x250
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140081e2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
je 0x140081e28
cmp dword [rsp + 0x20], 3
je 0x140081e28
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 1
jmp 0x140081e36
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 1
jmp 0x140081e44
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140089e50
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
call fcn.140004410
nop
mov edx, 0x104
lea rcx, [rsp + 0x48]
call fcn.1400046b0
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x48]
call fcn.1400118c0
lea r8, str.test.dat
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140011200
nop
lea rcx, [rsp + 0x50]
call fcn.140003250
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140089f25
lea rdx, str.c:_temp
lea rcx, [rsp + 0x48]
call fcn.140004120
lea rcx, [rsp + 0x48]
call fcn.140003250
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140003250
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call fcn.140007200
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x50]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x48]
call fcn.1400031c0
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret

Function at 0x14008a980
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14008a9ec
mov eax, 2
imul rax, rax, 3
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x208
jae 0x14008a9db
jmp 0x14008a9e0
call fcn.14026431c
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rsp + rcx + 0x30], ax
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x30]
mov ecx, eax
call fcn.1402780d0
cmp eax, 0x78
jne 0x14008aa10
mov dword [rsp + 0x20], 1
jmp 0x14008aa18
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x250
pop rdi
ret
Function at 0x1400a6240
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x1402ee140]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1400a6286
xor eax, eax
jmp 0x1400a63de
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x1402ee178]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x34], 4
jne 0x1400a62ef
cmp dword [rsp + 0x30], 0
je 0x1400a62ef
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400a63de
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x1402ee1b0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x34], 4
jne 0x1400a638a
cmp dword [rsp + 0x30], 1
jb 0x1400a638a
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.HardwareDetectionDisabled
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400a63de
mov dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x1402ee218]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x58
ret

Function at 0x1400a63f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareMacriumReflect
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400a6431
jmp 0x1400a6471
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.HardwareDetectionCount
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x48
ret
Function at 0x1400a6d00
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
lea rdx, str.SoftwareMacriumReflectMIGStoppedUntilReboot
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400a6d3e
cmp dword [rsp + 0x30], 1
je 0x1400a6d69
cmp dword [rsp + 0x30], 2
je 0x1400a6d91
jmp 0x1400a6de3
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
lea rdx, [0x1402ee8a0]
lea rcx, [0x1402ee798]
call fcn.14002dc00
call fcn.1400a69a0
jmp 0x1400a6de3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1402ee8b0]
lea rcx, [0x1402ee8c0]
call fcn.14002dc00
call fcn.1400a6a40
jmp 0x1400a6de3
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 1
lea rdx, [0x1402ee8c8]
lea rcx, [0x1402ee8d8]
call fcn.14002dc00
call fcn.1400a6ae0
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 1
lea rdx, [0x1402ee8e0]
lea rcx, [0x1402ee8f0]
call fcn.14002dc00
call fcn.1400c2de0
xor ecx, ecx
call fcn.1400a7fc0
add rsp, 0x48
ret
Function at 0x1400a6ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x90], 0xfffffffffffffffe
movzx eax, byte [rsp + 0xb8]
test eax, eax
jne 0x1400a6f15
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DisableCheck
lea rcx, [0x1402eeab0]
call fcn.14002da80
cmp eax, 1
jne 0x1400a6f15
xor al, al
jmp 0x1400a7139
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140004170
nop
lea rcx, [rsp + 0x48]
call fcn.140003fd0
cmp eax, 3
jge 0x1400a6f50
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
call fcn.1400031c0
movzx eax, byte [rsp + 0x40]
jmp 0x1400a7139
lea r8, [0x1402eeab8]
lea rdx, [0x1402eeac0]
lea rcx, [rsp + 0x48]
call fcn.140006760
lea rcx, [rsp + 0x48]
call fcn.140003250
mov rcx, rax
call fcn.1400aa570
test eax, eax
je 0x1400a6f97
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x48]
call fcn.1400031c0
movzx eax, byte [rsp + 0x41]
jmp 0x1400a7139
lea rax, [rsp + 0x98]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
call fcn.140007200
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
call fcn.140029340
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.140007070
nop
lea rcx, [rsp + 0x88]
call fcn.1400031c0
lea rdx, str.is_protected.mrimg
lea rcx, [rsp + 0x48]
call fcn.140011410
lea rcx, [rsp + 0x48]
call fcn.140003250
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x510
jne 0x1400a7063
mov dword [rsp + 0x50], 1
jmp 0x1400a706b
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x1400a7086
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x54], 0
je 0x1400a70de
lea rcx, [rsp + 0x48]
call fcn.140003250
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call fcn.1400a7c50
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x1400a70de
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x48]
call fcn.140003250
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a7108
lea rcx, [rsp + 0x48]
call fcn.140003250
mov rcx, rax
call fcn.1400a7d20
cmp dword [rsp + 0x54], 1
jne 0x1400a7119
mov dword [rsp + 0x58], 1
jmp 0x1400a7121
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x42], al
lea rcx, [rsp + 0x48]
call fcn.1400031c0
movzx eax, byte [rsp + 0x42]
add rsp, 0xa8
ret
Function at 0x1400a9a80
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400a9ab5
mov eax, 1
jmp 0x1400a9c81
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x510
je 0x1400a9ac9
xor eax, eax
jmp 0x1400a9c81
mov rcx, qword [rsp + 0xb0]
call fcn.1400a9470
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0xc0010000
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x58], 0
je 0x1400a9b3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x1400a9b4c
xor eax, eax
jmp 0x1400a9c81
lea rcx, [0x1402ee4c0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402ee4a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400a9b83
xor eax, eax
jmp 0x1400a9c81
mov rcx, qword [rsp + 0xb8]
call fcn.14026f9f4
shl rax, 1
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.1400d6048
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.140268ee0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov dword [rax], 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0xb8]
mov rcx, rax
call fcn.140268a80
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x40]
mov edx, 3
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x90]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400d6040
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x50]
add rsp, 0xa8
ret
Function at 0x1400a9c90
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400a9cb5
mov eax, 1
jmp 0x1400a9dcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x510
je 0x1400a9cc9
xor eax, eax
jmp 0x1400a9dcc
mov rcx, qword [rsp + 0x80]
call fcn.1400a9470
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x40010000
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x50], 0
je 0x1400a9d3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x1400a9d4c
xor eax, eax
jmp 0x1400a9dcc
lea rcx, [0x1402ee500]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402ee4e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400a9d7a
xor eax, eax
jmp 0x1400a9dcc
mov dword [rsp + 0x44], 1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov r9d, 4
lea r8, [rsp + 0x44]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x68]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x4c]
add rsp, 0x78
ret

Function at 0x1400a9de0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400a9e13
mov eax, 1
jmp 0x1400a9e63
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x510
je 0x1400a9e24
xor eax, eax
jmp 0x1400a9e63
cmp dword [rsp + 0x40], 0
je 0x1400a9e54
xor eax, eax
cmp eax, 1
je 0x1400a9e54
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a9e54
mov rcx, qword [rsp + 0x38]
call fcn.1400a9c90
test eax, eax
jne 0x1400a9e54
xor eax, eax
jmp 0x1400a9e63
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1400a9a80
add rsp, 0x28
ret