joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034408
Capabilities:
Clear file content
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov rbx, rcx
xor esi, esi
lea rax, [rdx + 1]
test rax, 0xfffffffffffffffe
jne 0x140034441
test r8, r8
je 0x140034620
test rdi, rdi
je 0x1400345e6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov edx, 8
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
or r15d, 0xffffffff
mov eax, r15d
test rbx, rbx
je 0x14003447f
mov eax, dword [rbx]
mov r12d, 0xfeedf002
cmp eax, r12d
jne 0x1400345e6
test rsi, rsi
je 0x1400345e6
mov rcx, rdi
call fcn.140030840
mov qword [rsi], rax
test rax, rax
je 0x1400345e6
lea rax, [r14 + 1]
test rax, 0xfffffffffffffffe
jne 0x1400344f5
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x1400345e6
mov r14, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x1400345e6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop dword [rax + rax]
test eax, eax
je 0x1400345e6
mov rdi, rbx
mov eax, r15d
test rbx, rbx
je 0x140034538
mov eax, dword [rbx]
cmp eax, r12d
je 0x140034541
xor edi, edi
jmp 0x14003455a
mov rax, qword [rbx + 0x48]
jmp 0x14003454e
mov rdi, rax
mov rax, qword [rax + 0x48]
test rax, rax
jne 0x140034547
add rdi, 0x200
mov qword [rsp + 0x68], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
mov rax, rbx
mov ecx, r15d
test rbx, rbx
je 0x14003457c
mov ecx, dword [rbx]
cmp ecx, r12d
je 0x140034585
xor eax, eax
jmp 0x14003459a
mov rcx, qword [rax + 0x48]
test rcx, rcx
je 0x140034593
mov rax, rcx
jmp 0x140034585
mov rax, qword [rax + 0xf0]
mov qword [rsi + 8], rax
test rbx, rbx
je 0x1400345a6
mov r15d, dword [rbx]
cmp r15d, r12d
jne 0x1400345c0
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x1400345b9
mov rbx, rax
jmp 0x1400345ab
mov qword [rbx + 0xf0], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or r14, 0xffffffffffffffff
xor edi, edi
xor esi, esi
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400345ff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x140034613
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test rsi, rsi
je 0x140034620
mov rcx, rsi
call fcn.140034644
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140034644
Capabilities:
Delete file

Disassembly:
test rcx, rcx
je 0x1400346d1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, qword [rbx]
mov rsi, qword [rbx + 8]
test rdi, rdi
je 0x14003469a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
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]
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]
mov rbx, rsi
test rsi, rsi
jne 0x14003465f
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140038ad4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400b8288]
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 0x140038b20
and r8d, 0x3127
bts r8d, 7
mov dword [rbp - 0x10], r8d
test r9, r9
je 0x140038b32
mov eax, dword [r9]
mov dword [rbp - 0x30], eax
mov eax, dword [r9 + 4]
mov dword [rbp - 0x2c], eax
test rcx, rcx
je 0x140038b42
mov eax, dword [rcx]
mov dword [rbp - 0x28], eax
mov eax, dword [rcx + 4]
mov dword [rbp - 0x24], eax
test rdx, rdx
je 0x140038b52
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 0x140038bb0
mov ebx, eax
bts ebx, 0x1c
cmp eax, 0xc000000d
je 0x140038bb0
test ebx, ebx
jns 0x140038bb2
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibdataprocessdataprocess.c
mov r9d, ebx
lea rcx, str.RestoreFileInfo
mov r8d, 0x698
call fcn.140046874
jmp 0x140038bb2
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x140038e54
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor edi, edi
mov rbp, rdx
test rcx, rcx
je 0x140038f97
mov rax, qword [rcx + 0x48]
test rax, rax
cmovne rcx, rax
test dword [rcx + 0x24], 0x8000
je 0x140038f97
lea r9d, [rdi + 4]
mov dword [rsp + 0x20], 7
lea r8, [r11 + 8]
mov rcx, rbp
lea rdx, [r11 - 0x28]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140038f97
mov eax, dword [rsp + 0x80]
cmp eax, 1
jbe 0x140038f97
lea r14d, [rax*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, r14d
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140038f97
mov byte [rsp + 0x40], 1
lea rdx, [rsp + 0x50]
and qword [rsp + 0x38], rdi
mov r9d, r14d
and dword [rsp + 0x30], edi
mov r8, rax
and qword [rsp + 0x28], rdi
mov rcx, rbp
mov byte [rsp + 0x20], dil
call qword [sym.imp.ntdll.dll_NtQueryEaFile]
nop dword [rax + rax]
test eax, eax
js 0x140038f77
mov rbx, rsi
cmp byte [rbx + 5], 8
jb 0x140038f6b
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 0x140038f6b
mov rdx, rbx
mov rcx, rdi
call fcn.140038d14
mov rdi, rax
cmp dword [rbx], 0
je 0x140038f77
mov eax, dword [rbx]
add rbx, rax
jne 0x140038f36
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]
lea r11, [rsp + 0x60]
mov rax, rdi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140042b60
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 0x140042c02
cmp word [rcx], si
je 0x140042c02
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 0x140042be0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140042bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140042bfe
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140042c15
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 0x140042e2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
or r13, 0xffffffffffffffff
mov rbp, r13
mov qword [rax + 0x20], r12
mov edi, r12d
mov r15, r8
mov rbx, rdx
call fcn.14002e5e4
mov r14, rax
test rax, rax
je 0x140042ff0
mov rcx, qword [rax]
test rcx, rcx
je 0x140042ff0
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140042e7f
mov r8d, 0xb
mov edx, r12d
cmp rax, r8
setae dl
jb 0x140042eb5
lea rdx, str._Volume
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
mov edx, r12d
sete dl
test edx, edx
je 0x140042ff0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140042ff0
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, r13
je 0x140042faf
lea r8, [rsp + 0x88]
mov edx, 1
mov rcx, rax
call fcn.140042c2c
mov ebx, eax
test eax, eax
jns 0x140042f57
mov r9d, eax
mov qword [rsp + 0x20], r12
mov r8d, 0x399
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmainmiscutil.c
lea rcx, str.WimVerifyFileRedirection
call fcn.140046874
mov rdi, qword [rsp + 0x88]
jmp 0x140042ff5
mov rdx, qword [r14]
mov rsi, r13
inc rsi
cmp word [rdx + rsi*2], r12w
jne 0x140042f5d
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
call fcn.14000c8b8
test eax, eax
je 0x140042fa6
movzx ecx, word [rdi + rsi*2]
mov edx, 0x5c
cmp dx, cx
je 0x140042fa1
lea eax, [rdx - 0x22]
cmp ax, cx
je 0x140042fa1
mov rax, qword [r14]
cmp dx, word [rax + rsi*2 - 2]
je 0x140042fa1
cmp r12w, cx
jne 0x140042fa6
mov dword [r15], r12d
jmp 0x140042ff5
mov dword [r15], 1
jmp 0x140042ff5
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
jns 0x14004302e
mov r9d, ebx
mov qword [rsp + 0x20], r12
mov r8d, 0x3b7
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmainmiscutil.c
lea rcx, str.WimVerifyFileRedirection
call fcn.140046874
jmp 0x140042ff5
mov ebx, 1
test rdi, rdi
je 0x14004301a
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]
cmp rbp, r13
je 0x14004302e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400448f4
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x680
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov esi, 1
call fcn.1400447f8
mov rdx, rax
test rax, rax
je 0x140044a32
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
mov rcx, rdi
test rbx, rbx
je 0x140044961
mov rax, qword [rbx + 0x48]
jmp 0x140044953
mov rbx, rax
mov rax, qword [rax + 0x48]
test rax, rax
jne 0x14004494c
cmp qword [rbx + 0x60], rax
cmovne rcx, qword [rbx + 0x60]
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.14005ae24
mov ebx, eax
test r14, r14
je 0x1400449a2
mov rax, qword [rsp + 0x40]
mov rcx, rdi
mov qword [r14], rax
jmp 0x1400449a7
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x1400449b8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
jns 0x140044a0b
mov ecx, ebx
bt ebx, 0x1c
jae 0x1400449e9
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
je 0x1400449fb
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400449fb
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.140096bd0
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.140041e14
test eax, eax
lea rbx, [rsp + 0x50]
cmove rbx, rdi
mov rcx, rbx
call fcn.14000c064
test eax, eax
jne 0x140044a82
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140044a0b
test r14, r14
je 0x140044a0b
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 0x140044a09
mov qword [r14], rax
jmp 0x140044a0b
Function at 0x140044c98
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
test rcx, rcx
je 0x140044cdd
mov rax, qword [rcx + 0x48]
test rax, rax
cmovne rcx, rax
test dword [rcx + 0x24], 0x10000000
je 0x140044cdd
mov r9d, dword [rsp + 0x70]
mov r8d, r10d
mov rdx, r11
mov rcx, rdi
call fcn.14005b028
mov ebx, eax
jmp 0x140044d47
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
xorps xmm0, xmm0
mov dword [rsp + 0x20], eax
mov rcx, rdi
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x140044d47
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140044d47
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmainmiscutil.c
mov r9d, ebx
lea rcx, str.WimImageSetInformationFile
mov r8d, 0x8e2
call fcn.140046874
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140044d5c
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, 0x20
mov eax, dword [rdx + 0x1c]
xor ebx, ebx
mov rbp, rcx
test al, 0x10
jne 0x140044d83
mov rdx, qword [rdx + 0xb8]
mov rdi, qword [rdx + 0xb8]
test rdi, rdi
jne 0x140044d93
xor eax, eax
jmp 0x140044df8
call fcn.140036698
mov rsi, rax
test rax, rax
jne 0x140044da7
mov eax, 0x80070002
jmp 0x140044df8
mov rdx, rdi
mov rcx, rbp
call fcn.140044d5c
test eax, eax
js 0x140044df8
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140044de8
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 0x140044df8
and eax, 0x400
sub ebx, eax
neg ebx
sbb eax, eax
and eax, 0x800702e5
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140045168
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x50]
mov ecx, 0x104
sub rbx, rax
lea r9, [rsp + 0x50]
xor r14d, r14d
mov r10d, ecx
lea rax, [r10 + 0x7ffffefa]
test rax, rax
je 0x1400451eb
movzx eax, word [rbx + r9]
test ax, ax
je 0x1400451eb
mov word [r9], ax
add r9, 2
sub r10, 1
jne 0x1400451c7
test r10, r10
lea rax, [r9 - 2]
cmovne rax, r9
mov word [rax], r14w
mov rax, r10
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test r10, r10
je 0x140045331
mov edx, ecx
lea rcx, [rsp + 0x50]
call fcn.14002fe88
mov ebx, eax
test eax, eax
js 0x140045331
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14004525f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140045331
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r14
lea r15, [0x1400450d0]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], r15
lea r8, [0x14000a400]
mov dword [rsp + 0x20], r14d
lea rdx, [0x14000a360]
mov rcx, rsi
call fcn.140009cac
test eax, eax
je 0x140045306
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], r14
lea r8, [0x14000a400]
mov qword [rsp + 0x38], rsi
lea rdx, [0x14000a360]
mov qword [rsp + 0x40], r15
mov rcx, rdi
mov dword [rsp + 0x20], r14d
call fcn.140009cac
test eax, eax
je 0x140045306
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], r14
lea r8, [0x14000a400]
mov qword [rsp + 0x38], rdi
lea rdx, [0x14000a360]
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], r14d
call fcn.140009cac
test eax, eax
jne 0x140045320
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140045360
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
lea rdx, [rsp + 0x28]
mov r8d, FDICreate
lea rcx, str.WIM_Skip_WIMBoot_Check
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
dec eax
cmp eax, 0xf
ja 0x1400453d8
lea r8, [rsp + 0x20]
lea rdx, [0x14009e38c]
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcrt.dll_swscanf_s]
nop dword [rax + rax]
test eax, eax
jle 0x1400453d8
cmp dword [rsp + 0x20], 0
je 0x1400453d8
mov eax, 1
jmp 0x1400453da
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140096bd0
add rsp, 0x58
ret
Function at 0x140045d84
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r15, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor r12d, r12d
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov word [r15], r12w
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140045e04
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140045f40
lea rbp, str.catrootF750E6C3_38EE_11D1_85E5_00C04FC295EE
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x50]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x140045e14
mov esi, 0x2f
test ebx, ebx
je 0x140045e3e
lea ecx, [rbx - 1]
lea eax, [rsi + 0x2d]
cmp ax, word [rsp + rcx*2 + 0x50]
jne 0x140045e3e
lea rbp, [0x1400a5092]
lea esi, [rax - 0x2e]
mov rcx, qword gs:[0x60]
lea eax, [rbx + 1]
add eax, esi
mov edx, 8
mov r14d, eax
mov rcx, qword [rcx + 0x30]
lea r8, [rax + rax]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140045e85
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
jmp 0x140045f3b
lea rax, [rsp + 0x40]
mov r9d, ebx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov rdx, r14
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14000c208
mov ebx, eax
test eax, eax
js 0x140045f0e
mov rdx, qword [rsp + 0x40]
mov r8, rbp
mov rcx, qword [rsp + 0x48]
mov r9d, esi
call fcn.14000107c
mov ebx, eax
test eax, eax
js 0x140045f0e
mov rax, qword gs:[0x30]
mov r8, rdi
mov edx, 0x104
mov rcx, r15
mov dword [rax + 0x68], r12d
call fcn.140001008
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 0x140045f40
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rax, qword gs:[0x30]
movzx ecx, bx
mov dword [rax + 0x68], ecx
mov ebx, 0x8007000e
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140046d20
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
or qword [rax - 0x38], 0xffffffffffffffff
mov r12, r9
and qword [rax + 8], 0
mov rbx, r8
mov r13, rdx
mov r15, rcx
test rcx, rcx
je 0x140046e70
test rdx, rdx
jne 0x140046d69
test r9, r9
je 0x140046e70
mov r14, qword [rsp + 0xa8]
test r14, r14
je 0x140046e70
mov rbp, qword [rsp + 0xa0]
test rbx, rbx
je 0x140046da7
test byte [r8 + 0xf], 0x10
je 0x140046da1
mov rax, qword [r8 + 8]
movabs rcx, 0xffffffffffffff
and rax, rcx
jmp 0x140046db0
mov rax, qword [r8 + 0x18]
jmp 0x140046db0
test rbp, rbp
je 0x140046dcc
mov rax, qword [rbp + 8]
mov qword [rsp + 0x80], rax
test rbx, rbx
jne 0x140046dc2
test rbp, rbp
je 0x140046dcc
lea rax, [rsp + 0x80]
jmp 0x140046dce
xor eax, eax
mov r8, qword [rsp + 0xb0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov r9d, 0x48000000
mov rcx, r15
mov qword [rsp + 0x28], rax
mov rdx, r14
call fcn.140027e60
mov rdi, qword [rsp + 0x40]
mov esi, eax
test eax, eax
je 0x140046e44
mov eax, dword [rsp + 0xc0]
mov r9, r12
mov dword [rsp + 0x38], eax
mov r8, rbx
mov qword [rsp + 0x30], r14
mov rdx, r13
mov qword [rsp + 0x28], rdi
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.140046c50
mov esi, eax
test eax, eax
je 0x140046e44
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x140046e44
mov qword [rax], rdi
jmp 0x140046e6c
cmp rdi, 0xffffffffffffffff
je 0x140046e6c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test esi, esi
jne 0x140046e6c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov eax, esi
jmp 0x140046e83
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
lea r11, [rsp + 0x50]
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