joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180024638
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x480
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x470], rax
call fcn.1800245b8
mov rbx, rax
xor edi, edi
mov word [rsp + 0x260], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x262]
call fcn.180045560
cmp rbx, rdi
je 0x1800246a6
mov r9d, 0x104
lea r8, [rsp + 0x260]
mov rdx, rbx
xor ecx, ecx
call fcn.18001f958
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x18002471a
cmp word [0x1800869a0], di
je 0x1800246ed
mov r8d, 0x104
lea rdx, [0x1800869a0]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rdx, rbx
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x18002471a
lea rdx, [rsp + 0x260]
lea rcx, str.file_not_found:__s
call fcn.18003c460
xor eax, eax
jmp 0x180024884
mov word [rsp + 0x50], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.180045560
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.driverspoflt64.sys
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x18002486a
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x50]
call fcn.18001f764
cmp eax, edi
jne 0x180024863
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
cmp eax, edi
je 0x1800247ad
lea rcx, str.upgrade_poflt_driver_succeeded
call fcn.18001dfb0
jmp 0x180024882
lea rdx, [rsp + 0x50]
lea rcx, str.overwrite__s_failed__rename_it
call fcn.18001e2e0
call fcn.18001ff00
mov r9d, eax
lea r8, [rsp + 0x50]
lea rdx, str._s._08x.dirty
lea rcx, [rsp + 0x28]
call fcn.18002132c
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, edi
je 0x18002483d
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
cmp eax, edi
je 0x180024827
lea rcx, str.upgrade_poflt_driver_succeeded
call fcn.18001dfb0
jmp 0x18002484f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.copy_poflt_driver_failed:__d
call fcn.18001e2e0
jmp 0x18002484f
lea rdx, [rsp + 0x50]
lea rcx, str.rename__s_failed
call fcn.18001e2e0
nop
cmp qword [rsp + 0x48], 8
jb 0x180024882
mov rcx, qword [rsp + 0x30]
call fcn.180043070
jmp 0x180024882
mov ebx, 1
jmp 0x180024882
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret
Function at 0x1800248a8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.180045560
call fcn.1800245b8
mov rdi, rax
cmp rax, rbx
je 0x18002490b
lea r8, [rsp + 0x40]
mov r9d, 0x104
mov rdx, rax
mov rcx, rsi
call fcn.18001f958
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x18002495c
cmp word [0x1800869a0], bx
je 0x180024949
lea rdx, [0x1800869a0]
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x18002495c
xor eax, eax
jmp 0x18002499a
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 1
lea r9, str.poflt_minifilter_driver
lea r8, str.poflt64.sys
lea rdx, [rsp + 0x40]
lea rcx, str.poflt64
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x40b3c
call fcn.180040a74
cmp eax, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180042bb0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180038be4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x20], edi
mov word [rsp + 0x30], di
call fcn.180045560
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, str.Logs_accelerator
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rbx + 0x18], rdi
or rcx, 0xffffffffffffffff
mov qword [rbx + 0x20], 7
mov word [rbx + 8], di
xor eax, eax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.18000297c
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x180038c9c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x20], edi
mov word [rsp + 0x30], di
call fcn.180045560
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, str.Logsignored
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rbx + 0x18], rdi
or rcx, 0xffffffffffffffff
mov qword [rbx + 0x20], 7
mov word [rbx + 8], di
xor eax, eax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.18000297c
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x180038d54
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, r8
mov esi, edx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov word [rsp + 0x60], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.180045560
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, 1
jne 0x180038dce
lea rdx, str.projonepodlp
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x180038de5
cmp esi, 2
jne 0x180038e32
lea rdx, str.projonepotcm
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp rdi, rbp
je 0x180038df8
mov rdx, rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rbp
mov word [rbx + 8], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.18000297c
mov rax, rbx
jmp 0x180038ed8
cmp esi, ebp
jne 0x180038eb3
xor r8d, r8d
lea edx, [r8 + 2]
lea rcx, [rsp + 0x30]
call fcn.180038d54
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, ebp
je 0x180038e8b
mov r8, rdi
mov edx, 2
mov rcx, rbx
call fcn.180038d54
nop
cmp qword [rsp + 0x50], 8
jb 0x180038e86
mov rcx, qword [rsp + 0x38]
call fcn.180043070
mov rax, rbx
jmp 0x180038ed8
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.180038d54
nop
cmp qword [rsp + 0x50], 8
jb 0x180038eae
mov rcx, qword [rsp + 0x38]
call fcn.180043070
mov rax, rbx
jmp 0x180038ed8
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rbp
mov word [rbx + 8], bp
xor r8d, r8d
lea rdx, [0x1800674e0]
mov rcx, rbx
call fcn.18000297c
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800397c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov dil, cl
mov byte [rsp + 0x20], cl
lea rcx, [rsp + 0x20]
mov rsi, rdx
xor ebx, ebx
mov byte [rsp + 0x21], 0x3a
mov byte [rsp + 0x22], 0x5c
mov qword [rsp + 0x23], rax
mov dword [rsp + 0x2b], eax
mov byte [rsp + 0x2f], al
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebp, [rbx + 1]
cmp eax, 2
je 0x180039818
cmp eax, 3
jne 0x18003982b
mov cl, dil
call fcn.180020008
cmp eax, 0xffffffff
je 0x180039837
cmp eax, 7
cmove ebx, ebp
test ebx, ebx
mov al, bpl
setne cl
mov byte [rsi], cl
jmp 0x180039839
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180039854
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
mov qword [r11 - 0x40], rcx
and dword [rsp + 0x24], 0
mov ecx, 8
call fcn.18004316c
test rax, rax
je 0x18003989c
mov qword [rax], rdi
jmp 0x18003989e
xor eax, eax
mov qword [rdi], rax
mov rcx, rdi
call fcn.18001bda8
mov qword [rdi + 0x30], rax
mov byte [rax + 0x1a], 1
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rax
mov rax, qword [rdi + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 0x30]
mov qword [rax + 0x10], rax
and qword [rdi + 0x38], 0
mov dword [rsp + 0x24], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
xor ebx, ebx
bt esi, ebx
jae 0x18003994c
mov byte [rsp + 0x20], 0
lea ecx, [rbx + 0x61]
lea rdx, [rsp + 0x20]
call fcn.1800397c0
test al, al
je 0x18003994c
cmp byte [rsp + 0x20], 0
je 0x18003994c
lea eax, [rbx + 0x41]
mov word [rsp + 0x50], ax
mov eax, 0x3a
mov word [rsp + 0x52], ax
mov eax, 0x5c
mov word [rsp + 0x54], ax
xor eax, eax
mov word [rsp + 0x56], ax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x18003994c
lea ecx, [rbx + 0x41]
mov byte [rsp + 0x20], cl
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.18001d6ac
inc ebx
cmp ebx, 0x1a
jl 0x1800398df
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180042bb0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180039978
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x270], rax
movsx r8d, cl
lea rdx, str.._c:
lea rcx, [rsp + 0x48]
call fcn.1800213d4
cmp qword [rsp + 0x68], 0x10
lea rcx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x50]
xor edi, edi
mov edx, 0x80000000
lea r8d, [rdi + 3]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, rdi
je 0x180039a61
cmp rax, 0xffffffffffffffff
je 0x180039a75
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x70], dil
call fcn.180045560
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov r8d, 0x200
mov rcx, rbx
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
cmp eax, edi
je 0x180039a6f
cmp dword [rsp + 0x250], 0x1a6c0089
jne 0x180039a6f
mov edi, dword [rsp + 0x254]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0x10
jb 0x180039a5d
mov rcx, qword [rsp + 0x50]
call fcn.180043070
mov eax, edi
jmp 0x180039a89
cmp rax, 0xffffffffffffffff
je 0x180039a75
cmp rax, rdi
je 0x180039a75
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0x10
jb 0x180039a87
mov rcx, qword [rsp + 0x50]
call fcn.180043070
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x180039ae8
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edi, r8d
mov r8d, edx
mov dl, cl
lea rcx, [r11 - 0x40]
call fcn.180039aac
nop
test edi, edi
jne 0x180039b40
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.18001e904
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x180039b93
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180039b93
or eax, 6
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov eax, edi
neg eax
sbb edx, edx
and edx, 0x70000000
add edx, 0x10000000
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
je 0x180039cd9
cmp rax, 0xffffffffffffffff
je 0x180039cee
mov byte [rsp + 0x40], 0
xor eax, eax
mov word [rsp + 0x41], ax
mov byte [rsp + 0x43], al
and dword [rsp + 0x4c], eax
and qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x4c], 4
jne 0x180039c49
mov edi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x78], 0x10
jb 0x180039c42
mov rcx, qword [rsp + 0x60]
call fcn.180043070
mov eax, edi
jmp 0x180039d02
test edi, edi
je 0x180039c70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x78], 0x10
jb 0x180039c69
mov rcx, qword [rsp + 0x60]
call fcn.180043070
xor eax, eax
jmp 0x180039d02
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.18001ff00
mov dword [rsp + 0x48], eax
and dword [rsp + 0x44], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 4
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x44], 4
jne 0x180039cd9
mov edi, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x78], 0x10
jb 0x180039cd5
mov rcx, qword [rsp + 0x60]
call fcn.180043070
mov eax, edi
jmp 0x180039d02
cmp rbx, 0xffffffffffffffff
je 0x180039cee
test rbx, rbx
je 0x180039cee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x78], 0x10
jb 0x180039d00
mov rcx, qword [rsp + 0x60]
call fcn.180043070
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x180039d24
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov bl, cl
xor r8d, r8d
mov dl, cl
lea rcx, [rsp + 0x50]
call fcn.180039aac
nop
mov r8d, 1
mov dl, bl
lea rcx, [rsp + 0x28]
call fcn.180039aac
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
cmp qword [rax + 0x20], 0x10
jb 0x180039d87
mov rcx, qword [rax + 8]
jmp 0x180039d8b
lea rcx, [rax + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
cmp qword [rsp + 0x48], 0x10
jb 0x180039da6
mov rcx, qword [rsp + 0x30]
call fcn.180043070
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180039ddf
or eax, 6
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180039df1
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180042bb0
add rsp, 0x80
pop rbx
ret

Function at 0x18003a110
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rdx
mov bl, cl
xor ebp, ebp
mov byte [rsp + 0x40], bpl
lea rdx, [rsp + 0x40]
call fcn.1800397c0
cmp al, bpl
je 0x18003a265
cmp byte [rsp + 0x40], bpl
je 0x18003a265
movsx eax, bl
movzx r8d, ax
lea rdx, [0x180068160]
lea rcx, [rsp + 0x50]
call fcn.18002132c
nop
mov word [rsp + 0x180], bp
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0x182]
call fcn.180045560
mov word [rsp + 0x80], bp
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0x82]
call fcn.180045560
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov r8d, 0x80
mov dword [rsp + 0x38], r8d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp word [rsp + 0x80], bp
je 0x18003a24f
mov cl, bl
call fcn.180039978
cmp eax, ebp
je 0x18003a22c
mov dword [rdi], eax
cmp qword [rsp + 0x70], 8
jb 0x18003a228
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov al, 1
jmp 0x18003a267
mov cl, bl
call fcn.180039ef0
cmp eax, ebp
je 0x18003a24f
mov dword [rdi], eax
cmp qword [rsp + 0x70], 8
jb 0x18003a24b
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov al, 1
jmp 0x18003a267
cmp qword [rsp + 0x70], 8
jb 0x18003a261
mov rcx, qword [rsp + 0x58]
call fcn.180043070
xor al, al
jmp 0x18003a267
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180042bb0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18003a2ec
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0xaf0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0xae0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], rbp
mov word [rcx + 8], bp
mov dword [rsp + 0x20], 1
movsx eax, dl
movzx r8d, ax
lea r9, str.uvscache
lea rdx, str._c:_s
lea rcx, [rsp + 0x38]
call fcn.18002132c
nop
cmp qword [rax + 0x20], 8
jb 0x18003a36b
mov rbx, qword [rax + 8]
jmp 0x18003a36f
lea rbx, [rax + 8]
cmp rbx, rbp
je 0x18003a4da
lea rax, [fcn.18003a28c]
cmp rax, rbp
je 0x18003a4da
cmp word [rbx + 2], 0x3a
je 0x18003a3df
cmp word [rbx + 2], 0x5c
je 0x18003a3df
mov word [rsp + 0x6d0], bp
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x6d2]
call fcn.180045560
lea rdx, [rsp + 0x6d0]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, rbx
lea rcx, [rsp + 0x6d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rbx, [rsp + 0x6d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18003a4da
test al, 0x10
je 0x18003a4da
mov rdx, rbx
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x180069c44]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003a4da
lea rdx, [0x180069c48]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x18003a4ba
lea rdx, [0x180069c4c]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x18003a4ba
cmp dword [rsp + 0x60], 0xffffffff
je 0x18003a4ba
mov rdx, rbx
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [rsp + 0x60], 0x10
jne 0x18003a4ba
mov rdx, rsi
lea rcx, [rsp + 0x2b0]
call fcn.18003a28c
cmp eax, ebp
je 0x18003a4d0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
jne 0x18003a43f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x58], 8
jb 0x18003a4ec
mov rcx, qword [rsp + 0x40]
call fcn.180043070
mov rax, rsi
mov rcx, qword [rsp + 0xae0]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0xb20]
add rsp, 0xaf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x18003b0cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, r9d
mov rdi, r8
mov bpl, dl
mov sil, cl
mov dl, cl
lea rcx, [r11 - 0x50]
call fcn.18003a2ec
nop
lea rcx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18003b166
mov ecx, 0x1392
mov dword [0x180086788], ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp qword [rsp + 0x98], 8
jb 0x18003b15f
mov rcx, qword [rsp + 0x80]
call fcn.180043070
xor eax, eax
jmp 0x18003b317
mov r8, rdi
mov dl, sil
lea rcx, [rsp + 0x50]
call fcn.18003a5ac
nop
lea rax, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rax, qword [rsp + 0x80]
xor esi, esi
cmp rax, rsi
je 0x18003b2cc
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
cmp rax, rsi
je 0x18003b2cc
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
jne 0x18003b2cc
cmp ebx, esi
je 0x18003b23a
cmp qword [rsp + 0x70], 8
jb 0x18003b205
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
cmp qword [rsp + 0x98], 8
jb 0x18003b230
mov rcx, qword [rsp + 0x80]
call fcn.180043070
mov eax, 1
jmp 0x18003b317
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.180010500
nop
cmp qword [rax + 0x20], 0x10
jb 0x18003b257
mov rcx, qword [rax + 8]
jmp 0x18003b25b
lea rcx, [rax + 8]
mov r8b, bpl
mov rdx, rdi
call fcn.18003ed20
mov dword [0x180086788], eax
cmp qword [rsp + 0x48], 0x10
jb 0x18003b284
mov rcx, qword [rsp + 0x30]
call fcn.180043070
mov eax, dword [0x180086788]
mov ebx, esi
cmp eax, esi
sete bl
cmp qword [rsp + 0x70], 8
jb 0x18003b29d
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
cmp qword [rsp + 0x98], 8
jb 0x18003b2c8
mov rcx, qword [rsp + 0x80]
call fcn.180043070
mov eax, ebx
jmp 0x18003b317
mov ecx, 0x1397
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp qword [rsp + 0x70], 8
jb 0x18003b2ea
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
cmp qword [rsp + 0x98], 8
jb 0x18003b315
mov rcx, qword [rsp + 0x80]
call fcn.180043070
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret