joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ce50
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140021040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea r9, [rsp + 0x20]
mov rsi, rcx
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor edx, edx
mov ebx, edi
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000cee1
test rbx, rbx
je 0x14000cea9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000ce93
test eax, eax
jns 0x14000cf02
test rbx, rbx
je 0x14000cf07
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000cfcd
test rbx, rbx
jne 0x14000cf0e
xor eax, eax
jmp 0x14000cfcd
mov qword [rsp + 0x68], rbp
cmp dword [rbx], edi
jbe 0x14000cfb5
nop dword [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.140005ef0
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14000cf53
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000cfea
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000cfab
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cfa6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d033
call fcn.14000d0c0
inc edi
cmp edi, dword [rbx]
jb 0x14000cf20
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000d0a0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000d03f
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d03a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d03a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d0c0
mov rax, rdi
jmp 0x14000cfc8
Function at 0x14000dc68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dcb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000dcb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000dcb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000dcb2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000dcb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000dcb4
xor al, al
add rsp, 0x28
ret
Function at 0x140024325
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140048ca0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14008d036]
call fcn.1400254d2
mov qword [rbp + 8], 0
jmp 0x140048cde
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x140048d34
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x140048cd3
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140024b8b
Capabilities:
Terminate process

Disassembly:
jmp 0x140069470
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140024de8
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
jmp 0x140054670
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140083040]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
lea rcx, [0x14008d0fc]
call fcn.1400254d2
xor eax, eax
cmp eax, 1
je 0x140054821
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140054811
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x14005480b
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14005480b
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14005480b
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x188]
call fcn.14002491f
nop
lea rdx, [rbp + 0x188]
lea rcx, [rbp + 0x48]
call fcn.140025077
nop
lea rcx, [rbp + 0x188]
call fcn.140024357
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x48]
call fcn.140024500
movzx eax, al
test eax, eax
je 0x140054802
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rcx, [rbp + 0x48]
call fcn.140024edd
inc rax
mov rdx, rax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x140054802
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140054802
lea rcx, [rbp + 0x48]
call fcn.140024177
mov qword [rbp + 0x1b8], rax
lea rcx, [rbp + 0x48]
call fcn.140024edd
inc rax
mov rcx, qword [rbp + 0x1b8]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ucrtbased.dll_strcpy_s]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rbp + 0x88]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rcx, [rbp + 0x48]
call fcn.140024357
call qword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400546ad
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140073e20]
call fcn.1400250f9
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.1400249e2
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret
Function at 0x140024e42
Capabilities:
Parse pe header

Disassembly:
jmp 0x140068830
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140068850
xor al, al
jmp 0x1400688d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140068863
xor al, al
jmp 0x1400688d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14006888d
xor al, al
jmp 0x1400688d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400688a1
xor al, al
jmp 0x1400688d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400688b3
xor al, al
jmp 0x1400688d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400688cf
xor al, al
jmp 0x1400688d1
mov al, 1
add rsp, 0x38
ret
Function at 0x10000645c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rcx], 0
mov rbx, rcx
mov dil, 1
je 0x10000654d
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
mov edx, 0x100
call fcn.100004f90
test eax, eax
js 0x100006579
and qword [rsp + 0x40], 0
mov rbp, qword [rbx + 0x10]
mov rsi, qword [rbx + 0x18]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
add rbx, 0x20
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100006535
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100006538
xor dil, dil
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx], 0
jne 0x100006495
mov al, dil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1000171d0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor al, al
jmp 0x100006550

Function at 0x100006584
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor esi, esi
mov rdi, rcx
mov bl, 1
cmp qword [rcx], rsi
je 0x1000065fd
mov r8, qword [rdi]
mov r9, qword [rdi + 8]
lea rcx, [rsp + 0x20]
mov edx, 0x100
call fcn.100004f90
cmp eax, esi
jl 0x100006624
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000000
add rdi, 0x20
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x1000065f8
cmp eax, 2
je 0x1000065f8
movzx ebx, bl
cmp eax, esi
cmovne ebx, esi
cmp qword [rdi], rsi
jne 0x1000065b4
mov al, bl
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1000171d0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor al, al
jmp 0x1000065ff
Function at 0x100006c84
Capabilities:
Delete registry key
Delete 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, 0xf0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor r12d, r12d
lea rsi, [0x10001bde8]
lea rdi, [0x1000019a8]
mov ebp, r12d
lea r14, [0x10001d630]
mov r9d, dword [rdi]
lea r8, [0x100001ac0]
lea rcx, [0x10001da20]
mov edx, 0x28
lea rbx, [0x10001bd40]
call fcn.100004f90
cmp eax, r12d
jl 0x100006e55
mov r8, qword [rsi]
cmp r8, r12
je 0x100006d4d
mov r9d, 0x28
mov rcx, r14
mov edx, r12d
sub r8, r14
lea rax, [r9 + 0x7fffffd6]
cmp rax, r12
je 0x100006d32
movzx eax, word [r8 + rcx]
cmp ax, r12w
je 0x100006d32
mov word [rcx], ax
add rcx, 2
sub r9, 1
jne 0x100006d0e
cmp r9, r12
jne 0x100006d40
sub rcx, 2
mov edx, 0x8007007a
cmp edx, r12d
mov word [rcx], r12w
jl 0x100006e82
cmp qword [0x10001bd40], r12
je 0x100006db4
lea rax, [rbx + 8]
cmp qword [rax], r12
je 0x100006daf
cmp qword [rbx + 0x10], r12
je 0x100006daf
mov r8, qword [rbx]
mov r9, qword [rax]
lea rcx, [rsp + 0x40]
mov edx, 0x50
mov rbx, rax
call fcn.100004f90
cmp eax, r12d
jl 0x100006e55
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x100006dab
cmp eax, 2
je 0x100006dab
cmp eax, r12d
je 0x100006dab
inc ebp
add rbx, 0x20
cmp qword [rbx], r12
jne 0x100006d56
lea rax, [0x1000019b8]
add rdi, 0x10
add rsi, 8
cmp rdi, rax
jl 0x100006ccc
lea rax, [rsp + 0x30]
lea rdx, [0x100001b10]
mov r9d, 0x2011f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x100006e27
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001b78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001ba0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10000a9dc
cmp al, r12b
je 0x100006e3d
lea rcx, [0x10001bf20]
call fcn.100006584
call fcn.10000a9dc
cmp al, r12b
je 0x100006e53
lea rcx, [0x10001bd18]
call fcn.100006584
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1000171d0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
mov eax, edx
jmp 0x100006e55

Function at 0x100006e8c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x100001c28]
mov r8d, 0x40
mov byte [0x10001db34], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x100006eff
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
test ecx, ecx
je 0x100006efd
mov r9d, dword [0x10001db1c]
and ecx, 0x1f
add r8, 2
mov edx, 1
shl edx, cl
movzx ecx, word [r8]
or r9d, edx
test ecx, ecx
jne 0x100006edd
mov dword [0x10001db1c], r9d
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1000171d0
add rsp, 0xb8
ret
Function at 0x10000a43c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0xa90
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rsi, rcx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x20a
xor edi, edi
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x50]
mov r12d, 0x105
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x270]
mov ebp, 0x401
mov dword [rsp + 0x48], r12d
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x268], ebp
mov r9d, r12d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10000a627
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10000a5aa
mov rcx, qword [rsp + 0x30]
call fcn.10000a310
test al, al
jne 0x10000a591
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11, qword [rsp + 0x40]
lea rdx, [0x100002208]
xor ecx, ecx
mov qword [rsp + 0x38], r11
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x10000a541
lea edx, [rbx + 1]
lea r8, [rsp + 0x38]
mov r9, rax
mov ecx, 0x403
call fcn.10000a140
movsxd rdx, dword [rsp + 0x268]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
lea r8, [0x1000025e0]
call fcn.100004f90
test eax, eax
js 0x10000a575
mov rcx, qword [rsp + 0x260]
xor edx, edx
call fcn.10000a84c
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.10000e234
test al, al
jne 0x10000a593
xor edx, edx
lea rcx, [0x1000026b0]
jmp 0x10000a5d9
inc edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rsp + 0x40]
mov edx, edi
jmp 0x10000a4b2
movsxd rdx, dword [rsp + 0x268]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
lea r8, [0x100002570]
call fcn.100004f90
test eax, eax
js 0x10000a5de
mov rcx, qword [rsp + 0x260]
mov edx, ebx
call fcn.10000a84c
cmp dword [rsp + 0x268], ebp
jle 0x10000a5f5
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x48], r12d
lea rax, [rsp + 0x270]
mov dword [rsp + 0x268], ebp
mov qword [rsp + 0x260], rax
jle 0x10000a623
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a623
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x10000a680
cmp eax, 0x103
je 0x10000a639
mov edx, eax
lea rcx, [0x100002720]
jmp 0x10000a5d9
cmp dword [rsp + 0x268], ebp
jle 0x10000a650
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x48], r12d
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x268], ebp
mov qword [rsp + 0x260], rcx
jle 0x10000a67e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a67e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1000171d0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x10000a84c
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8c0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp dword [0x10001d07c], 0xffffffff
mov ebx, eax
jne 0x10000a936
lea rax, [rsp + 0x30]
lea rdx, [0x100002960]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x10001d07c], ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10000a936
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x1000029c0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x48], 0x28
mov dword [rsp + 0x38], 0x50
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x10000a919
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x10001d07c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x10000a936
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x10001d07c]
and eax, 3
cmp al, bpl
je 0x10000a9a9
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x800
mov word [rsp + 0xa0], bp
call sub.msvcrt.dll_memset
mov edx, 0x401
lea rcx, [rsp + 0xa0]
cmp edi, ebp
je 0x10000a988
lea r8, [0x1000029d0]
mov r9d, edi
mov qword [rsp + 0x20], rsi
call fcn.100004f90
jmp 0x10000a997
lea r8, [0x1000029f8]
mov r9, rsi
call fcn.100004f90
cmp eax, ebp
jl 0x10000a9a9
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1000171d0
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000aa98
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x880
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rcx, qword [0x10001db10]
lea rdx, [0x10001d6d0]
xor esi, esi
mov r8d, 0x103
mov word [0x10001d8d6], si
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
jne 0x10000aaf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000ab6e
mov word [0x10001d8d6], si
mov edi, esi
lea rbx, [0x10001bdf0]
cmp qword [0x10001bdf8], rsi
je 0x10000ab4f
mov r12d, 0x401
cmp qword [rbx], rsi
jne 0x10000ab45
mov rax, qword [rbx + 0x18]
mov r8, qword [rbx + 8]
mov r9, qword [rbx + 0x10]
mov rdx, r12
lea rcx, [rsp + 0x60]
cmp rax, rsi
je 0x10000ab3a
mov qword [rsp + 0x20], rax
call fcn.100004f90
jmp 0x10000ab3f
call fcn.100004f90
cmp eax, esi
jge 0x10000ab98
inc edi
add rbx, 0x30
cmp qword [rbx + 8], rsi
jne 0x10000ab10
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a6a0]
neg edi
sbb eax, eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1000171d0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10000abd6
inc edi
mov r8, qword [rbx + 0x20]
cmp r8, rsi
je 0x10000ac33
mov r9, qword [rbx + 0x28]
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.100004f90
add rbx, 0x30
cmp eax, esi
jl 0x10000ac2f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x10000ac37
inc edi
jmp 0x10000ac37
add rbx, 0x30
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10000ab49
Function at 0x10000ac50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x850], rax
cmp qword [0x10001bdf8], 0
lea rbx, [0x10001bdf8]
je 0x10000ad30
mov rax, qword [rbx + 0x10]
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
mov edx, 0x401
lea rcx, [rsp + 0x40]
test rax, rax
je 0x10000aca6
mov qword [rsp + 0x20], rax
call fcn.100004f90
jmp 0x10000acab
call fcn.100004f90
test eax, eax
js 0x10000ad61
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x20008
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000ad22
mov rcx, qword [rsp + 0x30]
lea r9d, [rax + 0x50]
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x10000ad11
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001880]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x30], 0
add rbx, 0x30
cmp qword [rbx], 0
jne 0x10000ac80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a6a0]
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1000171d0
add rsp, 0x860
pop rbx
ret
mov eax, 0x80004005
jmp 0x10000ad48
Function at 0x10000dc7c
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x10000ddd3
lea rdx, [0x1000016a0]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x10000dd9f
lea r8d, [rbx + 0x1c]
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10000dd40
mov dword [rsp + 0x24], 4
jmp 0x10000dd13
mov eax, esi
inc esi
cmp eax, 5
jge 0x10000dd30
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x10000dd34
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10000dd01
mov eax, dword [rsp + 0x24]
cmp eax, 1
je 0x10000dd7e
mov ebx, 0x80004005
jmp 0x10000dd94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0x41c
je 0x10000dd75
sub edx, 8
je 0x10000dd71
sub edx, 2
je 0x10000dd71
cmp edx, 0xf
je 0x10000dd71
lea rcx, [0x1000031c0]
mov edx, eax
call fcn.10000a84c
jmp 0x10000dd7a
xor ebx, ebx
jmp 0x10000dd7e
mov ebx, 0x652
test ebx, ebx
jne 0x10000dd94
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x10000dd94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000ddc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
sub ecx, 0x424
je 0x10000ddc6
cmp ecx, 0xc
je 0x10000ddc6
lea rcx, [0x1000031f0]
mov edx, eax
call fcn.10000a84c
jmp 0x10000ddc8
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000dde9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100003218]
mov edx, eax
mov ebx, eax
call fcn.10000a84c
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret