joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401e89c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rsi, rdx
mov r12, rcx
add rcx, 0x40
lea r9, [0x140330de8]
mov r8, rdx
lea rdx, [rbp + 0x30]
call fcn.140224ba8
nop
lea rdx, [r12 + 0xe8]
lea r8, [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.140004278
mov rdi, qword [rax]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
setne dil
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
sete dil
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1401e8a67
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x1401e8b72
mov rdi, qword [rbp + 0x30]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
setne dil
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
jne 0x1401e8b72
mov ecx, 0x88
call fcn.1400be454
mov qword [rbp + 0x48], rax
test rax, rax
je 0x1401e8ac7
mov rdx, qword [r12 + 0xa8]
mov rcx, rax
call fcn.14006de38
nop
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400186f8
nop
mov rcx, qword [rbp - 0x18]
add rcx, 0x58
mov r9, qword [rbp + 0x30]
mov r8, rsi
lea rdx, str._s___s_
call fcn.14000d9c8
mov rcx, qword [rbp - 0x18]
add rcx, 0x20
lea rdx, [rbp + 0x30]
call fcn.14000c244
mov r9, qword [rbp - 0x18]
test rsi, rsi
jne 0x1401e8b0d
xor ecx, ecx
jmp 0x1401e8b1e
xor eax, eax
mov rcx, r13
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rsi
lea rcx, [r9 + 0x48]
call fcn.14000c9f8
lea rcx, [r12 - 0x10]
lea rdx, [rbp - 0x18]
call fcn.1401b5d9c
nop
mov rdi, qword [rbp - 0x10]
test rdi, rdi
je 0x1401e8b72
mov eax, r13d
lock xadd dword [rdi + 8], eax
add eax, r13d
jne 0x1401e8b72
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
lock xadd dword [rdi + 0xc], eax
add eax, r13d
jne 0x1401e8b72
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1401e8b92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401ef2e4
Capabilities:
Open clipboard

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x20]
cmp byte [rax + 1], 0
jne 0x1401ef311
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1401ef311
call qword [sym.imp.USER32.dll_EmptyClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x28
ret

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

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
mov rbx, rcx
test dl, dl
je 0x1401ef776
lea rcx, [rsp + 0x20]
call fcn.14023dd4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp dword [rsp + 0x28], 0
je 0x1401ef796
mov rcx, qword [rsp + 0x20]
call fcn.14023dbec
mov al, bl
add rsp, 0x30
pop rbx
ret

Function at 0x1401f1604
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x48], edi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea r8d, [rdi + 1]
mov dword [rsp + 0x48], r8d
sub r8d, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov edx, 0x106
sub eax, edx
or eax, r8d
jge 0x1401f1661
mov rcx, rbx
call fcn.14000c998
mov edx, 0x104
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1401f167b
mov eax, edi
jmp 0x1401f1688
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x1401f16a2
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1401f16a2
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], di
mov rax, rbx
jmp 0x1401f16ad
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1401f54f4
Capabilities:
Set file attributes

Disassembly:
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov r12, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
jne 0x1401f553a
lea rcx, [rbx - 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x1401f56c9
mov ecx, 0x88
call fcn.1400be454
mov qword [rbp + 0x20], rax
test rax, rax
je 0x1401f555a
mov rdx, qword [rbx + 8]
mov rcx, rax
call fcn.14006de38
nop
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400186f8
nop
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x104
jbe 0x1401f55a8
mov rax, qword [rbx + 0x18]
cmp byte [rax + 1], 0
jne 0x1401f55a8
mov rcx, qword [rbp - 0x18]
add rcx, 0x20
mov r8, rsi
lea rdx, [0x14036a128]
call fcn.14000d9c8
jmp 0x1401f55d5
mov r9, qword [rbp - 0x18]
test rsi, rsi
jne 0x1401f55b5
xor ecx, ecx
jmp 0x1401f55c6
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rsi
lea rcx, [r9 + 0x20]
call fcn.14000c9f8
mov ecx, dword [r12 + 0x1c]
shl rcx, 0x20
mov eax, dword [r12 + 0x20]
or rcx, rax
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x28], rcx
mov rax, qword [rbp - 0x18]
mov dword [rax + 0x30], 1
mov rax, qword [rbx]
lea rdx, [rbp - 0x18]
mov rcx, rbx
call qword [rax + 0x68]
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbp - 0x18]
cmp byte [rdx + 1], 0
jne 0x1401f564b
cmp byte [rax + 0x70], 0
jne 0x1401f564b
lea rcx, [rbx + 0x68]
mov rdx, qword [rax + 0x20]
call fcn.1401109d4
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rdx + 0x20]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rax, qword [rbx]
lea rdx, [rbp - 0x18]
mov rcx, rbx
call qword [rax + 0x68]
mov rax, qword [rbp - 0x18]
lea r9, [rax + 0x20]
test rsi, rsi
jne 0x1401f5658
xor ecx, ecx
jmp 0x1401f5669
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rsi
mov rcx, r9
call fcn.14000c9f8
mov rax, qword [rbx + 0x18]
mov rcx, rbx
lea rdx, [rbp - 0x18]
cmp byte [rax + 1], 0
mov rax, qword [rbx]
je 0x1401f5690
call qword [rax + 0x60]
jmp 0x1401f5694
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
nop
mov rdi, qword [rbp - 0x10]
test rdi, rdi
je 0x1401f56c9
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x1401f56c9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
add eax, r14d
jne 0x1401f56c9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rbp
ret
Function at 0x1401f56f4
Capabilities:
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x3f70]
mov eax, 0x4070
call fcn.1400cbf30
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x3f60], rax
mov rdi, r8
mov r12, rdx
mov rsi, rcx
call fcn.14020ef50
mov bl, al
test al, al
je 0x1401f58d0
mov rax, qword [rsi + 0x18]
cmp byte [rax + 1], 0
jne 0x1401f58c6
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14000cb18
nop
lea rdx, [rdi + 0x2c]
lea rcx, [rsp + 0x40]
call fcn.14000f884
mov r11, qword [rsp + 0x40]
cmp dword [r11 - 0x10], 0x104
jle 0x1401f57db
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x40]
lea rdx, [0x14036a128]
lea rcx, [rsp + 0x48]
call fcn.14000d9c8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401f57db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsi + 0x68]
mov rdx, qword [rsp + 0x40]
call fcn.1401109d4
mov edx, 0x80
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test dword [rdi], 0x400
je 0x1401f58a4
xor bl, bl
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401f58a4
xor edx, edx
mov r8d, 0x4000
lea rcx, [rsp + 0x60]
call fcn.1400c7360
mov r11d, dword [rdi + 0x24]
mov dword [rsp + 0x60], r11d
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, 0x18
lea r8, [rsp + 0x60]
mov edx, 0x900ac
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
setne bl
test bl, bl
jne 0x1401f589a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401f58d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401f58d0
mov ebx, dword [rdi]
shr ebx, 0xa
not bl
and bl, 1
mov al, bl
mov rcx, qword [rbp + 0x3f60]
xor rcx, rsp
call fcn.1400be110
add rsp, 0x4070
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401f5904
Capabilities:
Delete registry value

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x40], 0
je 0x1401f59b4
mov rdx, qword [rcx + 8]
add rdx, 0x60
lea r8, [0x140352420]
lea rcx, [rbp + 0x38]
call fcn.14001c3e0
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14001c3e0
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401f5975
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x40]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
call qword [rax + 0x38]
test al, al
sete dil
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401f59ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x1401f5aa2
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.14000cb18
nop
mov r8d, 9
lea rdx, str.iexplore
lea rcx, [rbp + 0x20]
call fcn.14000c0c4
and qword [rbp - 0x18], 0
and dword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov r9d, VariantTimeToDosDateTime
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbx + 0x70]
lea rcx, [rbp - 0x18]
call fcn.1400114d4
mov rbx, qword [rbp - 0x18]
test eax, eax
jne 0x1401f5a74
lea rdx, [0x140351e90]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, [0x140351d90]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, str.Blocked
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, str.LoadTime
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, str.LoadTimeCount
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, str.LoadTimeArray
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, str.NavTimeArray
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x1401f5a83
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401f5aa2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401fcf94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rdx
mov r12, rcx
and qword [rcx + 0xb0], 0
mov rbx, qword [rcx + 0xb8]
and qword [rcx + 0xb8], 0
or r13d, 0xffffffff
test rbx, rbx
je 0x1401fd001
mov eax, r13d
lock xadd dword [rbx + 8], eax
add eax, r13d
jne 0x1401fd001
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
add eax, r13d
jne 0x1401fd001
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x78]
call fcn.14000cb18
nop
lea rdx, str.pstorage
lea rcx, [rsp + 0x78]
call fcn.14000f884
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.14000c4d8
nop
lea rdx, str.psindex.dat
lea rcx, [rsp + 0x70]
call fcn.14000f884
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x1401fd13c
mov ecx, 0xe0
call fcn.1400be454
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1401fd095
mov rcx, rax
call fcn.1401de190
nop
mov rdx, rax
lea rcx, [r12 + 0xb0]
call fcn.14007a220
mov rdx, rbx
mov rcx, qword [r12 + 0xb0]
call fcn.1401dfc90
mov rcx, qword [r12 + 0xb0]
lea r8, [rcx + 0xb8]
xor edx, edx
call fcn.1401dea00
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [0x1403524a8]
mov rdx, qword [rsp + 0x78]
mov rcx, r12
call fcn.14020f850
and qword [r12 + 0xb0], 0
mov rdi, qword [r12 + 0xb8]
and qword [r12 + 0xb8], 0
test rdi, rdi
je 0x1401fd13c
mov eax, r13d
lock xadd dword [rdi + 8], eax
add eax, r13d
jne 0x1401fd137
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
lock xadd dword [rdi + 0xc], eax
add eax, r13d
jne 0x1401fd137
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x70]
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1401fd159
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1401fd17a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140200c94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rsi, rcx
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x140200d6c
cmp byte [rax + 0x78], 0
je 0x140200d6c
lea rcx, [rsp + 0x50]
call fcn.1402000f4
nop
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0x10], 0
je 0x140200d44
mov r8d, 9
lea rdx, str.Prefetch
lea rcx, [rsp + 0x50]
call fcn.14000c0c4
mov rbx, qword [rsp + 0x50]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x140200d44
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, str..pf
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call fcn.14020f850
mov rax, qword [rsi + 0x20]
mov byte [rax + 0x78], 0
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140200d6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140200d84
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, r8
and dword [rbp + 0x38], 0
lea rcx, [rbp - 0x30]
call fcn.1402000f4
nop
mov rax, qword [rbp - 0x30]
or r12d, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x140200ed7
lea r8d, [r12 + 0xa]
lea rdx, str.Prefetch
lea rcx, [rbp - 0x30]
call fcn.14000c0c4
mov rbx, qword [rbp - 0x30]
lea ecx, [r12 + 2]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x140200ed7
lea ecx, [r12 + 0x51]
call fcn.1400be454
mov rbx, rax
mov qword [rbp - 0x18], rax
test rax, rax
je 0x140200e61
lea rdx, str..pf
lea rcx, [rbp - 0x28]
call fcn.14000cb18
nop
mov dword [rbp + 0x38], 1
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
lea r9, [rbp - 0x28]
mov r8, qword [rbp - 0x30]
lea rdx, [0x140330de8]
mov rcx, rbx
call fcn.14007aff4
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14006f0a0
nop
mov rdx, rax
mov rcx, rsi
call fcn.14006ee60
nop
mov rbx, qword [rbp - 8]
test rbx, rbx
je 0x140200eb0
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x140200eb0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140200eb0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
test byte [rbp + 0x38], 1
je 0x140200ed7
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140200ed7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140200ef7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1402017d4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rcx
and qword [rbp - 0x30], 0
and dword [rbp - 0x28], 0
and qword [rbp - 0x20], 0
lea rax, vtable.Piriform::Registry::CRegKeyEx.0
mov qword [rbp - 0x38], rax
or eax, 0xffffffff
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x14], eax
and dword [rbp - 0x10], 0
mov r9d, VariantTimeToDosDateTime
lea r8, str.SystemCurrentControlSetControlSession_ManagerEnvironment
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x30]
call fcn.1400114d4
test eax, eax
jne 0x14020195b
lea r9, [0x140330de8]
lea r8, [0x140361108]
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x38]
call fcn.140224ba8
nop
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x20]
mov rcx, rbx
call fcn.140201494
nop
xor eax, eax
mov rdx, qword [rbp + 0x20]
test rdx, rdx
setne al
test eax, eax
jne 0x140201884
mov ecx, 0x80004005
call fcn.14000cbb8
int3
mov rcx, qword [rbp + 0x28]
call fcn.1400bedf4
test eax, eax
je 0x14020191a
lea rcx, [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
je 0x14020191a
mov rbx, qword [rbp + 0x20]
xor eax, eax
test rbx, rbx
setne al
test eax, eax
je 0x1402018e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 2
xor r8d, r8d
lea rdx, [0x140361108]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
and dword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x3e8
mov dword [rsp + 0x20], 2
lea r9, str.Environment
xor r8d, r8d
lea edx, [r8 + 0x1a]
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
nop
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14020193c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14020195b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x38]
call fcn.140224148
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x140204224
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov bpl, r8b
mov rbx, rdx
mov rsi, rcx
lea rcx, [rax + 8]
call fcn.14000cb18
nop
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x104
jbe 0x140204285
mov r8, rbx
lea rdx, [0x14036a128]
lea rcx, [rsp + 0x40]
call fcn.14000d9c8
jmp 0x1402042ae
test rbx, rbx
jne 0x14020428e
xor ecx, ecx
jmp 0x14020429e
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000c9f8
mov r8b, bpl
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140210000
mov rdx, qword [rsi + 0x18]
cmp byte [rdx + 1], 0
jne 0x140204307
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140204307
lea rcx, [rsi + 0x68]
mov rdx, qword [rsp + 0x40]
call fcn.1401109d4
mov edx, 0x80
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8b, bpl
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140210000
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140204327
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14020ed90
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, rdx
mov rbp, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
test al, 0x10
jne 0x14020edcd
mov edx, 0x80
test dl, al
jne 0x14020edcd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x14020ee06
cmp qword [rax + 0x80], rbx
je 0x14020ee06
mov rax, qword [rax + 0x80]
cmp byte [rax + 0x25], bl
je 0x14020ee06
bt edi, 0xb
jb 0x14020ee06
bt edi, 0xe
jb 0x14020ee06
bt edi, 9
movzx ebx, bl
mov ecx, 1
cmovae ebx, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret