joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067420
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [r11 - 0x58], rcx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov rcx, rdx
call fcn.140002690
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14006746f
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140067490
mov rax, rdx
nop dword [rax + rax]
cmp word [rax], 0x25
je 0x1400674c8
add rax, 2
sub rcx, 1
jne 0x140067480
mov rdx, rsi
mov rcx, rdi
call fcn.1400030f0
nop
mov dword [rsp + 0x20], 1
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140158860
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rax, rax
je 0x140067490
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140067490
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1400030f0
nop
mov rcx, rsi
call fcn.1400030b0
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
jne 0x140067522
mov rdx, rsi
mov rcx, rdi
call fcn.1400030f0
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.140002550
jmp 0x1400674a4
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140158e14
mov r14, rax
mov rcx, rsi
call fcn.1400030b0
mov rcx, rax
lea r8d, [rbp + 1]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140067582
cmp eax, ebp
ja 0x140067582
mov eax, eax
mov word [r14 + rax*2], r15w
mov rcx, r14
call fcn.140002910
mov r8, rax
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.140002710
mov rcx, r14
call fcn.1401588c0
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140004af0
jmp 0x14006750e

Function at 0x140069430
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
call fcn.140002690
xor edi, edi
mov word [rsp + 0x20], di
cmp qword [rax + 0x18], 8
mov qword [rax + 0x10], rdi
jb 0x14006946c
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400028d0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x412
call fcn.140177d50
lea rdx, [rsp + 0x30]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400694a3
xor al, al
jmp 0x1400694ce
cmp eax, 0x208
jae 0x14006949f
lea rcx, [rsp + 0x30]
mov word [rsp + 0x440], di
call fcn.140002910
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140002710
mov al, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140158860
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rdi
ret
Function at 0x140069a20
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [rcx]
xor r14d, r14d
test rcx, rcx
je 0x140069a64
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r14
mov word [rsi + 8], r14w
mov qword [rsp + 0x48], r14
mov ecx, 0x58
call fcn.140158884
mov rdi, rax
mov qword [rsp + 0x48], rax
mov qword [rax], r14
mov qword [rax + 8], r14
mov dword [rax + 0x10], 0x18
lea rbx, [rax + 0x28]
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], r14d
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x28]
call fcn.140002630
nop
call fcn.140070510
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1400705b0
mov qword [rdi + 0x50], rax
lea rcx, [rsp + 0x28]
call fcn.140002550
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14007cd90
mov rbx, qword [rsp + 0x48]
mov qword [rbx], rax
cmp qword [rbx], 0
lea rdi, [rbx + 0x10]
jne 0x140069aee
mov rdi, r14
mov rcx, rbp
call fcn.1400030a0
test al, al
jne 0x140069b04
mov rcx, rbp
call fcn.1400030b0
jmp 0x140069b07
mov rax, r14
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi], rax
test rax, rax
je 0x140069b2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140069b2e
mov byte [rsi + 9], 1
cmp qword [rsi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x140069b55
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140069b68
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.1401588c0
mov qword [rsp + 0x48], r14
movzx eax, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140158860
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14006f2b0
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
jne 0x14006f2e6
xor al, al
jmp 0x14006f39b
mov qword [rsp + 0x38], 0
add rdi, 0x38
mov qword [rsp + 0x38], rdi
je 0x14006f309
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006f309
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x10]
cmp qword [rax + 8], 0
je 0x14006f37a
mov eax, 1
lock xadd dword [rbx + 8], eax
mov rcx, qword [rbx + 0x10]
add rcx, 0x14
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x14006eea0]
xor edx, edx
xor ecx, ecx
call fcn.14017fdfc
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x10]
cmp qword [rax + 0x18], 0
jne 0x14006f3b3
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x14006f371
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbx + 0x10]
call fcn.14006f050
xor bl, bl
test rdi, rdi
je 0x14006f398
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006f38f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], 0
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140158860
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rax + 0x10], 1
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x14006f3d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x14006f359
mov bl, 1
jmp 0x14006f37c
Function at 0x14006f860
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x2b8], rbx
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, r8
mov r15, rdx
mov rdi, rcx
lea rcx, [rsp + 0x28]
call fcn.140002670
nop
lea rcx, [rsp + 0x28]
call fcn.14007c890
test al, al
je 0x14006fa64
lea rsi, [rdi + 8]
cmp byte [rdi], 0
je 0x14006f8d0
mov rcx, rsi
call fcn.14007c6e0
test al, al
sete al
mov byte [rdi], al
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call fcn.140177d50
mov rcx, r15
call fcn.1400030b0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.1400030b0
mov rcx, rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x50]
test eax, eax
je 0x14006f96a
xor r14d, r14d
mov word [rsp + 0x25a], r14w
call fcn.140002910
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140002710
mov rcx, rbp
call fcn.140002690
cmp rsi, rax
je 0x14006f960
call fcn.140002690
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14006f954
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rsi
call fcn.140002710
mov byte [rdi], 1
mov bl, 1
jmp 0x14006fa66
xor edx, edx
mov r8d, 0x20c
call fcn.140177d50
mov edx, 0x105
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14006fa64
xor r14d, r14d
mov word [rsp + 0x25a], r14w
lea rcx, [rsp + 0x50]
call fcn.140002910
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140002710
cmp byte [rdi], r14b
je 0x14006f9d0
mov rcx, rsi
call fcn.14007c6e0
test al, al
sete al
mov byte [rdi], al
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call fcn.140177d50
mov rcx, r15
call fcn.1400030b0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.1400030b0
mov rcx, rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14006fa64
mov word [rsp + 0x25a], r14w
lea rcx, [rsp + 0x50]
call fcn.140002910
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140002710
mov bl, 1
mov rcx, rbp
call fcn.140002690
cmp rsi, rax
je 0x14006fa5f
call fcn.140002690
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14006fa53
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rsi
call fcn.140002710
mov byte [rdi], 1
jmp 0x14006fa66
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.140002550
movzx eax, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140158860
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140076910
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x140076955
mov ebx, 1
jmp 0x1400769a6
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x14007699c
test ecx, ecx
je 0x1400769a1
add rsi, rcx
sub edi, ecx
jne 0x140076960
jmp 0x1400769a1
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x1400769bf
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140158860
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x140077580
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1400775bb
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400775bb
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.140082fa0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x140079800
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r9
mov r13, r8
mov r12, rdx
mov r14, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.140002630
nop
call fcn.140070510
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1400705b0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140002550
test rbx, rbx
je 0x140079a69
lea rdx, str.VerQueryValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x140079a69
xor sil, sil
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.140002630
nop
call fcn.140070510
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1400705b0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140002550
test rbx, rbx
je 0x140079a63
lea rdx, str.GetFileVersionInfoExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test r15, r15
je 0x140079975
test rax, rax
je 0x140079975
mov dword [rsp + 0x70], 0
mov rcx, r14
call fcn.1400030b0
mov rdx, rax
lea r8, [rsp + 0x70]
xor ecx, ecx
call rdi
mov edi, eax
test eax, eax
je 0x140079a63
mov edx, edi
mov ecx, 1
call fcn.14017edd0
mov rbx, rax
mov rcx, r14
call fcn.1400030b0
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8d, dword [rsp + 0x70]
xor ecx, ecx
call r15
test eax, eax
jne 0x1400799ef
mov rcx, rbx
call fcn.14017edd8
movzx eax, sil
jmp 0x140079a6b
lea rdx, str.GetFileVersionInfoW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r15, r15
je 0x140079a63
test rax, rax
je 0x140079a63
mov rcx, r14
call fcn.1400030b0
mov rcx, rax
xor edx, edx
call rbx
mov edi, eax
test eax, eax
je 0x140079a63
mov edx, edi
mov ecx, 1
call fcn.14017edd0
mov rbx, rax
mov rcx, r14
call fcn.1400030b0
mov rcx, rax
mov r9, rbx
mov r8d, edi
xor edx, edx
call r15
test eax, eax
je 0x140079a5b
test rbx, rbx
je 0x140079a63
xor eax, eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x68]
lea rdx, [0x1401c7c80]
mov rcx, rbx
call rbp
test eax, eax
je 0x140079a5b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140079a5b
cmp dword [rsp + 0x74], 0
jbe 0x140079a5b
cmp dword [rcx], 0xfeef04bd
jne 0x140079a5b
movzx eax, word [rcx + 0xa]
mov dword [r12], eax
movzx eax, word [rcx + 8]
mov dword [r13], eax
movzx eax, word [rcx + 0xe]
mov rdx, qword [rsp + 0x30]
mov dword [rdx], eax
movzx eax, word [rcx + 0xc]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov sil, 1
mov rcx, rbx
call fcn.14017edd8
movzx eax, sil
jmp 0x140079a6b
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140158860
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140079a90
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.140158884
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.140177d50
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x140079af7
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140158860
add rsp, 0x150
pop rbx
ret
Function at 0x14007c5a0
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14007c5d1
xor al, al
jmp 0x14007c637
and ebx, 0xffffb1af
call fcn.1400030b0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14007c5ef
mov al, 1
jmp 0x14007c637
lea rcx, [rsp + 0x28]
call fcn.140002670
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14007cbe0
test al, al
je 0x14007c628
lea rcx, [rsp + 0x28]
call fcn.1400030b0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14007c628
mov bl, 1
jmp 0x14007c62a
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.140002550
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140158860
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call fcn.1400030b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14007c6c8
lea rcx, [rsp + 0x28]
call fcn.140002670
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14007cbe0
test al, al
je 0x14007c6bc
lea rcx, [rsp + 0x28]
call fcn.1400030b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.140002550
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140158860
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14007c6e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
call fcn.1400030b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14007c723
mov al, 1
jmp 0x14007c866
mov rcx, rdi
call fcn.1400030b0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002630
nop
lea rcx, [rsp + 0x28]
call fcn.1400030b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14007c791
lea rcx, [rsp + 0x48]
call fcn.140002670
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14007cbe0
test al, al
je 0x14007c786
lea rcx, [rsp + 0x48]
call fcn.1400030b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea rcx, [rsp + 0x48]
call fcn.140002550
nop
lea rcx, [rsp + 0x28]
call fcn.140002550
cmp esi, 0xffffffff
jne 0x14007c7a7
xor al, al
jmp 0x14007c866
mov rcx, rdi
call fcn.1400030b0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002630
nop
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14007c5a0
movzx ebx, al
lea rcx, [rsp + 0x28]
call fcn.140002550
test bl, bl
je 0x14007c7a0
mov rcx, rdi
call fcn.1400030b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14007c71c
lea rcx, [rsp + 0x28]
call fcn.140002670
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14007cbe0
test al, al
je 0x14007c82a
lea rcx, [rsp + 0x28]
call fcn.1400030b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14007c82a
mov bl, 1
jmp 0x14007c859
mov rcx, rdi
call fcn.1400030b0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002630
nop
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.14007c5a0
nop
lea rcx, [rsp + 0x48]
call fcn.140002550
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.140002550
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140158860
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14007c890
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x670
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x688], rbx
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x28], rdi
lea rax, [0x140229908]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x140229908]
test rcx, rcx
je 0x14007c8e5
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [0x140229978]
call fcn.1400030a0
test al, al
jne 0x14007c945
lea rcx, [0x140229978]
call fcn.140002690
cmp rbx, rax
je 0x14007c92c
lea rcx, [0x140229978]
call fcn.140002690
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14007c91f
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rbx
call fcn.140002710
nop
mov rcx, qword [0x140229908]
test rcx, rcx
je 0x14007c93e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x14007ca12
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x30]
call fcn.140177d50
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x14007c9fe
mov word [rsp + 0x23a], di
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x240]
call fcn.140177d50
mov r8d, 0x208
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x14007c9e7
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x14007ca38
mov word [rsp + rax + 0x240], di
lea rcx, [rsp + 0x240]
call fcn.140002910
lea rdx, [rsp + 0x240]
mov r8, rax
jmp 0x14007c923
lea rcx, [rsp + 0x30]
call fcn.140002910
lea rdx, [rsp + 0x30]
mov r8, rax
jmp 0x14007c923
mov rcx, qword [0x140229908]
test rcx, rcx
je 0x14007ca10
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.140158860
mov rbx, qword [rsp + 0x688]
add rsp, 0x670
pop rdi
ret
call fcn.140158f24
nop
int3
Function at 0x14007d030
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x860
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r13, rcx
lea rdx, [rsp + 0x50]
mov ecx, 0x3fe
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov r15d, eax
test eax, eax
je 0x14007d102
lea r12, [rsp + 0x50]
xor esi, esi
mov qword [rsp + 0x48], rsi
mov ebx, esi
mov qword [rsp + 0x48], rbx
cmp r15d, 0x3fe
jbe 0x14007d135
lea ecx, [r15 + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140158e14
mov r12, rax
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x14007d0f5
cmp eax, r15d
ja 0x14007d0f5
mov ecx, eax
mov word [rbx + rcx*2], si
lea ecx, [rax + 1]
mov word [rbx + rcx*2], si
mov r15d, eax
jmp 0x14007d167
test r12, r12
je 0x14007d102
mov rcx, r12
call fcn.1401588c0
xor al, al
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140158860
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, r15
add rax, rax
cmp rax, 0x800
jae 0x14007d24b
mov word [rsp + rax + 0x50], si
lea eax, [r15 + 1]
mov ecx, eax
add rcx, rcx
cmp rcx, 0x800
jae 0x14007d245
mov word [rsp + rcx + 0x50], si
mov edi, esi
test r15d, r15d
je 0x14007d231
mov rbp, r12
cmp word [rbp], 0
jne 0x14007d222
cmp esi, edi
je 0x14007d222
mov eax, esi
lea rdx, [r12 + rax*2]
lea rcx, [rsp + 0x28]
call fcn.140002630
nop
lea rcx, [rsp + 0x28]
call fcn.140002690
mov rdx, rax
mov rcx, r13
call fcn.1400046c0
mov rcx, rdx
test al, al
je 0x14007d1fc
call fcn.140002690
mov rdx, rax
mov rcx, r13
call fcn.1400031e0
mov r14, rax
mov rcx, rdx
call fcn.140002690
mov rsi, rax
mov rdx, qword [r14]
mov ecx, 0x20
call fcn.1400023e0
mov r8, rax
mov rcx, rsi
call fcn.140002690
mov rdx, rax
mov rcx, r8
call fcn.140004af0
add qword [r14], 0x20
jmp 0x14007d215
call fcn.140002690
mov r8, rax
mov rcx, r13
call fcn.1400031e0
mov rdx, qword [rax]
call fcn.1400046d0
nop
lea rcx, [rsp + 0x28]
call fcn.140002550
lea esi, [rdi + 1]
inc edi
add rbp, 2
cmp edi, r15d
jb 0x14007d175
test rbx, rbx
je 0x14007d23e
mov rcx, rbx
call fcn.1401588c0
mov al, 1
jmp 0x14007d104
call fcn.140158f24
int3
call fcn.140158f24
int3
Function at 0x140082fa0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140222080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x140082ffe
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140082fe9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140082ffe
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x140083000
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140158860
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret