joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100033820
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x100083138]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, 1
lea edx, [rbx + 0x7f]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000338a9
mov rcx, qword [rdi]
lea r9, [rsp + 0x20]
lea rdx, [0x10000bd08]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100033896
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x100033899
mov rcx, qword [rdi]
mov r8d, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor bl, bl
mov al, bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10006bd80
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret

Function at 0x1000338d4
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x100083138]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
mov dword [rsp + 0x60], eax
je 0x10003397e
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.10006bd80
add rsp, 0x88
ret
Function at 0x100033d10
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x100083138]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
mov ebx, 6
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100033dca
cmp dword [rsp + 0x30], 2
jne 0x100033da8
mov eax, dword [rsp + 0x24]
cmp eax, 4
ja 0x100033d70
mov ebx, 1
jmp 0x100033dca
cmp eax, 5
jne 0x100033d96
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x100033d82
lea ebx, [rax + 2]
jmp 0x100033dca
cmp eax, 1
jne 0x100033d8c
lea ebx, [rax + 2]
jmp 0x100033dca
cmp eax, 2
jne 0x100033dca
lea ebx, [rax + 2]
jmp 0x100033dca
cmp eax, ebx
jne 0x100033dca
cmp dword [rsp + 0x28], 0
jne 0x100033dca
mov ebx, 5
jmp 0x100033dca
cmp dword [rsp + 0x30], 1
jne 0x100033dca
cmp dword [rsp + 0x24], 4
jne 0x100033dca
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x100033dc8
cmp eax, 0xa
je 0x100033dc8
cmp eax, 0x5a
jne 0x100033dca
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10006bd80
add rsp, 0x150
pop rbx
ret
Function at 0x100034e44
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rbp, rcx
test rcx, rcx
jne 0x100034e72
lea eax, [rcx + 0x57]
jmp 0x100034fc2
lea rcx, [rsp + 0x40]
call fcn.100020360
nop
mov rbx, qword [rsp + 0x40]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov edi, 0x105
sub eax, edi
or eax, ecx
jge 0x100034ea9
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.100020154
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0xc], edi
jl 0x100034fb7
mov dword [rbx - 0x10], edi
and word [rbx + 0x20a], 0
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movsxd rsi, eax
cmp esi, dword [rbx - 0x10]
jbe 0x100034f4f
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x100034f44
cmp ecx, dword [rbx - 0xc]
jg 0x100034f44
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
and word [rbx + rax*2], 0
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x100034f19
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.100020154
mov rbx, qword [rsp + 0x40]
test esi, esi
js 0x100034f39
cmp esi, dword [rbx - 0xc]
jg 0x100034f39
mov dword [rbx - 0x10], esi
and word [rbx + rsi*2], 0
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
jmp 0x100034f4f
mov ecx, 0x80070057
call fcn.1000201f8
int3
mov ecx, 0x80070057
call fcn.1000201f8
int3
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x100034fac
cmp ecx, dword [rbx - 0xc]
jg 0x100034fac
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
and word [rbx + rax*2], 0
test esi, esi
jne 0x100034f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x40]
call fcn.10002006c
mov eax, edi
jmp 0x100034fc2
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.10001f050
nop
lea rcx, [rsp + 0x40]
call fcn.10002006c
xor eax, eax
jmp 0x100034fc2
mov ecx, 0x80070057
call fcn.1000201f8
int3
mov ecx, 0x80070057
call fcn.1000201f8
nop
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1000351f4
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
mov rax, qword [0x100083138]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8d, 6
lea rdx, [rsp + 0x28]
lea rcx, [0x10000bd48]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10003524d
cmp eax, 6
ja 0x10003524d
cmp word [rsp + 0x28], 0x31
je 0x100035234
xor eax, eax
jmp 0x10003524f
and dword [rsp + 0x20], 0
movzx eax, byte [0x7ffe02d4]
mov dword [rsp + 0x20], eax
jmp 0x10003524b
jmp 0x10003524f
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.10006bd80
add rsp, 0x48
ret
Function at 0x100035bd0
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x58]
call fcn.100020360
nop
mov rax, qword [rdi]
cmp dword [rax - 0x10], ebx
jne 0x100035c06
jmp 0x100035cbe
lea rdx, [0x10000bd90]
lea rcx, [rsp + 0x60]
call fcn.100020428
nop
lea r8, [rsp + 0x58]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.100032a84
nop
lea rcx, [rsp + 0x60]
call fcn.10002006c
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100035cb9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [0x10000bd90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100035cbe
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, 1
cmp eax, ebx
cmove ebx, ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100035cbe
mov ebx, 1
lea rcx, [rsp + 0x58]
call fcn.10002006c
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x10003d268
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x50], 4
call fcn.10003e454
xor ebx, ebx
cmp eax, ebx
jne 0x10003d294
xor eax, eax
jmp 0x10003d2c1
mov rcx, qword [rdi + 0x20]
lea rax, [rsp + 0x50]
lea rdx, [0x100005e70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x10003d77c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.10003e454
test eax, eax
jne 0x10003d7a1
xor eax, eax
jmp 0x10003d80a
mov rcx, qword [rsi + 0x20]
lea rdx, [0x10000e438]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003d79d
mov ecx, dword [rdi]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
test rax, rax
mov qword [rbx], rax
je 0x10003d79d
mov rcx, qword [rsi + 0x20]
lea rdx, [0x10000e438]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10003d805
mov rcx, qword [rbx]
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x10003d79d
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x10003d820
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x28], 0
jne 0x10003d861
mov rcx, rdx
call fcn.10002006c
nop
mov esi, 0x10a
jmp 0x10003d95c
lea rcx, [rsp + 0x50]
call fcn.100020360
nop
mov rax, qword [rdi]
cmp dword [rax - 0x10], 0
je 0x10003d988
mov rax, qword [rbp]
cmp dword [rax - 0x10], 0
je 0x10003d988
mov rcx, rdi
call fcn.100032d64
test al, al
jne 0x10003d8b1
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
mov rcx, rdi
call fcn.10002006c
nop
mov esi, 2
jmp 0x10003d95c
lea rcx, [rbx + 0x10]
lea r8, [rsp + 0x50]
mov rdx, rbp
call fcn.100032a84
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1000696ec
mov esi, eax
test eax, eax
je 0x10003d8eb
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
mov rcx, rdi
call fcn.10002006c
nop
jmp 0x10003d95c
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10003d968
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 5
jne 0x10003d948
lea edx, [rax + 0x7b]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10003d968
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
mov rcx, rdi
call fcn.10002006c
nop
jmp 0x10003d95c
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
mov rcx, rdi
call fcn.10002006c
nop
mov rcx, rbp
call fcn.10002006c
mov eax, esi
jmp 0x10003d9a9
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
mov rcx, rdi
call fcn.10002006c
nop
mov rcx, rbp
call fcn.10002006c
xor eax, eax
jmp 0x10003d9a9
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
mov rcx, rdi
call fcn.10002006c
nop
mov rcx, rbp
call fcn.10002006c
mov eax, 0x57
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x10003de70
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov edi, edx
mov r12, rcx
lea rax, [r11 + 0x18]
mov qword [r11 + 0x20], rax
lea rdx, [0x100005e70]
lea rcx, [r11 + 0x18]
call fcn.100020428
mov rbp, rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x78], edi
mov rcx, r12
call fcn.10003e454
xor ebx, ebx
cmp eax, ebx
jne 0x10003deca
mov rcx, rbp
call fcn.10002006c
jmp 0x10003df77
mov rdx, qword [rbp]
xor eax, eax
lea rdi, [0x100005e70]
mov rsi, rdx
lea ecx, [rax + 5]
repe cmpsw word [rsi], word [rdi]
je 0x10003dee7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003df1c
xor eax, eax
lea rdi, [0x10000e450]
mov rsi, rdx
lea ecx, [rax + 0x15]
repe cmpsw word [rsi], word [rdi]
je 0x10003df09
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003df1c
mov rcx, rbp
call fcn.10002006c
jmp 0x10003df77
lea rax, [rdx - 0x18]
cmp dword [rax + 0x10], 1
jle 0x10003df39
mov edx, dword [rax + 8]
mov rcx, rbp
call fcn.10002009c
mov rax, qword [rbp]
sub rax, 0x18
add dword [rax + 0x10], 0xffffffff
jne 0x10003df43
or dword [rax + 0x10], 0xffffffff
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov rcx, rbp
call fcn.10002006c
mov eax, ebx
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10003dfd0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbp, r8
mov r12, rdx
mov r13, rcx
call fcn.10003e454
xor ebx, ebx
cmp eax, ebx
jne 0x10003e01f
mov rcx, r12
call fcn.10002006c
nop
mov rcx, rbp
call fcn.10002006c
xor eax, eax
jmp 0x10003e213
xor eax, eax
lea rdi, [0x1000055d8]
mov rsi, qword [r12]
lea ecx, [rax + 4]
repe cmpsw word [rsi], word [rdi]
je 0x10003e039
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x10003e0a8
lea rcx, [rsp + 0x88]
call fcn.100020360
nop
lea rcx, [r13 + 0x10]
lea r8, [rsp + 0x88]
mov rdx, rbp
call fcn.100032a84
lea rcx, [rsp + 0x88]
call fcn.100032d64
cmp al, bl
jne 0x10003e09b
lea rcx, [rsp + 0x88]
call fcn.10002006c
nop
mov rcx, r12
call fcn.10002006c
nop
mov rcx, rbp
call fcn.10002006c
xor eax, eax
jmp 0x10003e213
lea rcx, [rsp + 0x88]
call fcn.10002006c
xor eax, eax
lea rdi, [0x1000055d8]
mov rsi, qword [r12]
lea ecx, [rax + 4]
repe cmpsw word [rsi], word [rdi]
je 0x10003e0c2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003e17a
xor eax, eax
lea rdi, [0x10000e358]
mov rsi, qword [r12]
lea edx, [rax + 0xc]
mov rcx, rdx
repe cmpsw word [rsi], word [rdi]
je 0x10003e0ec
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003e17a
xor eax, eax
lea rdi, [0x10000e370]
mov rsi, qword [r12]
lea ecx, [rax + 0x11]
repe cmpsw word [rsi], word [rdi]
je 0x10003e113
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003e17a
xor eax, eax
lea rdi, [0x10000be18]
mov rsi, qword [r12]
mov rcx, rdx
repe cmpsw word [rsi], word [rdi]
je 0x10003e136
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003e17a
xor eax, eax
lea rdi, [0x10000e398]
mov rsi, qword [r12]
lea ecx, [rax + 0x12]
repe cmpsw word [rsi], word [rdi]
je 0x10003e159
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003e17a
mov rcx, r12
call fcn.10002006c
nop
mov rcx, rbp
call fcn.10002006c
xor eax, eax
jmp 0x10003e213
mov rax, qword [rbp]
mov esi, dword [rax - 0x10]
add rax, 0xffffffffffffffe8
cmp dword [rax + 0x10], 1
jle 0x10003e19e
mov edx, dword [rax + 8]
mov rcx, rbp
call fcn.10002009c
mov rax, qword [rbp]
sub rax, 0x18
add dword [rax + 0x10], 0xffffffff
jne 0x10003e1a8
or dword [rax + 0x10], 0xffffffff
mov rdi, qword [rbp]
mov rax, qword [r12]
sub rax, 0x18
cmp dword [rax + 0x10], 1
jle 0x10003e1cd
mov edx, dword [rax + 8]
mov rcx, r12
call fcn.10002009c
mov rax, qword [r12]
sub rax, 0x18
add dword [rax + 0x10], 0xffffffff
jne 0x10003e1d7
or dword [rax + 0x10], 0xffffffff
lea eax, [rsi + rsi + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov rcx, r12
call fcn.10002006c
nop
mov rcx, rbp
call fcn.10002006c
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10003e294
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r12, r8
mov rbp, rdx
mov r13, rcx
call fcn.10003e454
xor ebx, ebx
cmp eax, ebx
jne 0x10003e2cb
jmp 0x10003e410
mov rdx, qword [rbp]
xor eax, eax
lea rdi, [0x10000e3c0]
mov rsi, rdx
lea ecx, [rax + 9]
repe cmpsw word [rsi], word [rdi]
je 0x10003e2e8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003e35b
xor eax, eax
lea rdi, [0x10000e3d8]
mov rsi, rdx
lea ecx, [rax + 0x13]
repe cmpsw word [rsi], word [rdi]
je 0x10003e30a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003e35b
xor eax, eax
lea rdi, [0x10000c320]
mov rsi, rdx
lea ecx, [rax + 0x17]
repe cmpsw word [rsi], word [rdi]
je 0x10003e32c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003e35b
xor eax, eax
lea rdi, [0x10000e400]
mov rsi, rdx
lea ecx, [rax + 0x19]
repe cmpsw word [rsi], word [rdi]
je 0x10003e34e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x10003e410
cmp qword [r12 + 0x10], rbx
jne 0x10003e38c
cmp dword [rdx - 8], 1
jle 0x10003e373
mov edx, dword [rdx - 0x10]
mov rcx, rbp
call fcn.10002009c
mov rdx, qword [rbp]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov ebx, 1
jmp 0x10003e410
mov dword [rsp + 0x88], ebx
lea rdx, [rsp + 0x88]
mov rcx, r12
call fcn.100035004
mov rsi, rax
cmp rax, rbx
je 0x10003e410
mov rcx, qword [rbp]
sub rcx, 0x18
cmp dword [rcx + 0x10], 1
jle 0x10003e3cc
mov edx, dword [rcx + 8]
mov rcx, rbp
call fcn.10002009c
mov rcx, qword [rbp]
sub rcx, 0x18
add dword [rcx + 0x10], 0xffffffff
jne 0x10003e3d6
or dword [rcx + 0x10], 0xffffffff
mov eax, dword [rsp + 0x88]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp edi, ebx
sete bl
jmp 0x10003e410
mov rcx, rbp
call fcn.10002006c
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10003ef94
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rbp, r8
mov rsi, rdx
mov r12, rcx
and qword [rax - 0x48], 0
lea rcx, [rax - 0x40]
call fcn.100020360
nop
lea rdx, [0x10000e4f0]
lea rcx, [rsp + 0x60]
call fcn.100020428
nop
lea r8, [rsp + 0x58]
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.100032a84
test al, al
sete bl
lea rcx, [rsp + 0x60]
call fcn.10002006c
test bl, bl
je 0x10003f00b
mov ebx, 0x65b
jmp 0x10003f11e
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x10003f11e
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x10003f090
cmp eax, 2
jne 0x10003f11e
mov ebx, 0x490
jmp 0x10003f11e
mov eax, dword [rsp + 0xb8]
add eax, 4
mov dword [rsp + 0xb8], eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x10003f0bb
lea ebx, [rax + 8]
jmp 0x10003f110
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x10003f110
mov eax, dword [rsp + 0xb8]
shr rax, 1
and word [rdi + rax*2 - 4], bx
mov eax, dword [rsp + 0xb8]
shr rax, 1
and word [rdi + rax*2 - 2], bx
mov rdx, rdi
mov rcx, rbp
call fcn.10003cc14
test rdi, rdi
je 0x10003f11e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10003f12f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x58]
call fcn.10002006c
nop
mov rcx, r12
call fcn.10002006c
nop
mov rcx, rsi
call fcn.10002006c
mov eax, ebx
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1000400c8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rdi, rcx
lea rcx, [rsp + 0x78]
call fcn.100020360
nop
lea rcx, [rsp + 0x68]
call fcn.100020360
nop
lea rcx, [rsp + 0x70]
call fcn.100020360
nop
lea rcx, [rsp + 0x30]
call fcn.100020360
nop
lea rcx, [rsp + 0x28]
call fcn.100020360
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1000328c4
test al, al
je 0x1000401b6
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1000328c4
test al, al
je 0x1000401b6
lea rdx, [0x10000e4f0]
lea rcx, [rsp + 0x20]
call fcn.100020428
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x20]
call fcn.100032a84
test al, al
sete bl
lea rcx, [rsp + 0x20]
call fcn.10002006c
test bl, bl
je 0x100040188
mov ebx, 0x65b
jmp 0x1000401bb
mov rdx, qword [rsp + 0x68]
cmp dword [rdx - 8], 1
jle 0x1000401a5
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.10002009c
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1000401bb
mov ebx, 0x65b
lea rcx, [rsp + 0x28]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.10002006c
nop
lea rcx, [rsp + 0x70]
call fcn.10002006c
nop
lea rcx, [rsp + 0x68]
call fcn.10002006c
nop
lea rcx, [rsp + 0x78]
call fcn.10002006c
nop
mov rcx, rdi
call fcn.10002006c
mov eax, ebx
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x100040354
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp dword [rdx + 4], 1
mov rdi, rdx
mov rsi, rcx
je 0x1000403a0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1000403c0
add ebx, 0x1f4
cmp ebx, 0x2710
ja 0x1000403b5
cmp dword [rdi + 4], 1
jne 0x100040371
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x41d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000403a5