joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d9b8
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14000da1b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x14007ba30]
mov rdx, rdi
mov rcx, rbx
call qword [0x14006c9d0]
jmp 0x14000da2d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000db70
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp dword [0x14007ba38], ebx
je 0x14000dbc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], ebx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14000dbc6
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14000dbd7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop dword [rax + rax]
mov ebx, eax
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140013d94
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
movzx eax, word [0x14007b170]
mov rdi, rcx
mov ecx, 0xffff
mov rsi, rdx
cmp ax, cx
jne 0x140013ded
xorps xmm0, xmm0
lea rcx, [r11 - 0x38]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
movzx eax, word [rsp + 0x20]
mov word [0x14007b170], ax
xor ebp, ebp
cmp ax, 9
je 0x140013dfa
test ax, ax
jne 0x140013e5c
mov rdx, qword [rsi]
mov rcx, qword [rdi + 0x28]
call fcn.140013c90
test eax, eax
jne 0x140013e5c
mov rbx, qword [rdi + 0x50]
test rbx, rbx
je 0x140013e58
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x140013e58
cmp qword [rdi + 0x58], rbp
jne 0x140013e27
cmp rdi, rbx
je 0x140013e58
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rbx + 0x18]
mov eax, dword [rdx + 0x78]
cmp dword [rcx + 0x78], eax
jne 0x140013e4f
mov eax, dword [rdx + 0x7c]
cmp dword [rcx + 0x7c], eax
jne 0x140013e4f
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x28]
call fcn.140013c90
test eax, eax
jne 0x140013e5c
mov rbx, qword [rbx + 0x58]
test rbx, rbx
jne 0x140013e27
xor eax, eax
jmp 0x140013e61
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140019d50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, rdx
mov rdi, rcx
xor esi, esi
lea rdx, [rbp - 0x41]
and qword [rbp - 0x41], rsi
xor ebx, ebx
and qword [rbp - 0x29], rsi
mov rcx, rax
mov r12, r8
mov qword [rbp - 0x21], rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x140019f84
lea rdx, [rbp - 0x29]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x140019f84
mov rax, qword [rbp - 0x29]
cmp qword [rbp - 0x41], rax
jne 0x140019f84
and dword [rbp - 0x49], ebx
xorps xmm0, xmm0
and qword [rbp - 0x31], rbx
and qword [rbp - 0x39], rbx
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
test rdi, rdi
je 0x140019f84
mov rax, qword [rdi + 0x180]
mov r13, qword [rdi + 0x188]
mov qword [rbp + 7], rax
test rax, rax
je 0x140019f84
test r13, r13
je 0x140019f84
lea rax, [rbp + 0x7f]
mov rcx, rdi
lea r9, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x31]
lea esi, [rbx + 1]
call fcn.140007b84
test eax, eax
je 0x140019f84
cmp qword [rbp - 0x31], rbx
je 0x140019f84
cmp qword [rbp - 0x39], rbx
je 0x140019f84
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x140019f84
mov ecx, dword [rbp - 0x49]
lea r9, [rbp + 0x7f]
mov edi, dword [rbp - 0x49]
cmp rcx, rax
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp + 0x6f]
cmovg edi, eax
and dword [rbp + 0x7f], 0
xor esi, esi
and qword [rbp + 0xf], rsi
mov rax, rbx
and qword [rbp + 0x17], rsi
mov r8d, edi
shr rax, 0x20
mov dword [rbp + 0x23], eax
mov rax, qword [rbp + 7]
mov qword [rbp + 0x27], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x1f], ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140019ec4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x140019f68
mov eax, dword [rbp - 0x1d]
lea r9, [rbp + 0x7f]
mov rdx, qword [rbp - 0x39]
mov r8d, edi
and qword [rbp - 0x19], rsi
mov rcx, r12
and qword [rbp - 0x11], rsi
mov dword [rbp - 5], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov dword [rbp - 9], ebx
mov qword [rbp - 1], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140019f13
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x140019f68
mov rcx, qword [rbp + 0x6f]
lea r8, [rbp + 0x7f]
mov r9d, 1
lea rdx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop dword [rax + rax]
mov r9d, 1
lea r8, [rbp + 0x7f]
lea rdx, [rbp - 0x19]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov r8d, edi
call sub.msvcrt.dll_memcmp
test eax, eax
mov eax, 1
cmove esi, eax
mov rax, qword [rbp - 0x41]
mov ecx, edi
add rbx, rcx
sub rax, rcx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x41], rax
test esi, esi
jne 0x140019e4d
mov rbx, qword [rsp + 0xe0]
mov eax, esi
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a730
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rdi, rcx
mov ebx, esi
test rcx, rcx
je 0x14001a7d2
cmp word [rcx], si
je 0x14001a7d2
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 7]
mov dword [rsp + 0x28], 0x6200000
xor r9d, r9d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x14001a7b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14001a7ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14001a7ce
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14001a7e5
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14001bd88
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x680
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov esi, 1
call fcn.14001bc84
mov rdx, rax
test rax, rax
je 0x14001bec6
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
mov rcx, rdi
test rbx, rbx
je 0x14001bdf5
mov rax, qword [rbx + 0x40]
jmp 0x14001bde7
mov rbx, rax
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x14001bde0
cmp qword [rbx + 0x58], rax
cmovne rcx, qword [rbx + 0x58]
lea rax, [rsp + 0x40]
mov r9d, 0x204021
mov qword [rsp + 0x30], rax
mov r8d, 3
mov qword [rsp + 0x28], rdx
mov edx, 0xc11d0131
mov dword [rsp + 0x20], FDICopy
call fcn.140003f04
mov ebx, eax
test r14, r14
je 0x14001be36
mov rax, qword [rsp + 0x40]
mov rcx, rdi
mov qword [r14], rax
jmp 0x14001be3b
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x14001be4c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
jns 0x14001be9f
mov ecx, ebx
bt ebx, 0x1c
jae 0x14001be7d
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
je 0x14001be8f
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14001be8f
and ecx, 0x1fff0000
movzx eax, bx
cmp ecx, 0x70000
cmove ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor esi, esi
mov eax, esi
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140068870
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x680
pop r14
pop rdi
pop rsi
ret
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x618
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.14001988c
test eax, eax
lea rbx, [rsp + 0x50]
cmove rbx, rdi
mov rcx, rbx
call fcn.140046da0
test eax, eax
jne 0x14001bf16
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x14001be9f
test r14, r14
je 0x14001be9f
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
mov edx, 0xc11d0131
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
cmp rax, rdi
je 0x14001be9d
mov qword [r14], rax
jmp 0x14001be9f
Function at 0x14001c12c
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov r10d, r9d
mov r11, r8
mov rdi, rdx
mov eax, ebx
test rcx, rcx
je 0x14001c156
mov rax, qword [rcx + 0x40]
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x24]
mov rcx, rdi
bt eax, 0x1c
jae 0x14001c173
mov r9d, dword [rsp + 0x70]
mov r8d, r10d
mov rdx, r11
call fcn.1400040e4
mov ebx, eax
jmp 0x14001c1b6
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
xorps xmm0, xmm0
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x14001c1b6
or eax, 0x10000000
mov ebx, eax
jge 0x14001c1b6
mov r9d, eax
lea rcx, str.WimImageSetInformationFile
mov r8d, 0x8e4
call fcn.1400064e0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 0x1c], 0x10
mov rsi, rcx
jne 0x14001c1eb
mov rdx, qword [rdx + 0xb0]
mov rbx, qword [rdx + 0xb0]
test rbx, rbx
jne 0x14001c1fb
xor eax, eax
jmp 0x14001c25e
call fcn.140024eb4
mov rdi, rax
test rax, rax
jne 0x14001c20f
mov eax, 0x80070002
jmp 0x14001c25e
mov rdx, rbx
mov rcx, rsi
call fcn.14001c1cc
test eax, eax
js 0x14001c25e
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14001c250
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14001c25e
and eax, 0x400
neg eax
sbb eax, eax
and eax, 0x800702e5
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001cce8
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x80
call sub.msvcrt.dll_memset
cmp dword [0x14007ba0c], 0
jne 0x14001cd6e
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str.WIMCAPTURE_SPARSE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov ebx, 1
cmp eax, 0x40
jae 0x14001cd68
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll__wtoi]
nop dword [rax + rax]
mov ecx, dword [0x14007ba08]
test eax, eax
cmovne ecx, ebx
mov dword [0x14007ba08], ecx
mov dword [0x14007ba0c], ebx
mov eax, dword [0x14007ba08]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140068870
add rsp, 0xb0
pop rbx
ret
Function at 0x14001d69c
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rsp + 0x250], rax
xorps xmm0, xmm0
mov r12, r9
movups xmmword [rsp + 0x30], xmm0
mov r13d, r8d
mov r15, rdx
mov ebp, 2
xor r14d, r14d
mov esi, ebp
shl esi, 5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14001d764
mov r9d, esi
mov dword [rsp + 0x20], reloc.Cabinet.dll_FDICopy
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001d769
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor edi, edi
inc ebp
jmp 0x14001d769
mov ebx, 0xc0000017
cmp ebx, 0x80000005
je 0x14001d6e6
cmp ebx, 0xc0000023
je 0x14001d6e6
xor ebp, ebp
test ebx, ebx
js 0x14001d8a1
test rdi, rdi
je 0x14001d8c6
mov rbx, rdi
or r15d, 0xffffffff
cmp dword [rbx + 4], 2
jbe 0x14001d88a
cmp word [rbx + 0x18], bp
je 0x14001d88a
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r9d, dword [rbx + 4]
lea r8, [rbx + 0x18]
shr r9, 1
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140003678
lea rax, str.::_DATA
mov dword [rsp + 0x28], r15d
mov r9d, r15d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov edx, 1
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
je 0x14001d86d
test r12, r12
jne 0x14001d848
lea rax, str.:_WIMMOUNTDATA:_DATA
mov dword [rsp + 0x28], r15d
mov r9d, r15d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov ecx, 0x409
lea edx, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
je 0x14001d88a
mov r9d, dword [rbx + 4]
lea r8, [rbx + 0x1a]
shr r9, 1
lea rcx, [rsp + 0x40]
sub r9, 7
mov edx, 0x104
call fcn.140003678
lea r8, [rsp + 0x40]
jmp 0x14001d87b
bt r13d, 0xa
jae 0x14001d88a
lea r8, [0x14006d5e0]
mov r9, qword [rbx + 8]
mov rdx, r14
call fcn.14001d904
mov r14, rax
cmp dword [rbx], ebp
jbe 0x14001d895
mov eax, dword [rbx]
add rbx, rax
jmp 0x14001d898
mov rbx, rbp
test rbx, rbx
jne 0x14001d79b
test rdi, rdi
je 0x14001d8c6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rax, r14
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140068870
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001dde0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x38]
xor eax, eax
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
mov r10, rcx
mov rcx, qword [rbp + 0x30]
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
test r8d, r8d
je 0x14001de2c
and r8d, 0x3127
bts r8d, 7
mov dword [rbp - 0x10], r8d
test r9, r9
je 0x14001de3e
mov eax, dword [r9]
mov dword [rbp - 0x30], eax
mov eax, dword [r9 + 4]
mov dword [rbp - 0x2c], eax
test rcx, rcx
je 0x14001de4e
mov eax, dword [rcx]
mov dword [rbp - 0x28], eax
mov eax, dword [rcx + 4]
mov dword [rbp - 0x24], eax
test rdx, rdx
je 0x14001de5e
mov eax, dword [rdx]
mov dword [rbp - 0x20], eax
mov eax, dword [rdx + 4]
mov dword [rbp - 0x1c], eax
mov r9d, 0x28
mov dword [rsp + 0x20], 4
lea r8, [rbp - 0x30]
mov rcx, r10
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x14001de94
mov ebx, eax
bts ebx, 0x1c
cmp eax, 0xc000000d
jne 0x14001de96
xor ebx, ebx
test ebx, ebx
jns 0x14001deaf
mov r9d, ebx
lea rcx, str.RestoreFileInfo
mov r8d, 0x690
call fcn.1400064e0
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140068870
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x14001e100
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor esi, esi
xor eax, eax
mov rbp, rdx
test rcx, rcx
je 0x14001e12c
mov rax, qword [rcx + 0x40]
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x24]
bt eax, 0xf
jae 0x14001e250
mov r9d, 4
mov dword [rsp + 0x20], 7
lea r8, [rsp + 0x80]
mov rcx, rbp
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x14001e250
mov eax, dword [rsp + 0x80]
cmp eax, 1
jbe 0x14001e250
lea r14d, [rax*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, r14d
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14001e250
mov byte [rsp + 0x40], 1
lea rdx, [rsp + 0x50]
and qword [rsp + 0x38], rsi
mov r9d, r14d
and dword [rsp + 0x30], esi
mov r8, rax
and qword [rsp + 0x28], rsi
mov rcx, rbp
mov byte [rsp + 0x20], sil
call qword [sym.imp.ntdll.dll_NtQueryEaFile]
nop dword [rax + rax]
test eax, eax
js 0x14001e230
mov rbx, rdi
cmp byte [rbx + 5], 8
jb 0x14001e21d
lea rcx, [rbx + 8]
mov r8d, 8
lea rdx, str._Kernel.
call qword [sym.imp.msvcrt.dll__strnicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001e21d
mov rdx, rbx
mov rcx, rsi
call fcn.14001dfc0
mov rsi, rax
cmp dword [rbx], 0
je 0x14001e229
mov eax, dword [rbx]
add rbx, rax
jmp 0x14001e22b
xor ebx, ebx
test rbx, rbx
jne 0x14001e1e8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
lea r11, [rsp + 0x60]
mov rax, rsi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001e31c
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov rdi, r8
and qword [rbp - 0x10], 0
mov r14d, edx
and dword [rbp + 0x30], 0
mov r15, rcx
test rcx, rcx
je 0x14001e4c0
test edx, edx
je 0x14001e4c0
test r8, r8
je 0x14001e4c0
xorps xmm0, xmm0
lea rdx, str.SHA1
movups xmmword [r8], xmm0
xor eax, eax
lea rcx, [rbp - 8]
mov dword [r8 + 0x10], eax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001e4c5
and dword [rsp + 0x28], 0
lea rax, [rbp + 0x48]
mov rcx, qword [rbp - 8]
lea r8, [rbp + 0x30]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001e4a8
mov ebx, dword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
neg rax
sbb ebx, ebx
not ebx
and ebx, 0xc0000017
test rsi, rsi
je 0x14001e4a8
and dword [rsp + 0x30], 0
lea rdx, [rbp - 0x10]
and dword [rsp + 0x28], 0
mov r8, rsi
mov r9d, dword [rbp + 0x30]
mov rcx, qword [rbp - 8]
and qword [rsp + 0x20], 0
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001e488
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001e478
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 0x14]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
test ebx, ebx
jns 0x14001e4e1
jmp 0x14001e4c5
mov ebx, 0xc000000d
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
not ebx
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ed14
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r15, qword [rsp + 0xf0]
mov rbp, rdx
lea rdx, [rsp + 0x48]
mov r14, r9
mov edi, r8d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14001ee2a
mov ecx, dword [rsp + 0x48]
shr ecx, 9
and ecx, 1
je 0x14001edf7
xor edx, edx
mov ecx, 1
test edi, edi
je 0x14001ed95
mov rax, rbp
cmp byte [rax], 0
jne 0x14001ed93
inc edx
inc rax
cmp edx, edi
jb 0x14001ed83
jmp 0x14001ed95
xor ecx, ecx
test ecx, ecx
je 0x14001edf7
mov ebx, 1
mov dword [rsp + 0x20], 0x23
lea r8, [rsp + 0x30]
mov rcx, rsi
lea rdx, [rsp + 0x38]
lea r9d, [rbx + 7]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x14001edd6
xor ecx, ecx
cmp dword [rsp + 0x34], 0x80000008
setne cl
jmp 0x14001edf7
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor ebx, ebx
lea ecx, [rbx + 1]
test ebx, ebx
je 0x14001ee2a
test ecx, ecx
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r9, r14
mov r8d, edi
je 0x14001ee19
lea rdx, [rsp + 0x48]
call fcn.14001eb3c
jmp 0x14001ee28
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140068870
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret