joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009fd60
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x10009fda7
lea r8, [0x10000a1e8]
lea rcx, [0x10000a090]
mov edx, 0x79d
call fcn.100099ad8
test rsi, rsi
jne 0x10009fdc4
lea r8, [0x10000a200]
lea rcx, [0x10000a090]
mov edx, 0x79e
call fcn.100099ad8
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x20], rdi
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x10009fe27
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10009feb8
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10009fe95
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x10009feba
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10009fe8e
test byte [rcx + 0x1c], 1
je 0x10009fe8e
cmp byte [rcx + 0x19], 2
jb 0x10009fe8e
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x100003ae8]
call fcn.10001c7b8
mov ebx, 0x8000ffff
jmp 0x10009feb8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
xor r8d, r8d
call fcn.10009b4ec
mov rdi, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x10009febc
mov qword [rsi], rdi
test ebx, ebx
jns 0x10009fec5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.10014e480
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x10009ff78
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x10009ffa4
lea r8, [0x10000a218]
lea rcx, [0x10000a090]
mov edx, 0x814
call fcn.100099ad8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000a0027
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.10009d620
test eax, eax
js 0x1000a0029
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1000a0027
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a0018
test byte [rcx + 0x1c], 2
je 0x1000a0018
cmp byte [rcx + 0x19], 2
jb 0x1000a0018
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003ae8]
mov edx, 0x40
mov r9d, ebx
call fcn.10001c7dc
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1000a0029
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000a0518
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov r12, rdx
mov rbp, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
lea r14, [0x1000039e8]
cmp rcx, rax
je 0x1000a056d
test byte [rcx + 0x1c], 1
je 0x1000a056d
cmp byte [rcx + 0x19], 4
jb 0x1000a056d
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, r14
call fcn.10001c7b8
xor ebx, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp eax, ebx
jne 0x1000a05d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x1000a069a
test byte [rcx + 0x1c], 1
je 0x1000a069a
cmp byte [rcx + 0x19], 2
jb 0x1000a069a
lea edx, [rdi + 0xb]
jmp 0x1000a0646
mov rcx, rsi
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
cmp rax, rbx
jne 0x1000a05f5
mov ebx, 0x8007000e
lea rsi, [0x1001653b8]
jmp 0x1000a069a
mov r8d, esi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jne 0x1000a065b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x1000a069a
test byte [rcx + 0x1c], 1
je 0x1000a069a
cmp byte [rcx + 0x19], 2
jb 0x1000a069a
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
mov r9, rbp
mov r8, r14
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x1000a069a
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x1000a0693
test byte [rcx + 0x1c], 1
je 0x1000a0693
cmp byte [rcx + 0x19], 4
jb 0x1000a0693
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9, rbp
mov r8, r14
mov qword [rsp + 0x20], rdi
call fcn.10001df38
mov qword [r12], rdi
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1000a06cc
test byte [rcx + 0x1c], 1
je 0x1000a06cc
cmp byte [rcx + 0x19], 4
jb 0x1000a06cc
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r14
call fcn.10001c7b8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x1000a06f0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 5]
lea r8, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x1000a0732
lea r8, [0x10000a2b0]
lea rcx, [0x10000a2b8]
mov edx, 0x76
call fcn.100099ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x1000a07c3
mov ecx, dword [rsp + 0x38]
xor ebx, ebx
inc ecx
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x1000a076e
mov ebx, 0x8007000e
jmp 0x1000a07b5
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov rcx, rax
inc r8d
add r8, r8
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1000a07b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000a07b5
mov qword [rsi], rdi
xor edi, edi
test rdi, rdi
je 0x1000a07c3
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000a0dd4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r13, r9
mov r12, r8
mov rsi, rdx
mov r14, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a0e2a
test byte [rcx + 0x1c], 1
je 0x1000a0e2a
cmp byte [rcx + 0x19], 4
jb 0x1000a0e2a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x18
call fcn.10001c7b8
mov rbp, qword [rsp + 0x90]
xor ebx, ebx
and dword [rsp + 0x30], ebx
and dword [rsp + 0x80], ebx
test r12, r12
je 0x1000a0e53
test rsi, rsi
je 0x1000a0e53
test r13, r13
je 0x1000a0e53
test rbp, rbp
jne 0x1000a0e6b
lea r8, [0x10000a350]
lea rcx, [0x10000a2b8]
mov edx, 0x1bc
call fcn.100099ad8
and qword [r12], rbx
lea rax, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000a0ef1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x1000a101d
test byte [rcx + 0x1c], 1
je 0x1000a0ff7
cmp byte [rcx + 0x19], 2
jb 0x1000a0ff7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x19
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
jmp 0x1000a0ff0
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x1000a0f1b
lea r8, [0x10000a3a0]
lea rcx, [0x10000a2b8]
mov edx, 0x1ca
call fcn.100099ad8
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x1000a0f35
mov ebx, 0x8007000e
jmp 0x1000a0fd4
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x80]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000a0fbc
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x1000a0fe2
test byte [rcx + 0x1c], 1
je 0x1000a0fe2
cmp byte [rcx + 0x19], 2
jb 0x1000a0fe2
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x1a
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
jmp 0x1000a0fdb
mov eax, dword [rsp + 0x30]
mov qword [r12], rdi
xor edi, edi
mov dword [r13], eax
mov eax, dword [rsp + 0x80]
mov dword [rbp], eax
lea rbp, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test rdi, rdi
je 0x1000a0ff7
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a101d
test byte [rcx + 0x1c], 1
je 0x1000a101d
cmp byte [rcx + 0x19], 4
jb 0x1000a101d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x1b
call fcn.10001c7b8
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1000a11fc
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov rdi, rcx
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x1000a1242
test byte [rcx + 0x1c], 1
je 0x1000a1242
cmp byte [rcx + 0x19], 4
jb 0x1000a1242
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x1f
call fcn.10001c7b8
xor ebx, ebx
xor eax, eax
lea r8, [rsp + 0x38]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x34]
lea r9d, [rbx + 0xc]
lea edx, [rbx + 5]
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
call qword [sym.imp.ntdll.dll_NtQueryKey]
cmp eax, ebx
jge 0x1000a12a6
mov ebx, eax
bts ebx, 0x1c
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a1330
test byte [rcx + 0x1c], 1
je 0x1000a130a
cmp byte [rcx + 0x19], 2
jb 0x1000a130a
mov edx, 0x20
jmp 0x1000a12f0
mov eax, dword [rsp + 0x40]
mov r9d, 4
lea r8, [rsp + 0x30]
or eax, 0xe
lea edx, [r9 - 2]
mov rcx, rdi
mov dword [rsp + 0x30], eax
call qword [sym.imp.ntdll.dll_NtSetInformationKey]
cmp eax, ebx
jge 0x1000a1303
mov ebx, eax
bts ebx, 0x1c
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a1330
test byte [rcx + 0x1c], 1
je 0x1000a130a
cmp byte [rcx + 0x19], 2
jb 0x1000a130a
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov r9d, ebx
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a1330
test byte [rcx + 0x1c], 1
je 0x1000a1330
cmp byte [rcx + 0x19], 4
jb 0x1000a1330
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x22
call fcn.10001c7b8
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1000a1348
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov r12, rcx
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
cmp rcx, r14
je 0x1000a13a0
test byte [rcx + 0x1c], 1
je 0x1000a13a0
cmp byte [rcx + 0x19], 4
jb 0x1000a13a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x23
call fcn.10001c7b8
mov eax, dword [rsp + 0x70]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], rdi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp eax, ebx
je 0x1000a140d
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000a13fc
test byte [rcx + 0x1c], 1
je 0x1000a13fc
cmp byte [rcx + 0x19], 2
jb 0x1000a13fc
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
lea r8, [0x1000039e8]
xor r9d, r9d
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
movzx eax, di
or eax, 0x80070000
cmp edi, ebx
cmovle eax, edi
mov ebx, eax
jmp 0x1000a1414
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000a143a
test byte [rcx + 0x1c], 1
je 0x1000a143a
cmp byte [rcx + 0x19], 4
jb 0x1000a143a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x25
call fcn.10001c7b8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x1000a145c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov r12, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a14a7
test byte [rcx + 0x1c], 1
je 0x1000a14a7
cmp byte [rcx + 0x19], 4
jb 0x1000a14a7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x26
call fcn.10001c7b8
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x78], ebx
mov dword [rdi], ebx
cmp rsi, rbx
jne 0x1000a14d4
lea r8, [0x10000a408]
lea rcx, [0x10000a2b8]
mov edx, 0x2cf
call fcn.100099ad8
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov rdx, rsi
mov rcx, r12
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp ebp, ebx
je 0x1000a1515
cmp eax, 2
jne 0x1000a1515
lea ebx, [rax - 1]
jmp 0x1000a158d
cmp eax, ebx
je 0x1000a156b
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1000a15c1
test byte [rcx + 0x1c], 1
je 0x1000a159b
cmp byte [rcx + 0x19], 3
jb 0x1000a159b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x27
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x1000a1594
cmp dword [rsp + 0x68], 4
je 0x1000a1579
mov ebx, 0x8007065d
jmp 0x1000a158d
cmp dword [rsp + 0x78], 4
je 0x1000a1587
mov ebx, 0x80004005
jmp 0x1000a158d
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
lea rdi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000a15c1
test byte [rcx + 0x1c], 1
je 0x1000a15c1
cmp byte [rcx + 0x19], 4
jb 0x1000a15c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x28
call fcn.10001c7b8
mov eax, ebx
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1000a15d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, r9
mov r12, r8
mov r13, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a1626
test byte [rcx + 0x1c], 1
je 0x1000a1626
cmp byte [rcx + 0x19], 4
jb 0x1000a1626
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x2c
call fcn.10001c7b8
xor ebx, ebx
xor ecx, ecx
lea esi, [rbx + 0x40]
mov qword [r12], rbx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], esi
mov dword [rbp], ebx
jmp 0x1000a16b9
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a1675
test byte [rcx + 0x1c], 1
je 0x1000a1675
cmp byte [rcx + 0x19], 4
jb 0x1000a1675
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x2d
mov r9d, esi
call fcn.10001c7dc
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x70]
lea rdx, [0x100015ab8]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp eax, ebx
je 0x1000a1776
cmp eax, 0xea
jne 0x1000a1729
mov esi, dword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
cmp rax, rbx
jne 0x1000a163e
mov ebx, 0x8007000e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a1716
test byte [rcx + 0x1c], 1
je 0x1000a1716
cmp byte [rcx + 0x19], 4
jb 0x1000a1716
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x2f
call fcn.10001c7b8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a16d9
test byte [rcx + 0x1c], 1
je 0x1000a16d9
cmp byte [rcx + 0x19], 2
jb 0x1000a16d9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x2e
mov r9d, ebx
call fcn.10001c7dc
jmp 0x1000a16d9
cmp dword [rsp + 0x70], 7
je 0x1000a1787
mov ebx, 0x8000ffff
jmp 0x1000a16d9
mov eax, dword [rsp + 0x68]
mov qword [r12], rdi
mov rdi, rbx
mov dword [rbp], eax
jmp 0x1000a16d9
Function at 0x1000a1840
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov qword [rax + 8], rbx
test rcx, rcx
jne 0x1000a187a
lea r8, [0x10000a430]
lea rcx, [0x10000a2b8]
mov edx, 0x614
call fcn.100099ad8
and qword [rsi], rbx
mov edi, 0x208
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x1000a189a
mov edi, 0x8007000e
jmp 0x1000a18f4
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov edx, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test eax, eax
js 0x1000a18dd
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.10009b37c
mov edi, eax
test eax, eax
js 0x1000a18d8
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
jmp 0x1000a18dd
mov rbx, qword [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x1000a18f4
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1000a1f58
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
mov ebp, r8d
mov rdi, rcx
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
lea r14, [0x1000039e8]
cmp rcx, r13
je 0x1000a1fb2
test byte [rcx + 0x1c], 1
je 0x1000a1fb2
cmp byte [rcx + 0x19], 4
jb 0x1000a1fb2
mov rcx, qword [rcx + 0x10]
mov edx, 0x5d
mov r8, r14
call fcn.10001c7b8
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rsi, rax
cmp rdi, rbx
jne 0x1000a1fda
lea r8, [0x10000a5b0]
lea rcx, [0x10000a2b8]
mov edx, 0x767
call fcn.100099ad8
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
jne 0x1000a2043
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a2192
test byte [rcx + 0x1c], 1
je 0x1000a2170
cmp byte [rcx + 0x19], 2
jb 0x1000a2170
mov rcx, qword [rcx + 0x10]
mov edx, 0x5e
mov r9d, eax
mov r8, r14
call fcn.10001c7dc
jmp 0x1000a2169
mov eax, dword [rsp + 0x24]
cmp eax, 1
jne 0x1000a208a
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a2192
test byte [rcx + 0x1c], al
je 0x1000a2170
cmp byte [rcx + 0x19], 4
jb 0x1000a2170
lea edx, [rax + 0x5e]
mov rcx, qword [rcx + 0x10]
lea r9, [0x10000a5a0]
mov r8, r14
call fcn.10001da24
jmp 0x1000a2169
mov r15d, 0x1388
cmp eax, 3
je 0x1000a209a
cmp eax, 4
jne 0x1000a20df
mov ecx, dword [rsp + 0x38]
cmp ecx, r15d
cmovb ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
je 0x1000a214f
cmp dword [rsp + 0x24], 1
je 0x1000a212d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r11, rax
sub r11, rsi
cmp r11, rbp
ja 0x1000a20f6
mov eax, dword [rsp + 0x24]
jmp 0x1000a2090
mov rcx, qword [0x1001653b8]
cmp eax, 1
je 0x1000a2170
mov ebx, 0x80780129
jmp 0x1000a2170
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a2126
test byte [rcx + 0x1c], 1
je 0x1000a2126
cmp byte [rcx + 0x19], 2
jb 0x1000a2126
mov rcx, qword [rcx + 0x10]
mov edx, 0x61
mov r8, r14
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
mov ebx, 0x800705b4
jmp 0x1000a2170
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a2192
test byte [rcx + 0x1c], 1
je 0x1000a2170
cmp byte [rcx + 0x19], 4
jb 0x1000a2170
mov edx, 0x60
jmp 0x1000a2072
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a2192
test byte [rcx + 0x1c], 1
je 0x1000a2192
cmp byte [rcx + 0x19], 4
jb 0x1000a2192
mov rcx, qword [rcx + 0x10]
mov edx, 0x62
mov r8, r14
call fcn.10001c7b8
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x1000a2b18
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000a2b68
test byte [rcx + 0x1c], 1
je 0x1000a2b68
cmp byte [rcx + 0x19], 4
jb 0x1000a2b68
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x8c
call fcn.10001c7b8
test rsi, rsi
jne 0x1000a2b85
lea r8, [0x10000a5e0]
lea rcx, [0x10000a2b8]
mov edx, 0xa3a
call fcn.100099ad8
and qword [rsi], 0
mov ebx, 0x28
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x1000a2ba9
mov ebx, 0x8007000e
jmp 0x1000a2cb9
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor ebx, ebx
mov rdx, rdi
lea ecx, [rbx + 0x14]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
cmp eax, 0x14
jbe 0x1000a2c7d
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r11, rbp
mov eax, 0xffffffff
add r11, r11
cmp r11, rax
jbe 0x1000a2bf2
mov ebx, 0x80070216
jmp 0x1000a2cce
mov ecx, r11d
mov ebx, r11d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x1000a2b9f
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rdx, rdi
mov ecx, ebp
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebp
ja 0x1000a2c2c
test eax, eax
jne 0x1000a2cb4
test eax, eax
jne 0x1000a2c46
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000a2c4b
mov ebx, 0x8007000e
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a2cc0
test byte [rcx + 0x1c], 1
je 0x1000a2cc0
cmp byte [rcx + 0x19], 2
jb 0x1000a2cc0
mov edx, 0x8d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov r9d, ebx
call fcn.10001c7dc
jmp 0x1000a2cb9
test eax, eax
jne 0x1000a2cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a2cc0
test byte [rcx + 0x1c], 1
je 0x1000a2cc0
cmp byte [rcx + 0x19], 2
jb 0x1000a2cc0
mov edx, 0x8e
jmp 0x1000a2c68
mov qword [rsi], rdi
xor edi, edi
mov rcx, qword [0x1001653b8]
test rdi, rdi
je 0x1000a2cd5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000a2cfb
test byte [rcx + 0x1c], 1
je 0x1000a2cfb
cmp byte [rcx + 0x19], 4
jb 0x1000a2cfb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x8f
call fcn.10001c7b8
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r13
ret