joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075730
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rdx
xor edx, edx
mov rsi, r8
mov ebx, edx
mov edi, edx
mov dword [rbp + 0x48], edx
mov r15d, edx
mov dword [rbp + 0x30], edx
mov r14, rcx
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140075796
test byte [rcx + 0x1c], 2
je 0x140075796
cmp byte [rcx + 0x19], 5
jb 0x140075796
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x19]
lea r8, [0x1400053d0]
call fcn.14000e618
xor edx, edx
cmp dx, word [r14]
jne 0x1400757a6
mov eax, 0x57
jmp 0x14007594b
lea rax, [rbp - 0x10]
lea r9, [rbp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140075825
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov ebx, eax
mov rax, rdi
cmove ebx, eax
test ebx, ebx
je 0x140075825
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140075935
test byte [rcx + 0x1c], 2
je 0x140075935
cmp byte [rcx + 0x19], 2
jb 0x140075935
mov edx, 0x1a
jmp 0x140075912
mov ecx, dword [rbp + 0x48]
call fcn.140072274
mov rdi, rax
test rax, rax
jne 0x14007586f
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140075935
test byte [rcx + 0x1c], 2
je 0x140075935
cmp byte [rcx + 0x19], 2
jb 0x140075935
mov r9d, dword [rbp + 0x48]
lea edx, [rdi + 0x1b]
jmp 0x140075915
mov ecx, dword [rbp + 0x30]
add rcx, rcx
call fcn.140072274
mov r15, rax
test rax, rax
jne 0x1400758b9
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140075935
test byte [rcx + 0x1c], 2
je 0x140075935
cmp byte [rcx + 0x19], 2
jb 0x140075935
mov r9d, dword [rbp + 0x30]
lea edx, [rbx + 0x14]
jmp 0x140075915
lea rax, [rbp - 0x10]
lea r9, [rbp + 0x48]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140075927
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140075935
test byte [rcx + 0x1c], 2
je 0x140075935
cmp byte [rcx + 0x19], 2
jb 0x140075935
mov edx, 0x1d
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400053d0]
call fcn.14000e63c
jmp 0x140075935
mov qword [r12], rdi
test rsi, rsi
je 0x140075935
mov eax, dword [rbp - 0x10]
mov dword [rsi], eax
mov rcx, r15
call fcn.140072328
test ebx, ebx
je 0x140075949
mov rcx, rdi
call fcn.140072328
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140075fac
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov r14d, r9d
mov rsi, r8
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 2
jne 0x140076032
lea r9d, [rax + 2]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov dword [rsi], r14d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x14007602b
lea rcx, [0x140005620]
jmp 0x140076044
mov eax, 1
jmp 0x140076059
test eax, eax
jne 0x14007603d
cmp dword [rsp + 0x34], 4
je 0x14007602b
lea rcx, [0x140005710]
mov r8d, eax
mov rdx, rdi
call fcn.1400782c8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14007607c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov rsi, r8
mov qword [r11 - 0x30], rax
lea r9, [rbp - 0x10]
xor ebx, ebx
and qword [r11 - 0x38], rbx
xor r8d, r8d
mov rdi, rdx
mov r14, rcx
mov dword [rbp - 0x10], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400760fd
cmp eax, 2
jne 0x1400760d2
lea ecx, [rbx + 1]
mov dword [rbp + 0x38], ecx
jmp 0x140076115
lea rcx, [0x140005540]
mov edx, eax
call fcn.1400782c8
mov rcx, rbx
call fcn.140072328
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
cmp dword [rbp - 0x10], 3
jne 0x1400760e8
mov eax, dword [rbp + 0x38]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov ecx, eax
mov dword [rbp + 0x38], eax
inc ecx
call fcn.140072274
mov rbx, rax
test rax, rax
je 0x1400760e0
lea rax, [rbp + 0x38]
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x38]
mov byte [rcx + rbx], 0
test eax, eax
je 0x140076195
cmp eax, 2
jne 0x1400760d2
mov eax, dword [rbp + 0x38]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140076195
lea rcx, [0x140005620]
mov r8d, eax
mov rdx, rdi
call fcn.1400782c8
jmp 0x1400760e0
test rsi, rsi
je 0x14007619f
mov eax, dword [rbp + 0x38]
mov dword [rsi], eax
mov rax, rbx
jmp 0x1400760ea
Function at 0x1400761b0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9d, 4
xor r8d, r8d
mov dword [r11 - 0x10], r9d
mov qword [r11 - 0x18], rax
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140076202
lea rcx, [0x140005620]
mov r8d, eax
mov rdx, rdi
call fcn.1400782c8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140076207
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140076218
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
sub rsp, 0x30
test r9d, r9d
mov dword [r11 - 0x10], r9d
lea rax, [r11 + 0x20]
cmovne rax, r8
mov r9d, 3
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov rbx, rdx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140076263
lea rcx, [0x140005620]
mov r8d, eax
mov rdx, rbx
call fcn.1400782c8
xor eax, eax
jmp 0x140076268
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140076274
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, r8
test r9, r9
je 0x1400762a0
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], di
jne 0x14007628c
lea rax, [rax*2 + 2]
jmp 0x1400762a3
mov rax, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, edx
mov rdx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400762d5
lea rcx, [0x140005620]
mov r8d, eax
mov rdx, rbx
call fcn.1400782c8
xor eax, eax
jmp 0x1400762da
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400762ec
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
xor ebx, ebx
mov eax, r8d
mov r15, r9
and dword [rsp + 0x60], ebx
xor ebp, ebp
neg eax
sbb r14d, r14d
mov r12d, r8d
and r14d, 6
lea r9d, [r14 + 0x20019]
call fcn.140075c60
mov rdi, rax
test rax, rax
je 0x140076478
and qword [rsp + 0x58], rbx
and qword [rsp + 0x50], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], rbx
and qword [rsp + 0x38], rbx
and qword [rsp + 0x30], rbx
lea rax, [rsp + 0xb0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14007638f
lea rcx, [0x140005760]
jmp 0x140076468
mov rcx, r15
call qword [fcn.14002c9e0]
mov r9, qword [rsp + 0xc0]
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov rcx, rdi
call r15
test eax, eax
je 0x14007646f
mov eax, dword [rsp + 0xb0]
add eax, 4
mov dword [rsp + 0xb0], eax
cmp eax, 0x7ffffffe
ja 0x14007646f
lea ecx, [rax + 1]
add rcx, rcx
call fcn.140072274
mov rbx, rax
test rax, rax
je 0x14007646f
mov r8, rax
xor edx, edx
mov r9d, dword [rsp + 0xb0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14007645a
lea r9d, [r14 + 0x20019]
mov r8d, r12d
mov rdx, rbx
mov rcx, rdi
call fcn.140075c60
mov rsi, rax
test rax, rax
je 0x14007644b
mov rcx, r15
call qword [fcn.14002c9e0]
mov r9, qword [rsp + 0xc0]
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call r15
mov rcx, rsi
test eax, eax
je 0x140076452
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov r8, rbx
mov edx, ebp
jmp 0x1400763ed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007646f
cmp eax, 0x103
je 0x14007646f
lea rcx, [0x1400057a0]
mov edx, eax
call fcn.1400782c8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140072328
lea r11, [rsp + 0x70]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400764a4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14007650c
test byte [rcx + 0x1c], 2
je 0x14007650c
cmp byte [rcx + 0x19], 5
jb 0x14007650c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005908]
mov edx, 0xa
call fcn.14000e618
lea rax, [rsp + 0x48]
mov r9d, 0x3001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x14007657b
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140076679
test byte [rcx + 0x1c], 2
je 0x140076679
cmp byte [rcx + 0x19], 2
jb 0x140076679
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005908]
mov r9d, ebx
call fcn.14000e63c
jmp 0x140076679
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
jmp 0x1400765be
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.1400764a4
xor ecx, ecx
test eax, eax
je 0x140076681
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x140076591
cmp eax, 0x103
jne 0x140076637
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x140076630
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140076679
test byte [rcx + 0x1c], 2
je 0x140076679
cmp byte [rcx + 0x19], 2
jb 0x140076679
mov edx, 0xd
jmp 0x140076563
mov eax, 1
jmp 0x140076683
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14007666e
test byte [rcx + 0x1c], 2
je 0x14007666e
cmp byte [rcx + 0x19], 2
jb 0x14007666e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005908]
mov edx, 0xc
mov r9d, ebx
call fcn.14000e63c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140088640
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400766ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r15
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov dword [rax + 0x20], 4
mov rcx, qword [str.___t_]
lea r15, str.___t_
cmp rcx, r15
je 0x140076707
test byte [rcx + 0x1c], 2
je 0x140076707
cmp byte [rcx + 0x19], 5
jb 0x140076707
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005908]
mov edx, 0xe
call fcn.14000e618
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14007675f
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400767f3
test byte [rcx + 0x1c], 2
je 0x1400767f3
cmp byte [rcx + 0x19], 2
jb 0x1400767f3
mov edx, 0xf
jmp 0x1400767e0
cmp dword [rsp + 0x78], 4
je 0x14007679a
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140076793
test byte [rcx + 0x1c], 2
je 0x140076793
cmp byte [rcx + 0x19], 2
jb 0x140076793
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005908]
mov edx, 0x10
call fcn.14000e618
mov ebx, 0x3f1
jmp 0x1400767f3
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400767f3
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400767f3
test byte [rcx + 0x1c], 2
je 0x1400767f3
cmp byte [rcx + 0x19], 2
jb 0x1400767f3
mov edx, 0x11
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005908]
mov r9d, eax
call fcn.14000e63c
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
Function at 0x140076eb8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbp
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebp, ebp
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov dword [rsp + 0x20], ebp
call sub.msvcrt.dll_memset
mov rcx, qword [str.___t_]
lea rdi, str.___t_
cmp rcx, rdi
je 0x140076f21
test byte [rcx + 0x1c], 2
je 0x140076f21
cmp byte [rcx + 0x19], 5
jb 0x140076f21
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0xa]
lea r8, [0x140005a48]
call fcn.14000e618
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140076f7c
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140076f75
test byte [rax + 0x1c], 2
je 0x140076f75
cmp byte [rax + 0x19], 2
jb 0x140076f75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140005a48]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xc
call fcn.14000e63c
xor eax, eax
jmp 0x14007705a
cmp dword [rsp + 0x30], 2
je 0x140076fb2
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140076f75
test byte [rcx + 0x1c], 2
je 0x140076f75
cmp byte [rcx + 0x19], 3
jb 0x140076f75
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005a48]
call fcn.14000e618
jmp 0x140076f75
cmp dword [rsp + 0x24], 5
jae 0x140076fd8
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140076f75
test byte [rcx + 0x1c], 2
je 0x140076f75
cmp byte [rcx + 0x19], 3
jb 0x140076f75
mov edx, 0xe
jmp 0x140076fa0
mov cl, byte [rsp + 0x138]
mov eax, 0x40
test al, cl
je 0x140076ff8
cmp byte [rsp + 0x13a], 1
lea ecx, [rax - 0x20]
cmove eax, ecx
jmp 0x14007705a
mov eax, 0x200
test word [rsp + 0x138], ax
je 0x14007700e
mov eax, 1
jmp 0x14007705a
test cl, 2
je 0x14007701a
mov eax, 8
jmp 0x14007705a
mov eax, 0x80
test al, cl
je 0x14007702a
mov eax, 0x10
jmp 0x14007705a
mov ecx, 0x400
test word [rsp + 0x138], cx
jne 0x14007705a
mov cl, byte [rsp + 0x13a]
cmp cl, 1
jne 0x14007704c
mov eax, 2
jmp 0x14007705a
sub cl, 2
mov eax, 4
cmp cl, 1
cmova eax, ebp
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140088640
mov rbp, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x140078124
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, 0x206
lea rcx, [rsp + 0x42]
xor edi, edi
mov r8d, ebx
xor edx, edx
mov word [rsp + 0x40], di
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x252]
mov r8d, ebx
xor edx, edx
mov word [rsp + 0x250], di
call sub.msvcrt.dll_memset
cmp qword [0x140096c38], 0xffffffffffffffff
je 0x140078190
lock inc dword [0x14009a768]
mov eax, 1
jmp 0x140078209
mov ebx, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [0x140002b00]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x140078207
lea rcx, [rsp + 0x40]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x14007822a
lea rdx, [rsp + 0x250]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140078207
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x250]
lea r8, [0x140002a68]
lea rcx, [0x14009a560]
mov edx, ebx
mov qword [rsp + 0x20], rax
call fcn.14001000c
test eax, eax
jns 0x140078240
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140088640
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rdi
ret
lea r8, [rsp + 0x40]
lea rcx, [0x14009a560]
mov rdx, rbx
call fcn.14001008c
jmp 0x140078203
lea rcx, [0x14009a560]
or ebx, 0xffffffff
mov edx, 0x40000000
mov r8d, 3
mov dword [rsp + 0x28], 0x80
mov dword [0x140096c30], ebx
mov dword [rsp + 0x20], 4
call fcn.140074d38
mov qword [0x140096c38], rax
cmp rax, 0xffffffffffffffff
je 0x140078207
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x1400782af
mov rcx, qword [0x140096c38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x140096c38], 0xffffffffffffffff
jmp 0x140078207
mov eax, 1
xchg dword [0x14009a768], eax
jmp 0x140078189
Function at 0x1400782c8
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rdi
lea rbp, [rax - 0x778]
sub rsp, 0x860
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov rbx, rcx
lea rcx, [rsp + 0x52]
xor edi, edi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x50], di
call sub.msvcrt.dll_memset
cmp dword [0x14009a55c], edi
jne 0x1400783c1
lea rax, [rsp + 0x40]
lea rdx, [0x140002a88]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140078354
mov eax, edi
jmp 0x1400783a8
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [0x140005a68]
xor r8d, r8d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140078395
cmp dword [rsp + 0x34], 4
je 0x140078399
mov dword [rsp + 0x30], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rbp + 0x780]
mov dword [0x140096c40], eax
mov dword [0x14009a55c], 1
jmp 0x1400783c7
mov eax, dword [0x140096c40]
test eax, eax
jle 0x14007845e
mov r8, rbx
mov ebx, 0x3ff
lea r9, [rbp + 0x788]
lea rcx, [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.msvcrt.dll__vsnwprintf]
test eax, eax
js 0x14007845e
cdqe
cmp rax, rbx
ja 0x14007845e
jne 0x1400783ff
mov word [rbp + 0x74e], di
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140078408
mov edx, 0x3fd
mov r8d, 0xa
cmp rax, rdx
cmovb edx, eax
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x50], r8w
je 0x140078453
lea ecx, [r8 + 3]
lea eax, [rdx + 1]
mov word [rsp + rdx*2 + 0x50], cx
lea ecx, [rdx + 2]
mov word [rsp + rax*2 + 0x50], r8w
add rcx, rcx
cmp rcx, 0x800
jae 0x140078478
mov word [rsp + rcx + 0x50], di
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140088640
add rsp, 0x860
pop rdi
pop rbx
pop rbp
ret
call fcn.1400888b8
int3
Function at 0x140078870
Capabilities:
Query service status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13d, dword [rsp + 0xc8]
mov r14, qword [rsp + 0xd0]
xor edi, edi
xor ebx, ebx
mov rbp, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400788e2
test byte [rcx + 0x1c], 2
je 0x1400788e2
cmp byte [rcx + 0x19], 5
jb 0x1400788e2
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x140005aa0]
call fcn.14000e618
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140078934
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400789dd
test byte [rcx + 0x1c], 2
je 0x1400789dd
cmp byte [rcx + 0x19], 2
jb 0x1400789dd
lea edx, [rsi + 0xb]
jmp 0x1400789ba
mov r8d, r13d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140078977
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400789dd
test byte [rcx + 0x1c], 2
je 0x1400789dd
cmp byte [rcx + 0x19], 2
jb 0x1400789dd
lea edx, [rdi + 0xc]
jmp 0x1400789ba
test r14, r14
je 0x1400789d6
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400789cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400789dd
test byte [rcx + 0x1c], 2
je 0x1400789dd
cmp byte [rcx + 0x19], 2
jb 0x1400789dd
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005aa0]
mov r9d, ebx
call fcn.14000e63c
jmp 0x1400789dd
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
mov qword [r15], rsi
mov qword [rbp], rdi
test ebx, ebx
je 0x1400789ec
mov rdx, rdi
mov rcx, rsi
call fcn.140078a14
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140088640
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140078b18
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x140078b61
test byte [rcx + 0x1c], 2
je 0x140078b61
cmp byte [rcx + 0x19], 5
jb 0x140078b61
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005aa0]
mov edx, 0x11
call fcn.14000e618
lea r8, [0x140005ab0]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
jne 0x140078c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140078bcd
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140078bc6
test byte [rax + 0x1c], 2
je 0x140078bc6
cmp byte [rax + 0x19], 2
jb 0x140078bc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x12
mov rcx, qword [str.___t_]
lea r8, [0x140005aa0]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
xor eax, eax
jmp 0x140078c6c
call fcn.14007993c
mov rbx, rax
test rax, rax
jne 0x140078bfd
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140078bc6
test byte [rax + 0x1c], 2
je 0x140078bc6
cmp byte [rax + 0x19], 2
jb 0x140078bc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rbx + 0x13]
jmp 0x140078bac
xor r8d, r8d
lea r9, [0x140005ab0]
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x140078c54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140078c54
test byte [rcx + 0x1c], 2
je 0x140078c54
cmp byte [rcx + 0x19], 2
jb 0x140078c54
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x14]
lea r8, [0x140005aa0]
mov r9d, eax
call fcn.14000e63c
mov rcx, rbx
call fcn.140079e24
test rdi, rdi
jne 0x140078c69
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret