joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400245d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140061bf8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140024675
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002462d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140024620
cmp rcx, 1
jb 0x1400246a6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140024643
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140033e3c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140024610
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024a50
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140033be8
int3

Function at 0x1400248e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140061bf8]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140024985
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002493d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140024930
cmp rcx, 1
jb 0x1400249b7
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140024953
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140033e3c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140024920
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024a50
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140033be8
int3

Function at 0x140025498
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400254e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400254e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400254e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400254e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400254e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400254e4
xor al, al
add rsp, 0x28
ret
Function at 0x14002a428
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002a293
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a293
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a293
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a293
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a293
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a293
cmp dword [rcx + 0xf8], 0
je 0x14002a293
mov ecx, ebx
call fcn.14002a344
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002a120
nop
cmp dword [rbp + 0x20], 0
je 0x14002a2e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002a2ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002a224
Function at 0x14003bee0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003bf67
mov rsi, rbx
cmp word [rax], bp
je 0x14003bf26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003bf10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003bf0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140036d60
mov rdi, rax
test rax, rax
je 0x14003bf54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140025840
mov rbp, rdi
xor ecx, ecx
call fcn.140037c94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003fadc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003faf2
mov al, 1
jmp 0x14003fb52
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003fb03
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003fb50
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003c684
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003fb50
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003fb50
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003fb50
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003fb52
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400019b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov rax, qword [0x14002e260]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movzx eax, byte [0x14003fa21]
test eax, eax
je 0x140001a7e
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140009910
mov r9, qword [0x1400256b8]
xor r8d, r8d
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x28]
call fcn.140009120
nop
lea rcx, [0x1400256b0]
call fcn.140015f90
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x78]
lea rdx, [0x1400256b0]
lea rcx, [rsp + 0x28]
call fcn.140008ec0
cmp qword [rsp + 0x48], 0x10
jb 0x140001a53
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xe0], rax
jmp 0x140001a60
lea rax, [rsp + 0x30]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x28]
call fcn.140009910
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140016740
add rsp, 0xf8
ret
Function at 0x140005c00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov qword [rsp + 0x1f0], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
mov r8, qword [rsp + 0x238]
lea rdx, str.__del_reg__KEY:
lea rcx, [rsp + 0x40]
call fcn.14000d8b0
mov qword [rsp + 0x1f8], rax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x200], rax
mov rcx, qword [rsp + 0x200]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.140009910
mov rax, qword [rsp + 0x238]
cmp qword [rax + 0x20], 0x10
jb 0x140005c99
mov rax, qword [rsp + 0x238]
mov rax, qword [rax + 8]
mov qword [rsp + 0x208], rax
jmp 0x140005cad
mov rax, qword [rsp + 0x238]
add rax, 8
mov qword [rsp + 0x208], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x208]
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140005e2a
mov rax, qword [rsp + 0x238]
cmp qword [rax + 0x20], 0x10
jb 0x140005d03
mov rax, qword [rsp + 0x238]
mov rax, qword [rax + 8]
mov qword [rsp + 0x210], rax
jmp 0x140005d17
mov rax, qword [rsp + 0x238]
add rax, 8
mov qword [rsp + 0x210], rax
mov rdx, qword [rsp + 0x210]
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 0
jne 0x140005db3
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140009910
lea rcx, str.____done.
call fcn.140015f90
mov qword [rsp + 0x110], rax
mov r8, qword [rsp + 0x110]
lea rdx, str.____done.
lea rcx, [rsp + 0x68]
call fcn.14000a940
nop
lea rcx, [rsp + 0x68]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140009910
mov al, 1
jmp 0x140005e9f
lea rax, [rsp + 0x139]
mov qword [rsp + 0x140], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140009910
lea rcx, str.____failed.
call fcn.140015f90
mov qword [rsp + 0x168], rax
mov r8, qword [rsp + 0x168]
lea rdx, str.____failed.
lea rcx, [rsp + 0x90]
call fcn.14000a940
nop
lea rcx, [rsp + 0x90]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x90]
call fcn.140009910
xor al, al
jmp 0x140005e9f
lea rax, [rsp + 0x191]
mov qword [rsp + 0x198], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call fcn.140009910
lea rcx, str.____not_exist
call fcn.140015f90
mov qword [rsp + 0x1c0], rax
mov r8, qword [rsp + 0x1c0]
lea rdx, str.____not_exist
lea rcx, [rsp + 0xb8]
call fcn.14000a940
nop
lea rcx, [rsp + 0xb8]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xb8]
call fcn.140009910
xor al, al
add rsp, 0x228
ret
Function at 0x140005eb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov qword [rsp + 0x258], 0xfffffffffffffffe
mov rax, qword [0x14002e260]
xor rax, rsp
mov qword [rsp + 0x268], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x174], 0
mov rax, qword [rsp + 0x288]
cmp qword [rax + 0x20], 0x10
jb 0x140005f18
mov rax, qword [rsp + 0x288]
mov rax, qword [rax + 8]
mov qword [rsp + 0x260], rax
jmp 0x140005f2c
mov rax, qword [rsp + 0x288]
add rax, 8
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400060af
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x174]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [rsp + 0x170], eax
cmp dword [rsp + 0x170], 0
jne 0x140006085
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x178]
call fcn.140009910
mov r9, qword [0x1400256b8]
xor r8d, r8d
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x178]
call fcn.140009120
nop
lea rcx, [0x14002570c]
call fcn.140015f90
mov qword [rsp + 0x1c8], rax
mov r8, qword [rsp + 0x1c8]
lea rdx, [0x14002570c]
lea rcx, [rsp + 0x178]
call fcn.140008ec0
lea rcx, [rsp + 0x60]
call fcn.140015f90
mov qword [rsp + 0x200], rax
mov r8, qword [rsp + 0x200]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x178]
call fcn.140008ec0
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x280]
call fcn.140005eb0
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x280]
call fcn.140005c00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x178]
call fcn.140009910
mov eax, dword [rsp + 0x174]
add eax, 1
mov dword [rsp + 0x174], eax
cmp dword [rsp + 0x170], 0
je 0x140005f5d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.140016740
add rsp, 0x278
ret
Function at 0x140006410
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [rsp + 0x120]
cmp qword [rax + 0x20], 0x10
jb 0x14000644d
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 8]
mov qword [rsp + 0xd8], rax
jmp 0x140006461
mov rax, qword [rsp + 0x120]
add rax, 8
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
je 0x1400064c6
mov rax, qword [rsp + 0x120]
cmp qword [rax + 0x20], 0x10
jb 0x14000649f
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe0], rax
jmp 0x1400064b3
mov rax, qword [rsp + 0x120]
add rax, 8
mov qword [rsp + 0xe0], rax
mov edx, 0x80
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rax, qword [rsp + 0x120]
cmp qword [rax + 0x20], 0x10
jb 0x1400064eb
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe8], rax
jmp 0x1400064ff
mov rax, qword [rsp + 0x120]
add rax, 8
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jne 0x140006568
mov r8, qword [rsp + 0x120]
lea rdx, str.__del_file:
lea rcx, [rsp + 0x30]
call fcn.14000d8b0
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140009910
jmp 0x1400065db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 5
jne 0x1400065db
mov rcx, qword [rsp + 0x120]
call fcn.140006f30
movzx eax, al
test eax, eax
je 0x1400065db
mov r8, qword [rsp + 0x120]
lea rdx, str.__del_file_after_rebooting:
lea rcx, [rsp + 0x58]
call fcn.14000d8b0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rcx, qword [rsp + 0x108]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.140009910
mov eax, 1
add rsp, 0x118
ret
Function at 0x140006f30
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x20], 0x10
jb 0x140006f75
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 8]
mov qword [rsp + 0xd8], rax
jmp 0x140006f89
mov rax, qword [rsp + 0x130]
add rax, 8
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x140007067
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x20], 0x10
jb 0x140006fcf
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe0], rax
jmp 0x140006fe3
mov rax, qword [rsp + 0x130]
add rax, 8
mov qword [rsp + 0xe0], rax
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14000705b
mov r8, qword [rsp + 0x130]
lea rdx, str.__del_dir_on_reboot_:
lea rcx, [rsp + 0x30]
call fcn.14000d8b0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140009910
mov al, 1
jmp 0x140007188
xor al, al
jmp 0x140007188
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x20], 0x10
jb 0x14000708c
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf8], rax
jmp 0x1400070a0
mov rax, qword [rsp + 0x130]
add rax, 8
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400070c0
mov al, 1
jmp 0x140007188
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 2
jne 0x1400070d8
mov al, 1
jmp 0x140007188
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x20], 0x10
jb 0x1400070fd
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 8]
mov qword [rsp + 0x100], rax
jmp 0x140007111
mov rax, qword [rsp + 0x130]
add rax, 8
mov qword [rsp + 0x100], rax
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140007186
mov r8, qword [rsp + 0x130]
lea rdx, str.__del_file_on_reboot_:
lea rcx, [rsp + 0x58]
call fcn.14000d8b0
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.140009910
mov al, 1
jmp 0x140007188
xor al, al
add rsp, 0x128
ret
Function at 0x140007800
Capabilities:
Enumerate services

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x3028
call fcn.140021b70
sub rsp, rax
lea rax, [rsp + 0x3010]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2fd0
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x3038]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140007984
mov dword [rsp + 0x3014], 0
jmp 0x14000787e
mov eax, dword [rsp + 0x3014]
add eax, 1
mov dword [rsp + 0x3014], eax
mov eax, dword [rsp + 0x3010]
cmp dword [rsp + 0x3014], eax
jae 0x14000797b
mov edx, dword [rsp + 0x3014]
imul rdx, rdx, 0x30
mov r8d, 0xf01ff
mov rdx, qword [rsp + rdx + 0x40]
mov rcx, qword [rsp + 0x3030]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x3018], rax
cmp qword [rsp + 0x3038], 0
jne 0x1400078d0
xor eax, eax
jmp 0x140007986
mov r8d, dword [rsp + 0x3040]
mov rdx, qword [rsp + 0x3018]
mov rcx, qword [rsp + 0x3030]
call fcn.140007800
mov rcx, qword [rsp + 0x3018]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x3014]
imul rax, rax, 0x30
cmp dword [rsp + rax + 0x54], 2
je 0x140007931
mov eax, dword [rsp + 0x3014]
imul rax, rax, 0x30
cmp dword [rsp + rax + 0x54], 4
je 0x140007931
mov eax, dword [rsp + 0x3014]
imul rax, rax, 0x30
cmp dword [rsp + rax + 0x54], 5
jne 0x140007976
mov r8d, dword [rsp + 0x3014]
imul r8, r8, 0x30
movzx eax, word [0x14003fa18]
imul rax, rax, 0x104
lea rcx, [0x14002f610]
add rcx, rax
mov r8, qword [rsp + r8 + 0x40]
mov edx, 0x104
call fcn.140016eac
movzx eax, word [0x14003fa18]
add ax, 1
mov word [0x14003fa18], ax
jmp 0x14000786d
mov eax, 1
jmp 0x140007986
xor eax, eax
add rsp, 0x3028
ret
Function at 0x140007990
Capabilities:
Query service status
Start service

Disassembly:
sub rsp, 0x68
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400079b8
xor eax, eax
jmp 0x140007ac7
mov dword [rsp + 0x50], 0
jmp 0x1400079cd
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x100
jae 0x140007ac2
mov eax, dword [rsp + 0x50]
imul rax, rax, 0x104
lea rdx, [0x14002f610]
add rdx, rax
mov r8d, 0xf01ff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140007a20
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140007ac7
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140007a4e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140007ac7
cmp dword [rsp + 0x2c], 4
je 0x140007aa7
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [rsp + 0x54], 0
jmp 0x140007a7a
mov eax, dword [rsp + 0x54]
add eax, 1
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x1e
jae 0x140007aa7
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rsp + 0x2c], 4
jne 0x140007a9a
jmp 0x140007aa7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007a6f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400079c2
mov eax, 1
add rsp, 0x68
ret
Function at 0x140007ad0
Capabilities:
Enumerate services

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x3178
call fcn.140021b70
sub rsp, rax
mov qword [rsp + 0x3160], 0xfffffffffffffffe
mov rax, qword [0x14002e260]
xor rax, rsp
mov qword [rsp + 0x3168], rax
lea rax, [rsp + 0x3010]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2fd0
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x3188]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140007cd7
mov dword [rsp + 0x3014], 0
jmp 0x140007b6c
mov eax, dword [rsp + 0x3014]
add eax, 1
mov dword [rsp + 0x3014], eax
mov eax, dword [rsp + 0x3010]
cmp dword [rsp + 0x3014], eax
jae 0x140007cd1
mov edx, dword [rsp + 0x3014]
imul rdx, rdx, 0x30
mov r8d, 0xf01ff
mov rdx, qword [rsp + rdx + 0x40]
mov rcx, qword [rsp + 0x3180]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x3048], rax
cmp qword [rsp + 0x3048], 0
jne 0x140007bbe
xor al, al
jmp 0x140007cd9
mov r8d, dword [rsp + 0x3190]
mov rdx, qword [rsp + 0x3048]
mov rcx, qword [rsp + 0x3180]
call fcn.140007ad0
mov rcx, qword [rsp + 0x3048]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [rsp + 0x3014]
imul rdx, rdx, 0x30
mov rdx, qword [rsp + rdx + 0x40]
lea rcx, [rsp + 0x3020]
call fcn.140007f70
nop
cmp qword [rsp + 0x3040], 0x10
jb 0x140007c24
mov rax, qword [rsp + 0x3028]
mov qword [rsp + 0x3108], rax
jmp 0x140007c34
lea rax, [rsp + 0x3028]
mov qword [rsp + 0x3108], rax
lea rax, [rsp + 0x30b0]
mov qword [rsp + 0x30b8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x3050]
call fcn.140009910
mov rcx, qword [rsp + 0x3108]
call fcn.140015f90
mov qword [rsp + 0x30e8], rax
mov r8, qword [rsp + 0x30e8]
mov rdx, qword [rsp + 0x3108]
lea rcx, [rsp + 0x3050]
call fcn.14000a940
nop
mov r8d, dword [rsp + 0x3190]
lea rdx, [rsp + 0x3050]
mov rcx, qword [rsp + 0x3180]
call fcn.140007d00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x3050]
call fcn.140009910
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x3020]
call fcn.140009910
jmp 0x140007b5b
mov al, 1
jmp 0x140007cd9
xor al, al
mov rcx, qword [rsp + 0x3168]
xor rcx, rsp
call fcn.140016740
add rsp, 0x3178
ret