joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400583d4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x278
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r13d, r13d
mov r12, r8
mov r14, rdx
mov rbp, rcx
mov ebx, 1
test rdx, rdx
je 0x1400584d5
test r9d, r9d
mov eax, 0x1000
cmovne eax, r9d
mov esi, eax
mov ecx, eax
mov rax, qword [0x14009d340]
call qword [case.0x1400244c5.0]
mov r15, rax
mov edi, r13d
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
mov edx, edi
mov qword [rsp + 0x20], r13
mov rcx, rbp
mov dword [rsp + 0x44], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400584bb
cmp dword [rsp + 0x40], 0x104
jae 0x1400584b6
mov eax, dword [rsp + 0x44]
cmp eax, esi
ja 0x1400584b6
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], r12
mov r9, r15
mov dword [rsp + 0x20], eax
mov rcx, rbp
mov rax, r14
call qword [case.0x1400244c5.0]
jmp 0x1400584cb
mov ebx, r13d
jmp 0x1400584cb
cmp eax, 0x103
je 0x1400584d5
cmp eax, 0xea
cmovne ebx, r13d
inc edi
test ebx, ebx
jne 0x140058437
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002a310
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140058b60
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x3a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
or r9, 0xffffffffffffffff
xor ebx, ebx
inc r9
cmp word [rdi + r9*2], bx
jne 0x140058ba8
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x30], rdi
lea rax, [0x14009bc50]
mov qword [rsp + 0x28], rax
lea r8d, [r9 - 1]
movsxd rdx, r8d
test r8d, r8d
js 0x140058bef
movzx ecx, word [rdi + rdx*2]
call fcn.1400167c4
test eax, eax
jne 0x140058bef
dec r8d
sub rdx, 1
jns 0x140058bd9
inc r8d
sub r9d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015f44
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x78]
mov edx, 0x21
lea rcx, [rsp + 0x60]
call fcn.14000bf5c
lea rax, [0x14009a078]
mov qword [rsp + 0x60], rax
mov r9d, 0xf003f
mov r8, qword [rsp + 0x68]
mov rdx, rsi
lea rcx, [rsp + 0xc0]
call fcn.1400588dc
nop
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x180]
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.140058d9c
test eax, eax
jne 0x140058cdb
lea rcx, [rsp + 0xc0]
call fcn.140014250
nop
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
jne 0x140058c9a
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140058ccc
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140058cb9
mov ecx, eax
jmp 0x140058c8c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov ebx, 1
lea rcx, [rsp + 0x60]
call fcn.1400080d4
nop
mov eax, ebx
jmp 0x140058d2e
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0xc0]
call fcn.140058b60
test eax, eax
jne 0x140058c45
lea rcx, [rsp + 0xc0]
call fcn.140014250
nop
lea rcx, [rsp + 0x60]
call fcn.1400080d4
nop
lea rax, method.H.virtual_0
mov qword [rsp + 0x28], rax
xor eax, eax
jmp 0x140058d2e
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14002a310
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140058d9c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov ebp, edx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xb0]
xor ebx, ebx
test rcx, rcx
jne 0x140058dea
lea ecx, [rbx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140058e24
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x38], rax
mov r8, rsi
mov qword [rsp + 0x30], rbx
mov edx, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140058e1f
mov ecx, eax
jmp 0x140058dda
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400591f4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0xb0]
xor ebx, ebx
test rcx, rcx
jne 0x14005921b
lea ecx, [rbx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140059269
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bx
jne 0x14005921f
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140059256
mov ecx, eax
jmp 0x14005920b
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140059278
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x14005929d
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400592e1
mov dword [rsp + 0x28], 8
lea rdx, str.SchemaCacheTimestamp
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400592ce
mov ecx, eax
jmp 0x14005928d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400592f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0xb0], 0
mov rsi, rdx
mov rdi, rcx
jne 0x140059324
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14005937b
mov eax, dword [r8 + 0x14]
xor edx, edx
mov rcx, r8
lea ebx, [rax*2 + 2]
call fcn.1400186cc
mov rcx, qword [rdi + 0xb0]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov rdx, rsi
mov ebx, 1
mov qword [rsp + 0x20], rax
mov r9d, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14005936b
mov ecx, eax
jmp 0x140059314
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140059394
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x1400593be
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400593fd
mov r9d, 4
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400593ea
mov ecx, eax
jmp 0x1400593ae
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400596d8
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rcx
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140059839
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x140059813
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14005a2a0
test al, al
je 0x1400597e8
mov rbx, qword [rsp + 0x48]
lea rbp, [rbx + 1]
mov eax, 2
mul rbp
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x1400a6224]
mov rcx, rax
call fcn.14002a7bc
mov rsi, rax
test rax, rax
jne 0x140059788
mov rcx, qword [rsp + 0x38]
mov ebx, 0x8007000e
mov r9d, ebx
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
lea edx, [rax + 0x79]
call fcn.140041884
jmp 0x1400597ca
mov r9, rbx
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.140025260
mov ebx, eax
test eax, eax
jns 0x1400597ce
mov rcx, qword [rsp + 0x38]
mov r9d, eax
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov edx, 0x7a
call fcn.140041884
nop
mov rcx, rsi
mov rax, qword [0x14009d348]
call qword [case.0x1400244c5.0]
nop
mov eax, ebx
jmp 0x14005983b
mov rcx, rsi
call fcn.1400596d8
nop
mov rcx, rsi
mov rax, qword [0x14009d348]
call qword [case.0x1400244c5.0]
nop
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140059839
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
lea edx, [rax + 0x7d]
call fcn.140041864
jmp 0x14005983b
cmp eax, 0xb7
je 0x140059839
test eax, eax
je 0x140059839
mov rcx, qword [rsp + 0x38]
mov r9d, eax
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov edx, 0x81
call fcn.14004b184
jmp 0x14005983b
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140059858
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x350
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r14d, edx
mov rsi, rcx
mov edi, 1
test rcx, rcx
je 0x1400598ac
lea rdx, [0x1400a4a80]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x1400598ae
xor edi, edi
test edi, edi
je 0x140059a3b
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14001c064
nop
lea rcx, [rsp + 0x50]
call fcn.140057d8c
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400b53b8]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x1400244c5.0]
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400599fd
lea rdx, [0x1400a4b90]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x1400599de
lea rdx, [0x1400b536c]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x1400599de
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x1400244c5.0]
lea rcx, [rsp + 0x50]
call fcn.140057d8c
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [rsp + 0x11c]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x1400244c5.0]
mov rcx, qword [rsp + 0x58]
test byte [rsp + 0xf0], 0x10
je 0x1400599d2
xor r8d, r8d
mov edx, r14d
call fcn.140059858
jmp 0x1400599de
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140059919
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140059a16
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
test r14d, r14d
je 0x140059a30
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
neg eax
sbb ecx, ecx
and edi, ecx
lea rcx, [rsp + 0x50]
call fcn.1400147bc
nop
jmp 0x140059a41
mov eax, edi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.14002a310
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop r14
pop rdi
pop rsi
ret
Function at 0x140059b74
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
mov rdx, r8
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140059bee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbx], eax
cmp eax, 0x50
je 0x140059bbd
cmp eax, 0xb7
je 0x140059bbd
xor eax, eax
jmp 0x140059c1a
test rsi, rsi
je 0x140059bee
mov r8, qword [rsi + 8]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetFileSecurityW]
nop dword [rax + rax]
test eax, eax
jne 0x140059bee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbx], eax
jmp 0x140059bb9
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
bts eax, 0xd
mov rcx, rdi
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
and dword [rbx], 0
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140059ec8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x258]
sub rsp, 0x340
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14001bfe4
nop
lea rcx, [rsp + 0x40]
call fcn.140057d8c
mov rax, qword [rsp + 0x40]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1400b53b8]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x1400244c5.0]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005a055
lea rdx, [0x1400a4b90]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x14005a03a
lea rdx, [0x1400b536c]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x14005a03a
mov rax, qword [rsp + 0x40]
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [r14 + 8]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x1400244c5.0]
lea rcx, [rsp + 0x40]
call fcn.140057d8c
mov rax, qword [rsp + 0x40]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x1400244c5.0]
mov rax, qword [rsi]
mov r8d, dword [rbp - 0x20]
lea rdx, [rsp + 0x40]
mov rcx, rsi
test r8b, 0x10
je 0x14005a02b
mov rax, qword [rax + 8]
call qword [case.0x1400244c5.0]
mov edi, eax
test eax, eax
js 0x14005a0a4
jne 0x14005a03a
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140059ec8
jmp 0x14005a034
mov rax, qword [rax]
call qword [case.0x1400244c5.0]
test eax, eax
mov edi, eax
js 0x14005a0a4
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140059f5b
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005a06e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.1400147bc
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.14002a310
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
jmp 0x14005a070
Function at 0x14005a3dc
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r12
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r12, rcx
lea rax, [rbp - 0x15]
mov qword [r11 - 0x80], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x14005a58d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14005a58d
mov ecx, dword [rbp - 0x19]
lea rdx, [0x1400a6224]
call fcn.14002a7bc
mov rbx, rax
test rax, rax
je 0x14005a57c
lea rax, [rbp - 0x15]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x19]
mov r8, rbx
lea edx, [rsi + 1]
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
nop dword [rax + rax]
test eax, eax
je 0x14005a57c
mov r14d, esi
cmp dword [rbp - 0x15], esi
jbe 0x14005a57c
mov eax, r14d
lea rdx, [rax + rax*2]
add rdx, rdx
mov r8d, 0x24
mov rdx, qword [rbx + rdx*8]
lea rcx, [rbp - 0x11]
call fcn.14001d418
cmp qword [rbp - 0x11], rsi
je 0x14005a566
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rax
mov dword [rbp + 0x17], eax
lea r8, [rbp - 1]
lea edx, [rax + 1]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
je 0x14005a566
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
lea r15, [rax + 0x7530]
cmp dword [rbp + 3], 1
je 0x14005a566
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
cmp rax, r15
jae 0x14005a566
mov ecx, dword [rbp + 0x17]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
lea rdx, [rbp - 1]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14005a51f
call fcn.14000b310
test eax, eax
jns 0x14005a51f
lea rcx, [rbp - 0x11]
call fcn.14001d3e8
inc r14d
cmp r14d, dword [rbp - 0x15]
jb 0x14005a4ba
mov rcx, rbx
mov rax, qword [0x14009d348]
call qword [case.0x1400244c5.0]
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x2f], rax
mov dword [rbp + 0x37], eax
lea r8, [rbp + 0x1f]
lea edx, [rax + 1]
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x14005a5bf
call fcn.14000b310
mov esi, eax
mov eax, esi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14002a310
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14005a644
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rcx
call fcn.140002870
test al, al
je 0x14005a822
mov eax, dword [rcx + 0x14]
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleLastReported
and dword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
and qword [rsp + 0x5c], 0
and dword [rsp + 0x64], 0
and dword [rsp + 0x68], 0
mov dword [rsp + 0x6c], eax
call fcn.1400032dc
test al, al
je 0x14005a6cb
mov eax, dword [rbx]
cmp dword [rsp + 0x58], eax
jne 0x14005a6cb
mov rax, qword [rbx + 4]
cmp qword [rsp + 0x5c], rax
jne 0x14005a6cb
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x68], eax
je 0x14005a822
mov r9d, dword [rbx + 0x14]
lea r8, [0x1400b53c4]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x60]
call fcn.140003880
test eax, eax
js 0x14005a822
mov r9d, dword [rbx + 0x10]
lea r8, [0x1400b3540]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x40]
call fcn.140003880
test eax, eax
js 0x14005a822
imul rax, qword [rbx + 4], 0x2710
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x50]
shr rax, 0x20
mov dword [rsp + 0x54], eax
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
nop dword [rax + rax]
test eax, eax
je 0x14005a822
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToTzSpecificLocalTime]
nop dword [rax + rax]
test eax, eax
je 0x14005a822
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
nop dword [rax + rax]
test eax, eax
jle 0x14005a822
lea rax, [0x1400a4a80]
xor ecx, ecx
mov qword [rbp - 0x80], rax
lea rdx, [0x1400a4198]
lea rax, [rbp - 0x60]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x68], rax
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_RegisterEventSourceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14005a822
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x80]
mov ecx, 4
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov r9d, 0x800003f7
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], 0
lea edx, [rcx - 2]
lea r8d, [rcx - 3]
mov rcx, rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_DeregisterEventSource]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.14002a310
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rbp
ret
Function at 0x14005b388
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea r9, [rsp + 0x30]
mov r8, rdx
mov rdi, rcx
mov rdx, rcx
call fcn.14000aa64
test al, al
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmove rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002a310
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret

Function at 0x14005b400
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, qword [rsp + 0x280]
lea r9, [rsp + 0x30]
mov rdi, rdx
mov r8, rdx
mov rdx, rcx
mov rsi, rcx
call fcn.14000aa64
test al, al
lea rdx, [rsp + 0x30]
mov rcx, rsi
cmove rdx, rdi
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyTransactedW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002a310
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret