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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x14000c1dd
cmp bx, word [rcx]
je 0x14000c1dd
xor edx, edx
call fcn.14000d0a0
mov rsi, rax
test rax, rax
je 0x14000c1bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000c18d
and eax, 0x10
sete bl
neg eax
sbb edi, edi
and edi, 2
jmp 0x14000c19b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
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]
jmp 0x14000c1cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000c1f0
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000cb7c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov r10, r8
test rcx, rcx
je 0x14000cbd3
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14000cbd3
mov edx, dword [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x28], edx
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
sete dil
mov eax, edi
jmp 0x14000cbe6
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000cbf8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
test rcx, rcx
jne 0x14000cc1c
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000cc55
test rdx, rdx
je 0x14000cc3a
xor r9d, r9d
mov r8d, 0x20006
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000cc3f
mov ebx, 0x57
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000cc68
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor edi, edi
mov r14, r8
mov dword [rsp + 0x68], edi
mov rbp, rcx
mov dword [rsp + 0x60], edi
mov esi, edi
test rcx, rcx
jne 0x14000cca2
lea ecx, [rbp + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14000cd9a
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
mov rdx, r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000cd89
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
jbe 0x14000cce7
mov ebx, 0xd
jmp 0x14000cd89
mov ebx, dword [rsp + 0x68]
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
test rax, rax
je 0x14000cd7b
mov word [rax], di
xor r9d, r9d
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000cd56
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
jbe 0x14000cd89
mov ebx, 0xd
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 rsi, rdi
jmp 0x14000cd89
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rdi, rsi
mov rax, rdi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000cdb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x38
and dword [rsp + 0x48], 0
mov rax, r8
and dword [rsp + 0x58], 0
mov dword [rsp + 0x40], 4
test rcx, rcx
jne 0x14000cde8
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000ce3a
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000ce23
cmp dword [rsp + 0x40], 4
je 0x14000ce28
mov eax, 0xd
and dword [rsp + 0x48], 0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, dword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14000ce48
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x20], r9d
push rdi
sub rsp, 0x30
xor edi, edi
mov rax, r8
test rcx, rcx
je 0x14000ce9c
lea rdx, [r11 + 0x20]
xor r8d, r8d
lea r9d, [rdi + 4]
mov dword [r11 - 0x10], r9d
mov qword [r11 - 0x18], rdx
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
sete dil
jmp 0x14000cead
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x14000cf20
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
mov dword [rsp + 0x50], 0x105
mov rbp, rcx
lea edi, [rsi + 1]
test rcx, rcx
je 0x14000d05a
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
mov edx, esi
and qword [rsp + 0x20], 0
mov rcx, rbp
and qword [rsp + 0x58], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
je 0x14000d046
test eax, eax
jne 0x14000d030
test edi, edi
je 0x14000d030
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x20119
xor r8d, r8d
and dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000d030
mov r8, qword [rsp + 0x2b8]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.1400564e4
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14000d032
xor edi, edi
inc esi
mov dword [rsp + 0x50], 0x105
test edi, edi
jne 0x14000cf62
jmp 0x14000d048
xor ebx, ebx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000d06d
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000dce0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov rbp, rcx
mov qword [rax + 8], rbx
mov r14d, ebx
test rcx, rcx
je 0x14000de21
cmp bx, word [rcx]
je 0x14000de21
lea rdx, [rax + 8]
call fcn.14000d0a0
mov rsi, rax
test rax, rax
je 0x14000ddff
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14000dd3b
add rdi, 2
jmp 0x14000dd3e
mov rdi, rsi
mov r15d, 0x5c
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rdi, rax
mov rcx, rsi
test rax, rax
je 0x14000dd88
mov word [rax], bx
call fcn.14000c064
test eax, eax
jne 0x14000dd7e
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
mov word [rdi], r15w
add rdi, 2
jmp 0x14000dd44
call fcn.14000c064
cmp eax, 1
je 0x14000ddd8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
cmp eax, 1
je 0x14000ddd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rbp
lea r8, str.CreatePath:_Unable_to_create___s___GLE__0x_x
lea rcx, [0x1400bac20]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
mov r14d, eax
call fcn.1400098d0
jmp 0x14000dddd
mov ebx, 1
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]
jmp 0x14000de0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000de34
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14000e2b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
xor ebx, ebx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x14000e367
mov ebx, esi
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000e360
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000e37f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov eax, 0x1f
test edi, edi
cmove edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
je 0x14000e37f
xor ebx, ebx
jmp 0x14000e37f
mov edi, 0xe
jmp 0x14000e37f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov eax, 0x1f
test edi, edi
cmove edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140014df4
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 [0x1400b82f0]
mov rdi, rcx
mov ecx, 0xffff
mov rsi, rdx
cmp ax, cx
jne 0x140014e4d
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 [0x1400b82f0], ax
xor ebp, ebp
cmp ax, 9
je 0x140014e5a
test ax, ax
jne 0x140014ec8
mov rdx, qword [rsi]
mov rcx, qword [rdi + 0x28]
call fcn.140014cf0
test eax, eax
jne 0x140014ec8
mov rbx, qword [rdi + 0x50]
test rbx, rbx
je 0x140014ec4
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x140014ec4
cmp qword [rdi + 0x58], rbp
jne 0x140014e87
cmp rdi, rbx
je 0x140014ec4
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rbx + 0x18]
mov eax, dword [rdx + 0x80]
cmp dword [rcx + 0x80], eax
jne 0x140014ebb
mov eax, dword [rdx + 0x84]
cmp dword [rcx + 0x84], eax
jne 0x140014ebb
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x28]
call fcn.140014cf0
test eax, eax
jne 0x140014ec8
mov rbx, qword [rbx + 0x58]
test rbx, rbx
jne 0x140014e87
xor eax, eax
jmp 0x140014ecd
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 0x14001b608
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x410
call sub.msvcrt.dll_memset
call fcn.140045360
xor ebp, ebp
test eax, eax
jne 0x14001b7b1
call fcn.140045360
test eax, eax
jne 0x14001b6b8
test rbx, rbx
je 0x14001b682
mov rcx, rbx
call fcn.14002e330
cmp eax, 7
jne 0x14001b682
mov rcx, rbx
call fcn.14002e3a4
cmp eax, 0x1000
je 0x14001b6b8
xor edx, edx
mov dword [rsp + 0x30], 0x57
lea rax, str.IsCaptureWIMBootCompliant
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, str.WimBoot_capture_failed_because_the_format_of_wim_file_is_not_compatible_
mov dword [rsp + 0x20], ebp
lea ecx, [rdx + 1]
call fcn.14002aaa0
mov ecx, 0xc1440139
jmp 0x14001b822
mov edx, 0x208
lea rax, [rsp + 0x40]
mov r8d, edx
lea rcx, [rsp + 0x40]
sub rdi, rax
lea rax, [r8 + 0x7ffffdf6]
test rax, rax
je 0x14001b6ef
movzx eax, word [rdi + rcx]
test ax, ax
je 0x14001b6ef
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x14001b6cd
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
je 0x14001b82e
lea r8, str.WindowsSystem32WimBootCompress.ini
lea rcx, [rsp + 0x40]
call fcn.1400010f8
test eax, eax
js 0x14001b82e
mov esi, ebp
cmp bp, word [rsp + 0x40]
je 0x14001b7e0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14000d0a0
mov rdi, rax
test rax, rax
je 0x14001b791
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001b761
and eax, 0x10
sete sil
neg eax
sbb ebx, ebx
and ebx, 2
jmp 0x14001b76f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
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]
jmp 0x14001b79f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test esi, esi
je 0x14001b7f1
mov eax, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor edx, edx
mov dword [rsp + 0x30], 0x65
lea rax, str.IsCaptureWIMBootCompliant
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, str.WimBoot_capture_failed_because_wimbootcompress.ini_is_not_available_
mov dword [rsp + 0x20], ebp
lea ecx, [rdx + 1]
call fcn.14002aaa0
mov ecx, 0xc144013a
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14001b7b6
Function at 0x14001c510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [r8 + 0x18]
mov rbp, r9
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov rdi, qword [rax + 0xd8]
test rdi, rdi
je 0x14001c683
test dword [rdi + 0x1c], 0x400
jne 0x14001c674
cmp dword [rdi + 0x80], 0
jne 0x14001c56a
cmp dword [rdi + 0x84], 0
je 0x14001c674
mov rdx, qword [rdi]
mov rcx, rbp
call fcn.14002f614
mov rsi, rax
test rax, rax
je 0x14001c581
xor ebx, ebx
jmp 0x14001c5c6
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
test eax, eax
jns 0x14001c64d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001c652
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001c626
bt eax, 0xa
jb 0x14001c626
mov rdx, rdi
mov rcx, r14
call fcn.140036698
test rax, rax
je 0x14001c626
mov r9, rsi
mov r8, rax
mov rcx, r15
call fcn.14001c270
mov ebx, eax
test eax, eax
jns 0x14001c626
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilibcapture.c
mov r9d, eax
lea rcx, str.UpdateHardlinkDir
mov r8d, 0x299
call fcn.140046874
test rsi, rsi
je 0x14001c674
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]
jmp 0x14001c674
mov ebx, 0x80004005
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilibcapture.c
mov r9d, ebx
lea rcx, str.UpdateHardlinkDir
mov r8d, 0x287
call fcn.140046874
mov rdi, qword [rdi + 0xc0]
test ebx, ebx
jns 0x14001c53e
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14001f1d8
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x60
and qword [rdx], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x38], xmm0
mov r15, rdx
mov rdi, rcx
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
call fcn.14002e330
test eax, eax
je 0x14001f3aa
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
cmp dword [rsp + 0x50], 1
jbe 0x14001f3aa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001f2a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov ebx, 0x80070000
or ecx, ebx
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001f296
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, ebx
test eax, eax
cmovle ecx, eax
jmp 0x14001f29b
mov ecx, 0x80004005
mov eax, ecx
jmp 0x14001f3af
lea rcx, [rax + 0x20]
mov qword [rax], rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, [rbx + 0x18]
test rcx, rcx
je 0x14001f2d6
mov rax, qword [rcx + 0x48]
test rax, rax
cmovne rcx, rax
test rdx, rdx
je 0x14001f2d6
mov eax, dword [rcx + 0x24]
mov dword [rdx], eax
mov r8d, FDICreate
lea rax, [rbx + 8]
cmp dword [rsp + 0x50], r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
cmovb r8d, dword [rsp + 0x50]
xor edx, edx
mov r9d, r8d
mov dword [rbx + 0x1c], r8d
call fcn.14004ddb0
mov esi, eax
test eax, eax
jns 0x14001f30f
mov r8d, 0xbc0
jmp 0x14001f338
xor edx, edx
lea r14, [rbx + 0x10]
mov r9d, 0x100
mov qword [rsp + 0x20], r14
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.14004ddb0
mov esi, eax
test eax, eax
jns 0x14001f361
mov r8d, 0xbc7
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilibcapture.c
mov r9d, esi
lea rcx, str.CreateCaptureInfo
call fcn.140046874
mov rdx, rbx
mov rcx, rdi
call fcn.14001f164
jmp 0x14001f3a6
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
nop dword [rax + rax]
mov rcx, qword [r14]
mov edx, dword [rsp + 0x50]
dec edx
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
nop dword [rax + rax]
mov qword [r15], rbx
test rdi, rdi
je 0x14001f3a6
mov qword [rdi + 0xf8], rbx
mov eax, esi
jmp 0x14001f3af
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x1400207d8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x80
xor ebx, ebx
call sub.msvcrt.dll_memset
lea r8d, [rbx + 0x40]
lea rdx, [rsp + 0x20]
lea rcx, str.WIMMOUNT_SPARSE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
cmp eax, 0x40
jae 0x140020854
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll__wtoi]
nop dword [rax + rax]
test eax, eax
je 0x140020854
lea rdx, str.Sparse_mount_enabled_via_override
jmp 0x140020861
bt esi, 0xa
jae 0x14002089e
lea rdx, str.Caller_requested_sparse_mount
mov esi, 0x20000
mov ecx, esi
call fcn.140046708
cmp word [rdi], 3
mov eax, 1
ja 0x14002088e
jne 0x140020880
cmp word [rdi + 2], ax
jae 0x14002088e
lea rdx, str.This_systems_wimmount.sys_does_not_support_spare_mounting.
mov ecx, 0x40000
jmp 0x140020899
mov ebx, eax
lea rdx, str.Enabling_sparse_mount.
mov ecx, esi
call fcn.140046708
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14002654c
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, rdx
mov rsi, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140026624
test al, 0x10
jne 0x14002661c
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0xd0
call sub.msvcrt.dll_memset
lea r8d, [rdi + 3]
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rsi
movabs rbx, 0x4d4957534d
call fcn.1400318ac
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140026624
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, 0xd0
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x14002660b
cmp qword [rsp + 0x50], rbx
sete dil
mov dword [r14], edi
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140026624
mov dword [r14], edi
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x160]
add rsp, 0x130
pop r14
pop rdi
pop rsi
ret