joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017150
Capabilities:
Start service

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x140017197
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.14000cb50
nop
cmp byte [r8 + rdx + 1], 0
je 0x1400171dd
lea rdx, str.Starting_service
lea rdi, [0x14020f300]
mov rcx, rdi
call fcn.14000de20
mov rax, qword [0x14020f300]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.14000daf0
movzx edx, al
mov rcx, rdi
call fcn.14000d9a0
mov rcx, rdi
call fcn.14000d8a0
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp 0x14001dc70
Function at 0x14001dc70
Capabilities:
Start service

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov rsi, rcx
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov r14d, 0x254
mov eax, dword [r14 + rdi]
mov edx, 0x250
test al, 1
jne 0x140016d17
or eax, 1
mov dword [r14 + rdi], eax
mov ecx, edx
add rcx, rdi
call fcn.14000cb50
nop
mov ebx, edx
add rbx, rdi
lea rbp, [0x14020f300]
cmp byte [rbx + 1], 0
je 0x140016d60
lea rdx, str.unsigned_long___cdecl_MinifilterStartCommand::Execute_int_wchar_t____
mov rcx, rbp
call fcn.14000de20
mov rax, qword [0x14020f300]
movsxd rcx, dword [rax + 4]
add rcx, rbp
mov dl, 0xa
call fcn.14000daf0
movzx edx, al
mov rcx, rbp
call fcn.14000d9a0
mov rcx, rbp
call fcn.14000d8a0
mov eax, dword [r14 + rdi]
test al, 1
jne 0x140016d78
or eax, 1
mov dword [r14 + rdi], eax
mov rcx, rbx
call fcn.14000cb50
nop
cmp byte [rbx + 1], 0
je 0x140016db5
lea rdx, str.Start_Minifilter
mov rcx, rbp
call fcn.14000de20
mov rax, qword [0x14020f300]
movsxd rcx, dword [rax + 4]
add rcx, rbp
mov dl, 0xa
call fcn.14000daf0
movzx edx, al
mov rcx, rbp
call fcn.14000d9a0
mov rcx, rbp
call fcn.14000d8a0
mov rcx, qword [rsi + 8]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp 0x14001dc70
push rbx
sub rsp, 0x150
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14001dd6d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x30]
cmp eax, 0x420
jne 0x14001dcee
call fcn.14000f0b0
xor eax, eax
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], 7
mov word [rsp + 0x128], ax
lea rdx, str.Cannot_start_service._ERROR_SERVICE_ALREADY_RUNNING
lea rcx, [rsp + 0x40]
call fcn.140015a20
lea rcx, [rsp + 0x40]
call fcn.14000f980
nop
jmp 0x14001dd5c
call fcn.14000f0b0
xor eax, eax
mov qword [rsp + 0x140], 7
mov qword [rsp + 0x138], rax
mov word [rsp + 0x128], ax
cmp ebx, 2
jne 0x14001dd34
lea rdx, str.Cannot_start_service._ERROR_FILE_NOT_FOUND
lea rcx, [rsp + 0x40]
call fcn.140015a20
lea rcx, [rsp + 0x40]
call fcn.14000f980
nop
jmp 0x14001dd5c
lea rdx, str.Cannot_start_service._Error
lea rcx, [rsp + 0x40]
call fcn.140015a20
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140019f70
lea rcx, [rsp + 0x40]
call fcn.14000f980
nop
lea rcx, [rsp + 0x30]
call fcn.14000eac0
mov eax, 0x6e
jmp 0x14001dde5
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x14001dd9d
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.14000cb50
nop
cmp byte [r8 + rdx + 1], 0
je 0x14001dde3
lea rdx, str.Service_started_successfully.
lea rbx, [0x14020f300]
mov rcx, rbx
call fcn.14000de20
mov rax, qword [0x14020f300]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.14000daf0
movzx edx, al
mov rcx, rbx
call fcn.14000d9a0
mov rcx, rbx
call fcn.14000d8a0
xor eax, eax
add rsp, 0x150
pop rbx
ret
Function at 0x14001e250
Capabilities:
Modify service

Disassembly:
push rdi
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1a0], rbx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8d, edx
or edx, r9d
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14001e358
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x70]
call fcn.14000f0b0
mov qword [rsp + 0x178], rdi
mov qword [rsp + 0x180], 7
mov word [rsp + 0x168], di
lea rdx, str.ChangeServiceConfig_returned_0x
lea rcx, [rsp + 0x80]
call fcn.140015a20
mov rcx, qword [rsp + 0x80]
movsxd rdx, dword [rcx + 4]
and dword [rsp + rdx + 0x98], 0xfffff9ff
or dword [rsp + rdx + 0x98], 0x800
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.140019f70
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x98], 0xfffff3ff
or dword [rsp + rcx + 0x98], 0x200
lea rcx, [rsp + 0x80]
call fcn.14000f980
nop
lea rcx, [rsp + 0x70]
call fcn.14000eac0
xor eax, eax
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rdi
ret
Function at 0x14001e370
Capabilities:
Modify service

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x90]
call fcn.140119b60
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x90]
call fcn.14001ed30
nop
xor ebp, ebp
mov ebx, ebp
cmp qword [rdi], rbx
je 0x14001e403
mov rax, qword [rdi]
nop dword [rax]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14001c5a0
mov rcx, rax
call fcn.14001ef60
inc ebx
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x14001e3e0
lea rcx, [rsp + 0x90]
call fcn.14001ef60
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.14001ec60
cmp qword [rax + 0x18], 8
jb 0x14001e42c
mov rax, qword [rax]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
or r9d, 0xffffffff
or r8d, r9d
or edx, r9d
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
sete bl
mov r8, qword [rsp + 0x80]
cmp r8, 8
jb 0x14001e488
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.1400120e0
test bl, bl
je 0x14001e556
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x254
mov ecx, dword [rax + rdx]
mov r8d, 0x250
test cl, 1
jne 0x14001e4c9
or ecx, 1
mov dword [rax + rdx], ecx
mov ecx, r8d
add rcx, rdx
call fcn.14000cb50
nop
cmp byte [r8 + rdx + 1], 0
je 0x14001e556
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x14020f300]
mov rcx, rdi
call fcn.14000de20
mov rax, qword [0x14020f300]
movsxd rcx, dword [rax + 4]
add rcx, rdi
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
mov edx, ebx
mov rcx, rdi
call fcn.140016e50
mov rax, qword [0x14020f300]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff3ff
or dword [rdx + 0x18], 0x200
mov rax, qword [0x14020f300]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.14000daf0
movzx edx, al
mov rcx, rdi
call fcn.14000d9a0
mov rcx, rdi
call fcn.14000d8a0
nop
lea rcx, [rsp + 0x118]
call fcn.14001ec90
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.1400f3630
nop
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400f84a0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e850
Capabilities:
Query service status

Disassembly:
push rbx
sub rsp, 0x170
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rsp + 0x168], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14001e936
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.14000f0b0
xor eax, eax
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x150], 7
mov word [rsp + 0x138], ax
lea rdx, str.Cannot_query_service_state_0x
lea rcx, [rsp + 0x50]
call fcn.140015a20
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
and dword [rsp + rdx + 0x68], 0xfffff9ff
or dword [rsp + rdx + 0x68], 0x800
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140019f70
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x68], 0xfffff3ff
or dword [rsp + rcx + 0x68], 0x200
lea rcx, [rsp + 0x50]
call fcn.14000f980
nop
lea rcx, [rsp + 0x40]
call fcn.14000eac0
mov eax, ebx
jmp 0x14001e938
xor eax, eax
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400f84a0
add rsp, 0x170
pop rbx
ret

Function at 0x14001e960
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x254
mov eax, dword [rcx + rdx]
mov r8d, 0x250
test al, 1
jne 0x14001e9b6
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.14000cb50
nop
cmp byte [r8 + rdx + 1], 0
je 0x14001e9fc
lea rdx, str.Waiting_for_the_pending_service_stop...
lea rbx, [0x14020f300]
mov rcx, rbx
call fcn.14000de20
mov rax, qword [0x14020f300]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.14000daf0
movzx edx, al
mov rcx, rbx
call fcn.14000d9a0
mov rcx, rbx
call fcn.14000d8a0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ebx, eax
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001e850
cmp dword [rsp + 0x2c], 1
je 0x14001ea83
nop dword [rax + rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x40]
shr edx, 3
mov ecx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001e850
test eax, eax
jne 0x14001ea85
cmp dword [rsp + 0x2c], 1
je 0x14001ea77
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x14001ea64
cmp dword [rsp + 0x2c], 1
jne 0x14001ea20
jmp 0x14001ea83
lea rcx, str.Service_stop_timed_out._n
call fcn.14000e0d0
mov eax, 0x41d
jmp 0x14001ea85
lea rcx, str.Service_stopped_successfully._n
call fcn.14000e0d0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f84a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14001eaa0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rdx], rbp
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001ead8
call fcn.1400f84d0
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea rsi, [rbx + 0x20]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14001eba2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x14001eba4
mov ecx, dword [rsp + 0x30]
call fcn.1400f956c
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14001eb31
mov eax, 0xe
jmp 0x14001eba4
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.140119b60
mov r8, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r9d, dword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rsi
mov qword [rbx + 0x18], r8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14001eb84
mov rcx, qword [rbx + 0x10]
call fcn.1400f84d0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rsi], ebp
jmp 0x14001eba2
mov dword [rbx + 0x24], ebp
cmp dword [rsi], ebp
ja 0x14001eb90
mov qword [rdi], rbp
jmp 0x14001eba2
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.14001dbd0
inc dword [rbx + 0x24]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f84a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140028c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push r12
push r13
sub rsp, 0x40
sub r9, r8
mov rax, rdx
sub rax, rcx
mov r13, r8
xor rax, r9
mov r12, rdx
mov rbx, rcx
test rax, 0xfffffffffffffffe
je 0x140028c83
xor al, al
add rsp, 0x40
pop r13
pop r12
pop rbx
ret
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp rcx, r12
je 0x140028d12
sub r13, rcx
nop dword [rax]
nop dword [rax + rax]
mov r14, qword [rsp + 0x80]
movzx r15d, word [rbx + r13]
movzx esi, word [rbx]
mov r14, qword [r14 + 8]
mov rax, qword [r14]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [fcn.140007f30]
movzx edx, si
mov rcx, r14
call rdi
movzx ebp, ax
mov rax, qword [rsp + 0x80]
mov rsi, qword [rax + 8]
mov r8, qword [rsi]
mov rdi, qword [r8 + 0x40]
mov rcx, rdi
call qword [fcn.140007f30]
movzx edx, r15w
mov rcx, rsi
call rdi
cmp bp, ax
jne 0x140028d37
add rbx, 2
cmp rbx, r12
jne 0x140028cb0
mov al, 1
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r13
pop r12
pop rbx
ret
xor al, al
jmp 0x140028d14
Function at 0x140029910
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov r14d, r12d
mov qword [rsp + 0x50], r12
lea rax, [0x140210e70]
nop dword [rax + rax]
mov rsi, qword [r14 + rax]
cmp byte [rsi + 0x40], 1
je 0x140029974
cmp byte [rsi + 0x40], 3
jne 0x140029aed
mov qword [rsp + 0x60], r12
lea rdx, [rsi + 8]
cmp qword [rdx + 0x18], 8
jb 0x140029987
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebp, eax
test eax, eax
jne 0x140029b04
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x30]
cmp rbx, rdi
je 0x140029ad6
cmp byte [rsi + 0x40], 3
jne 0x140029a2a
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x68], r12d
mov r15, qword [rsp + 0x60]
mov r14, qword [rbx]
mov rax, qword [r14]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [fcn.140007f30]
mov rcx, r14
call rbp
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140029ac4
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rbx]
mov rbp, qword [rax]
mov r14, rbp
mov r12, rax
mov qword [rsp + 0x70], rax
mov rbp, qword [rbp + 8]
mov rcx, rbp
call qword [fcn.140007f30]
mov rcx, r12
call rbp
mov r13, rax
mov rbp, qword [r14]
mov rcx, rbp
call qword [fcn.140007f30]
mov rcx, r12
call rbp
mov r12, rax
mov rbp, qword [r14 + 0x10]
mov rcx, rbp
call qword [fcn.140007f30]
mov r15, qword [rsp + 0x70]
mov rcx, r15
call rbp
mov r14d, eax
mov rdx, qword [r15]
mov rbp, qword [rdx + 0x18]
mov rcx, rbp
call qword [fcn.140007f30]
mov rcx, r15
call rbp
mov rdx, rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov r9d, r14d
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
jne 0x140029b04
xor r12d, r12d
add rbx, 8
cmp rbx, rdi
jne 0x1400299d2
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140029ae6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [0x140210e70]
add r14, 8
mov qword [rsp + 0x50], r14
cmp r14, 0x60
jb 0x140029960
xor eax, eax
jmp 0x140029b1c
call fcn.140029860
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140029b1a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f84a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140029b50
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 2
jne 0x140029bc7
cmp qword [rcx + 0x20], 8
lea rdx, [rcx + 8]
mov qword [rsp + 0x30], 0
jb 0x140029b82
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140029bdc
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov ebx, eax
test eax, eax
jne 0x140029bdc
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140029bc7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f84a0
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140029bec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f84a0
add rsp, 0x40
pop rbx
ret

Function at 0x14002a2a0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14002a2b9
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14002a357
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp eax, 2
jne 0x14002a31b
xor edi, edi
mov rcx, qword [0x1402005b8]
lea rax, [0x1402005b8]
cmp rcx, rax
je 0x14002a357
test dword [rcx + 0x44], 0x100
je 0x14002a357
cmp byte [rcx + 0x41], 4
jb 0x14002a357
cmp qword [rbx + 0x18], 8
jb 0x14002a302
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
mov r9, rbx
call fcn.14001cf40
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x1402005b8]
lea rax, [0x1402005b8]
cmp rcx, rax
je 0x14002a357
test dword [rcx + 0x44], 0x100
je 0x14002a357
cmp byte [rcx + 0x41], 2
jb 0x14002a357
cmp qword [rbx + 0x18], 8
jb 0x14002a347
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], edi
call fcn.14002a020
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14002a890
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15d, r9d
mov r14d, r8d
mov ebp, edx
mov rsi, rcx
mov rbx, qword [rsp + 0xd0]
cmp qword [rcx + 8], 0
je 0x14002aa35
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
xor r12d, r12d
mov qword [r11 - 0x38], r12
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
sar rdx, 5
test rdx, rdx
je 0x14002a91e
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
jbe 0x14002a914
call fcn.14001d3b0
int3
lea rcx, [rsp + 0x60]
call fcn.14002ad70
mov rdi, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, rdi
je 0x14002a95c
nop word [rax + rax]
cmp qword [rbx + 0x18], 8
jb 0x14002a93c
mov rax, qword [rbx]
jmp 0x14002a93f
mov rax, rbx
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14002afe0
add rbx, 0x20
cmp rbx, rdi
jne 0x14002a930
cmp qword [rsi + 0x20], 0
je 0x14002a985
lea rax, [rsi + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14002a971
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14002afe0
mov r8, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
sub r8, rbx
sar r8, 3
mov r11d, r12d
test r14d, r14d
sete r11b
cmp ebp, 5
ja case.0x14002a9b6.1
lea rdx, [0x140000000]
mov ecx, dword [rdx + rbp*4 + 0x2aa60]
add rcx, rdx
jmp rcx
movzx r10d, r12w
jmp 0x14002a9e4
mov r10d, 2
jmp 0x14002a9e4
mov r10d, 1
jmp 0x14002a9e4
mov r10d, 8
jmp 0x14002a9e4
mov r10d, 0x10
jmp 0x14002a9e4
mov r10d, 4
mov edx, r15d
call fcn.14002a550
mov r9d, eax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], r8w
mov qword [rsp + 0x20], r12
movzx r8d, r11w
movzx edx, r10w
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
nop
test rbx, rbx
je 0x14002aa35
mov r8, qword [rsp + 0x70]
sub r8, rbx
sar r8, 3
mov rdx, rbx
call fcn.14002af00
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f84a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14002c890
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 8]
mov rdi, rdx
test rsi, rsi
je 0x14002c8fb
lea rbx, [rdx + 8]
test rbx, rbx
je 0x14002c8fb
cmp byte [rcx + 0x4c], 0
je 0x14002c8fb
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002c8fb
cmp byte [rdi + 0x4c], 0
je 0x14002c8fb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14002c8fb
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400497e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [rcx]
mov r10d, 0x270
mov r9, rcx
cmp eax, r10d
jne 0x14004983e
lea r8, [rcx + 8]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140049800
jmp 0x140049922
cmp eax, 0x4e0
jb 0x140049922
lea r10, [rcx + 0x9c4]
mov r11d, 0xe3
nop word [rax + rax]
mov edx, dword [r10]
xor edx, dword [r10 + 4]
lea r10, [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x140049860
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r10]
xor edx, dword [r10 + 4]
lea r10, [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x1400498b0
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
mov dword [r9], r11d
mov eax, dword [r9]
mov edx, dword [r9 + rax*4 + 4]
inc eax
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret