joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002f620
Capabilities:
Manipulate boot configuration

Disassembly:
jmp 0x18002f620
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x378
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x368], rax
mov rcx, qword [rsp + 0x390]
call fcn.180001bf4
movzx eax, al
test eax, eax
jne 0x18002f67f
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xa68
lea rdx, [0x1801a5900]
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x18002f67f
int3
mov rax, qword [rsp + 0x390]
mov edx, dword [rax + 0x20]
lea rcx, [rsp + 0x108]
call fcn.180046bc0
lea rcx, [rsp + 0x108]
call fcn.180047580
movzx eax, al
test eax, eax
jne 0x18002f6d6
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xa6a
lea rdx, [0x1801a5918]
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x18002f6d6
int3
lea rcx, [rsp + 0x108]
call fcn.1800475e0
mov dword [rsp + 0x100], eax
cmp dword [rsp + 0x100], 0x14
jne 0x18002f74a
mov rax, qword [rsp + 0x390]
cmp dword [rax + 0x18], 2
jne 0x18002f726
mov byte [rsp + 0x360], 1
lea rcx, [rsp + 0x108]
call fcn.1800012bc
movzx eax, byte [rsp + 0x360]
jmp 0x18002f8ef
mov byte [rsp + 0x361], 0
lea rcx, [rsp + 0x108]
call fcn.1800012bc
movzx eax, byte [rsp + 0x361]
jmp 0x18002f8ef
cmp dword [rsp + 0x100], 0x12
jne 0x18002f789
mov rax, qword [rsp + 0x390]
movzx eax, byte [rax + 0x1b1]
test eax, eax
jne 0x18002f789
mov byte [rsp + 0x362], 0
lea rcx, [rsp + 0x108]
call fcn.1800012bc
movzx eax, byte [rsp + 0x362]
jmp 0x18002f8ef
lea rax, [rsp + 0x40]
lea rcx, [0x1801a5930]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x12
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0x2e
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
lea rcx, [0x1801a5948]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x12
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x92]
mov rdi, rax
xor eax, eax
mov ecx, 0x2e
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
lea rcx, [0x1801a5960]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2e
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xee]
mov rdi, rax
xor eax, eax
mov ecx, 0x12
rep stosb byte [rdi], al
mov dword [rsp + 0x140], 0
jmp 0x18002f830
mov eax, dword [rsp + 0x140]
inc eax
mov dword [rsp + 0x140], eax
cmp dword [rsp + 0x140], 2
jge 0x18002f8d2
xor eax, eax
mov word [rsp + 0x150], ax
lea rax, [rsp + 0x152]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x140]
imul rax, rax, 0x40
lea rax, [rsp + rax + 0x40]
mov rcx, qword [rsp + 0x390]
add rcx, 0xbc
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [0x1801a5990]
mov edx, 0x104
lea rcx, [rsp + 0x150]
call fcn.1800d6e60
lea rcx, [rsp + 0x150]
call fcn.180037850
test eax, eax
je 0x18002f8cd
mov byte [rsp + 0x363], 1
lea rcx, [rsp + 0x108]
call fcn.1800012bc
movzx eax, byte [rsp + 0x363]
jmp 0x18002f8ef
jmp 0x18002f820
mov byte [rsp + 0x364], 0
lea rcx, [rsp + 0x108]
call fcn.1800012bc
movzx eax, byte [rsp + 0x364]
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x378
pop rdi
pop rsi
ret
Function at 0x18002fb40
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x18002fb40
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rcx, qword [rsp + 0x2f0]
call fcn.180001357
movzx eax, al
test eax, eax
je 0x18002fb95
mov byte [rsp + 0x2c8], 0
mov rcx, qword [rsp + 0x2f0]
call fcn.18000165e
movzx eax, byte [rsp + 0x2c8]
jmp 0x18002fd52
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rsp + 0x20]
call fcn.180001820
lea rdx, [0x1801a59e8]
lea rcx, [rsp + 0x20]
call fcn.180033970
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 0x24c
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.18000122b
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x2a0], rax
cmp qword [rsp + 0x2a0], 0xffffffffffffffff
jne 0x18002fc28
mov byte [rsp + 0x2c9], 0
lea rcx, [rsp + 0x20]
call fcn.18000165e
mov rcx, qword [rsp + 0x2f0]
call fcn.18000165e
movzx eax, byte [rsp + 0x2c9]
jmp 0x18002fd52
movzx eax, word [rsp + 0x7c]
cmp eax, 0x2e
jne 0x18002fc37
jmp 0x18002fd02
mov eax, dword [rsp + 0x50]
and eax, 0x10
test eax, eax
jne 0x18002fc47
jmp 0x18002fd02
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rsp + 0x2a8]
call fcn.180001820
lea rdx, [0x1801a5a00]
lea rcx, [rsp + 0x2a8]
call fcn.180033970
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x2a8]
call fcn.180033970
lea rdx, str.Winre.wim
lea rcx, [rsp + 0x2a8]
call fcn.180033970
lea rcx, [rsp + 0x2a8]
call fcn.18000122b
mov rcx, rax
call fcn.180037850
test eax, eax
jne 0x18002fcbe
lea rcx, [rsp + 0x2a8]
call fcn.18000165e
jmp 0x18002fd02
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov byte [rsp + 0x2ca], 1
lea rcx, [rsp + 0x2a8]
call fcn.18000165e
lea rcx, [rsp + 0x20]
call fcn.18000165e
mov rcx, qword [rsp + 0x2f0]
call fcn.18000165e
movzx eax, byte [rsp + 0x2ca]
jmp 0x18002fd52
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18002fc28
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov byte [rsp + 0x2cb], 0
lea rcx, [rsp + 0x20]
call fcn.18000165e
mov rcx, qword [rsp + 0x2f0]
call fcn.18000165e
movzx eax, byte [rsp + 0x2cb]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x2e0
pop rdi
ret
Function at 0x180035270
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp qword [rsp + 0xb8], 0
je 0x1800352a4
mov rax, qword [rsp + 0xb8]
mov dword [rax], 0
cmp dword [rsp + 0xb0], 0
jne 0x1800352b8
mov eax, 1
jmp 0x1800353f3
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0xc0], 0
je 0x18003532b
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x74], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0x103
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_ZwReadFile]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0x103
je 0x1800353bf
cmp qword [rsp + 0xb8], 0
je 0x1800353bf
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
cmp dword [rsp + 0x78], 0
je 0x1800353ee
cmp dword [rsp + 0x78], 0xc0000011
je 0x1800353ee
cmp dword [rsp + 0x78], 0x102
je 0x1800353ee
mov ecx, dword [rsp + 0x78]
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call fcn.1800357e0
xor eax, eax
jmp 0x1800353f3
mov eax, 1
add rsp, 0x98
ret
Function at 0x180035410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp qword [rsp + 0xb8], 0
je 0x180035444
mov rax, qword [rsp + 0xb8]
mov dword [rax], 0
cmp dword [rsp + 0xb0], 0
jne 0x180035458
mov eax, 1
jmp 0x18003559e
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0xc0], 0
je 0x1800354d4
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x74], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0x103
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_ZwWriteFile]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0x103
je 0x180035568
cmp qword [rsp + 0xb8], 0
je 0x180035568
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
cmp dword [rsp + 0x78], 0
je 0x180035599
cmp dword [rsp + 0x78], 0x5b4
je 0x180035599
mov ecx, dword [rsp + 0x78]
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call fcn.1800357e0
call fcn.1800357c0
mov dword [rsp + 0x88], eax
xor eax, eax
jmp 0x18003559e
mov eax, 1
add rsp, 0x98
ret
Function at 0x1800360f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1c8
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x70], MsiGetProductInfoW
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x58]
mov edx, 0x20019
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_ZwOpenKey]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x180036271
mov rdx, qword [rsp + 0x1d8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0xa0]
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
test eax, eax
jne 0x180036266
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x90]
add rax, 0xc
mov qword [rsp + 0x1b0], rax
mov eax, dword [rsp + 0x88]
xor edx, edx
mov ecx, 2
div rcx
xor ecx, ecx
mov rdx, qword [rsp + 0x1b0]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x1e8]
xor edx, edx
mov ecx, 2
div rcx
mov r8, qword [rsp + 0x1b0]
mov rdx, rax
mov rcx, qword [rsp + 0x1e0]
call fcn.1800d9840
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x1c8
ret
Function at 0x180036ab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
cmp qword [rsp + 0xa0], 0
je 0x180036aed
cmp qword [rsp + 0xa8], 0
jne 0x180036af7
mov eax, 0x57
jmp 0x180036d24
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ecx, 0x400
call fcn.1800d4c50
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1800011fe
nop
mov dword [rsp + 0x30], 0
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800012df
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x400
mov r9, rax
mov r8d, 2
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x48]
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180036bac
mov ecx, dword [rsp + 0x60]
call fcn.1800357e0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x78], eax
lea rcx, [rsp + 0x50]
call fcn.18000186b
mov eax, dword [rsp + 0x78]
jmp 0x180036d24
cmp qword [rsp + 0xb8], 0
jne 0x180036c08
cmp qword [rsp + 0xc0], 0
je 0x180036bed
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x399
lea rdx, [0x1801a7fd8]
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x180036bed
int3
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x7c], eax
lea rcx, [rsp + 0x50]
call fcn.18000186b
mov eax, dword [rsp + 0x7c]
jmp 0x180036d24
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800012df
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 8]
cmp dword [rax], ecx
jae 0x180036c58
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x39d
lea rdx, [0x1801a7ff8]
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x180036c58
int3
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 8]
cmp dword [rax], ecx
jae 0x180036c8d
mov dword [rsp + 0x80], 0x57
lea rcx, [rsp + 0x50]
call fcn.18000186b
mov eax, dword [rsp + 0x80]
jmp 0x180036d24
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call fcn.1800d63d0
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x68]
add rcx, 0xc
mov rdx, qword [rsp + 0xc0]
mov edx, dword [rdx]
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0xb8]
call fcn.1800d4a00
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 4]
mov dword [rax], ecx
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x84], eax
lea rcx, [rsp + 0x50]
call fcn.18000186b
mov eax, dword [rsp + 0x84]
jmp 0x180036d24
add rsp, 0x98
ret
Function at 0x180036d40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x180036d7a
cmp qword [rsp + 0x68], 0
je 0x180036d7a
cmp qword [rsp + 0x78], 0
je 0x180036d7a
cmp dword [rsp + 0x80], 0
jne 0x180036d81
mov eax, 0x57
jmp 0x180036de3
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x40]
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x180036ddf
mov ecx, dword [rsp + 0x44]
call fcn.1800357e0
mov eax, dword [rsp + 0x44]
add rsp, 0x58
ret

Function at 0x180037090
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
movzx eax, al
test eax, eax
jne 0x1800370c7
mov ecx, 3
call fcn.1800357e0
xor eax, eax
jmp 0x180037136
mov dword [rsp + 0x20], 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], MsiGetProductInfoW
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_ZwDeleteFile]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp dword [rsp + 0x50], 0
je 0x180037131
mov ecx, dword [rsp + 0x50]
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call fcn.1800357e0
xor eax, eax
jmp 0x180037136
mov eax, 1
add rsp, 0x78
ret

Function at 0x180037190
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 5
mov r9d, SafeArrayCopy
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1800371f7
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov eax, 1
jmp 0x180037209
mov ecx, dword [rsp + 0x40]
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call fcn.1800357e0
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x78
ret
Function at 0x180037320
Capabilities:
Set file attributes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
movzx eax, al
test eax, eax
jne 0x180037376
mov ecx, 3
call fcn.1800357e0
xor eax, eax
jmp 0x1800374f4
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], MsiGetProductInfoW
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x78], 0xffffffffffffffff
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, 0x100100
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_ZwOpenFile]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp dword [rsp + 0x70], 0
je 0x180037476
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], MsiGetProductInfoW
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, 0x100100
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_ZwOpenFile]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x1800374e2
mov r8d, SafeArraySetRecordInfo
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.1800d63d0
mov eax, dword [rsp + 0xf8]
bts eax, 7
mov dword [rsp + 0xc8], eax
mov dword [rsp + 0x20], 4
mov r9d, SafeArraySetRecordInfo
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_ZwClose]
mov eax, 1
jmp 0x1800374f4
mov ecx, dword [rsp + 0x70]
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call fcn.1800357e0
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0xe8
ret
Function at 0x180037d30
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rcx, qword [rsp + 0xd0]
call fcn.180001bf4
movzx eax, al
test eax, eax
jne 0x180037d85
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x536
lea rdx, [0x1801a80e0]
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x180037d85
int3
mov rcx, qword [rsp + 0xd8]
call fcn.180001bf4
movzx eax, al
test eax, eax
je 0x180037da3
cmp dword [rsp + 0xe0], 0
ja 0x180037dce
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x537
lea rdx, [0x1801a8100]
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x180037dce
int3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
movzx eax, al
test eax, eax
jne 0x180037e07
mov ecx, 3
call fcn.1800357e0
mov rax, 0xffffffffffffffff
jmp 0x180037f82
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], MsiGetProductInfoW
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xb8], 0xffffffffffffffff
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov edx, 0x80100000
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_ZwCreateFile]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
jne 0x180037f4c
cmp qword [rsp + 0xb8], 0xffffffffffffffff
je 0x180037f4c
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
je 0x180037f4c
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_ZwClose]
mov qword [rsp + 0xb8], 0xffffffffffffffff
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov rcx, qword [rsp + 0xb8]
call fcn.180001bf4
movzx eax, al
test eax, eax
jne 0x180037f7a
mov qword [rsp + 0xb8], 0xffffffffffffffff
mov rax, qword [rsp + 0xb8]
add rsp, 0xc8
ret
Function at 0x180037f90
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x90]
call fcn.180001bf4
movzx eax, al
test eax, eax
jne 0x180037fe5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x571
lea rdx, [0x1801a8120]
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x180037fe5
int3
mov rcx, qword [rsp + 0x98]
call fcn.180001bf4
movzx eax, al
test eax, eax
je 0x180038003
cmp dword [rsp + 0xa0], 0
ja 0x18003802e
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x572
lea rdx, str.nwindows.cpp
mov ecx, 2
call fcn.1800d5be0
cmp eax, 1
jne 0x18003802e
int3
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x180038095
mov eax, 1
jmp 0x180038097
xor eax, eax
add rsp, 0x88
ret

Function at 0x1800380b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x250
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rsp + 0x260], 0
jne 0x1800380eb
jmp 0x180038140
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, [rsp + 0x268]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0x260]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1800dad50
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x250
pop rdi
ret

Function at 0x180038160
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x150
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp qword [rsp + 0x160], 0
jne 0x18003819b
jmp 0x1800381ee
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rax, [rsp + 0x168]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0x160]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1800dce40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x150
pop rdi
ret
Function at 0x180038400
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0xffffffff
mov dword [rsp], 0
jmp 0x180038426
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180038462
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rsp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1801a8230]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x18003841e
mov eax, dword [rsp + 4]
not eax
add rsp, 0x18
ret