joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003550
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, ecx
mov rdi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x434
call fcn.180059db0
mov edx, ebx
mov ecx, 8
mov dword [rsp + 0x20], 0x438
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x1800035d9
cmp rax, 0xffffffffffffffff
je 0x1800035ed
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Module32FirstW
jmp 0x1800035d5
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.180004450
test eax, eax
je 0x1800035d9
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1800035b7
cmp rbx, 0xffffffffffffffff
je 0x1800035ed
test rbx, rbx
je 0x1800035ed
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180059760
mov rbx, qword [rsp + 0x490]
add rsp, 0x470
pop rdi
ret

Function at 0x180003610
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1800036ab
cmp rax, 0xffffffffffffffff
je 0x1800036ab
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.180059db0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1800036ab
mov rdx, rsi
lea rcx, [rsp + 0x30]
call rdi
test eax, eax
je 0x1800036ab
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x18000368c
cmp rbx, 0xffffffffffffffff
je 0x1800036bf
test rbx, rbx
je 0x1800036bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180059760
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800036e4
Capabilities:
Create process on windows

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 r12
sub rsp, 0xe0
xor r12d, r12d
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
cmp rcx, r12
jne 0x180003718
xor eax, eax
jmp 0x1800037d6
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], 0x68
lea r8d, [rdx + 0x60]
call fcn.180059db0
cmp esi, r12d
jne 0x180003749
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], r12w
xor eax, eax
mov rcx, rbp
mov rdi, r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], r12
call fcn.1800018b4
lea rcx, [rsp + 0x50]
neg esi
mov qword [rsp + 0x48], rcx
mov rbp, rax
sbb eax, eax
lea rcx, [rsp + 0x70]
not eax
xor r9d, r9d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
and eax, 0x8000000
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, r12d
je 0x1800037cb
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, r12
je 0x1800037cb
mov ecx, dword [rsp + 0x60]
mov dword [rbx], ecx
mov rcx, rbp
call fcn.18005a208
mov rax, rdi
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x180003be8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x110
xor edi, edi
mov ebp, edx
mov rsi, rcx
cmp rcx, rdi
je 0x180003dba
call fcn.180003ab4
lea rcx, [0x180003dd8]
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x68], eax
cmp rcx, rdi
je 0x180003dba
lea rdx, [rsp + 0x68]
call fcn.180003610
cmp dword [rsp + 0x70], edi
je 0x180003dba
mov r8d, dword [rsp + 0x6c]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, rdi
je 0x180003da6
cmp rax, 0xffffffffffffffff
je 0x180003dba
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, edi
je 0x180003d98
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x78], rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, edi
je 0x180003d8d
mov rcx, rsi
call fcn.1800018b4
lea r8d, [rdi + 0x60]
lea rcx, [rsp + 0xa8]
xor edx, edx
mov dword [rsp + 0xa0], 0x68
mov rsi, rax
call fcn.180059db0
mov dword [rsp + 0xdc], 1
cmp ebp, edi
je 0x180003cf1
lea eax, [rdi + 5]
mov word [rsp + 0xe0], ax
jmp 0x180003cf9
mov word [rsp + 0xe0], di
mov rcx, qword [rsp + 0x60]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
mov r8, rsi
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x420
xor edx, edx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, edi
je 0x180003d7a
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.18005a208
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x180003dbc
cmp rax, 0xffffffffffffffff
je 0x180003dba
cmp rax, rdi
je 0x180003dba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180004040
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
mov rbx, rax
cmp rax, rdi
je 0x1800040d4
cmp rax, 0xffffffffffffffff
je 0x1800040e8
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.180059db0
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, edi
jbe 0x1800040c7
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.180003238
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1800040ea
cmp rax, 0xffffffffffffffff
je 0x1800040e8
cmp rax, rdi
je 0x1800040e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180059760
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800045cc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
cmp rcx, rbx
je 0x180004631
mov eax, 0x5a4d
cmp ax, word [rcx]
jne 0x180004631
cmp dword [rcx + 0x3c], 0x400
jge 0x180004631
movsxd rdi, dword [rcx + 0x3c]
lea edx, [rbx + 8]
add rdi, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, ebx
jne 0x180004631
cmp dword [rdi], 0x4550
jne 0x180004631
cmp rsi, rbx
je 0x18000462a
mov eax, 0xf0
cmp word [rdi + 0x14], ax
sete bl
mov dword [rsi], ebx
mov eax, 1
jmp 0x180004633
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180004644
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rax, rdx
xor r9d, r9d
mov rbx, rcx
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1800046f6
lea rdx, [rbx + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800046f6
cmp qword [rbx + 0x18], 0
je 0x1800046f6
mov eax, 0x400000
cmp qword [rbx + 0x18], rax
jg 0x1800046ae
mov eax, dword [rbx + 0x18]
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [rbx + 0x20], eax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1800046f6
mov ecx, dword [rbx + 0x20]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rcx
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180004740
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
or qword [rax - 0x38], 0xffffffffffffffff
and qword [rax - 0x30], 0
and qword [rax - 0x28], 0
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004778
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.180004644
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800047a9
cmp qword [rsp + 0x38], 0x138
jbe 0x18000479c
mov rdx, rdi
call fcn.1800045cc
mov rcx, qword [rsp + 0x30]
jmp 0x18000479e
xor eax, eax
test eax, eax
je 0x1800047a9
mov ebx, 1
jmp 0x1800047ab
xor ebx, ebx
test rcx, rcx
je 0x1800047b6
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800047c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800047d7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800055e8
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 dword [r11 + 0x20], r9d
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
cmp dword [rsp + 0x70], ebx
je 0x180005651
lea rax, [r11 - 0x14]
lea r9, [r11 + 0x28]
mov dword [rsp + 0x30], ebx
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x18]
mov dword [rsp + 0x70], ebx
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x34], 4
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rsp + 0x70], 4
jne 0x180005651
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x30], eax
jne 0x180005651
lea eax, [rbx + 1]
jmp 0x18000567f
lea rax, [rsp + 0x68]
mov r9d, 4
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180005694
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov ebx, r9d
lea r9, [r11 - 0x14]
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x10]
mov dword [rsp + 0x30], 4
mov qword [r11 - 0x28], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1800056d0
cmp dword [rsp + 0x34], 4
jne 0x1800056d0
mov ebx, dword [rsp + 0x38]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x5050
call fcn.18006dc60
sub rsp, rax
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x5040], rax
xor ebx, ebx
mov rdi, r9
mov r12, r8
mov rbp, rdx
mov rsi, rcx
cmp dword [rsp + 0x50a0], ebx
je 0x18000577e
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x4ffe
mov word [rsp + 0x40], bx
call fcn.180059db0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, r12
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 0x5000
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rsp + 0x30], 1
jne 0x18000577e
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebx
jne 0x18000577e
lea eax, [rbx + 1]
jmp 0x1800057bb
cmp rdi, rbx
je 0x18000578e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x180005790
mov eax, ebx
lea r9d, [rax + rax + 2]
mov r8, r12
mov rdx, rbp
mov dword [rsp + 0x28], r9d
mov r9d, 1
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x5040]
xor rcx, rsp
call fcn.180059760
add rsp, 0x5050
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800057dc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x868
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], r13
mov word [rcx + 8], r13w
mov dword [rsp + 0x38], 1
mov rsi, r13
cmp r8, r13
je 0x18000594c
mov word [rsp + 0x50], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call fcn.180059db0
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rsp + 0x34], 1
je 0x18000589c
cmp dword [rsp + 0x34], 2
jne 0x18000594c
mov eax, dword [rsp + 0x30]
cmp eax, r13d
je 0x18000594c
cmp eax, 0x800
jbe 0x1800058f2
lea rcx, [rax + 2]
call fcn.18005a150
mov rsi, rax
mov r8d, dword [rsp + 0x30]
add r8, 2
xor edx, edx
mov rcx, rax
call fcn.180059db0
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
jmp 0x180005918
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rsp + 0x50]
cmp rsi, r13
cmovne rdx, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.1800076f0
cmp rsi, r13
je 0x18000594c
mov rcx, rsi
call fcn.18005a208
mov rax, rbx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180059760
add rsp, 0x868
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005970
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x20a0
call fcn.18006dc60
sub rsp, rax
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x2090], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x80], rcx
xor ebp, ebp
mov dword [rsp + 0x44], ebp
lea ecx, [rbp + 8]
call fcn.180058f28
cmp rax, rbp
je 0x1800059cb
mov qword [rax], rbx
jmp 0x1800059ce
mov rax, rbp
mov qword [rbx], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
mov dword [rsp + 0x44], 1
lea r12, vtable.RegHandleHolder.0
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
mov rdi, qword [rsp + 0x50]
cmp rdi, rbp
je 0x180005b24
mov esi, ebp
mov word [rsp + 0x90], bp
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rsp + 0x92]
call fcn.180059db0
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
jne 0x180005b1f
inc esi
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.1800076f0
nop
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.18000655c
nop
cmp qword [rsp + 0x78], 8
jb 0x180005ada
mov rcx, qword [rsp + 0x60]
call fcn.180058b34
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
je 0x180005a7a
mov rdi, qword [rsp + 0x50]
jmp 0x180005b24
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x48], r12
cmp rdi, rbp
je 0x180005b37
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x2090]
xor rcx, rsp
call fcn.180059760
add rsp, 0x20a0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005b5c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
and qword [r11 - 0x28], 0
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
mov edi, r9d
mov rsi, r8
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x180005be4
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
mov r9d, edi
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x180005c34
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp rdx, rbx
je 0x180005c6d
cmp r8, rbx
je 0x180005c6d
lea rax, [r11 + 0x10]
lea r9, [r11 + 0x20]
mov dword [rsp + 0x58], ebx
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rbx
mov dword [rsp + 0x48], ebx
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
sete al
jmp 0x180005c6f
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x180005ca4
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x180005d39
lea r8d, [rdi + 0x10]
lea rdx, str.gxdte
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180005cf4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x180005d1d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x180005d18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x180005d1d
mov edi, 1
test rsi, rsi
je 0x180005d2b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x180005d39
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x180005dfc
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x180005e7a
lea rdx, str.gxdte
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x180005e4e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x180005e5e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
test rdi, rdi
je 0x180005e6c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x180005e7a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180005e8c
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
xor edx, edx
xor ecx, ecx
lea r8d, [rdi + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x180005f2e
lea r8d, [rdi + 4]
lea rdx, str.gxdte
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180005eda
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x180005f12
and dword [rsp + 0x20], edi
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x18]
call fcn.180059db0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180005f12
cmp dword [rsp + 0x24], 4
mov eax, 1
cmove edi, eax
test rsi, rsi
je 0x180005f20
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x180005f2e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x180005f40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov rdi, rdx
lea r8, [rsp + 0x20]
lea edx, [rsi + 0x23]
xor ecx, ecx
mov qword [rsp + 0x20], rsi
mov ebx, esi
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, esi
jl 0x180005fc6
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], si
call fcn.180059db0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, esi
je 0x180005fc6
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ebx, [rsi + 1]
mov rcx, qword [rsp + 0x20]
cmp rcx, rsi
je 0x180005fd6
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180059760
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000e608
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov dil, cl
mov byte [rsp + 0x20], cl
lea rcx, [rsp + 0x20]
mov rsi, rdx
xor ebx, ebx
mov byte [rsp + 0x21], 0x3a
mov byte [rsp + 0x22], 0x5c
mov qword [rsp + 0x23], rax
mov dword [rsp + 0x2b], eax
mov byte [rsp + 0x2f], al
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebp, [rbx + 1]
cmp eax, 2
je 0x18000e660
cmp eax, 3
jne 0x18000e673
mov cl, dil
call fcn.1800030e0
cmp eax, 0xffffffff
je 0x18000e67f
cmp eax, 7
cmove ebx, ebp
test ebx, ebx
mov al, bpl
setne cl
mov byte [rsi], cl
jmp 0x18000e681
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180059760
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret