joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400066a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140039240]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov eax, dword [rcx + 0x10]
mov qword [rbp + 7], r8
test eax, eax
jne 0x1400066d6
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
jmp 0x140006818
cmp eax, 1
jne 0x140006700
mov rcx, qword [rcx + 8]
xor r8d, r8d
mov qword [rsp + 0x28], r9
lea r9, [rbp + 7]
mov qword [rsp + 0x20], 8
call sub.ntdll.dll_NtQueryVirtualMemory
cdqe
jmp 0x140006818
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xa0], rdi
cmp eax, 2
jne 0x140006806
mov eax, dword [rcx]
xor edi, edi
mov dword [rbp + 0xf], eax
mov eax, edi
mov qword [rbp + 0x17], rdx
mov edx, 0x203
mov dword [rbp + 0x2f], edi
mov word [rbp - 1], di
mov qword [rbp + 0x1f], r8
mov qword [rbp + 0x27], r9
mov dword [rbp - 0x19], 0x258025f
mov dword [rbp - 0x15], 0x25a022b
mov dword [rbp - 0x11], 0x2310263
mov dword [rbp - 0xd], 0x23f0239
mov dword [rbp - 9], 0x23a0269
mov dword [rbp - 5], 0x23d023a
mov byte [rbp + 1], 1
nop dword [rax + rax]
lea ecx, [rdx + rax]
xor word [rbp + rax*2 - 0x19], cx
inc rax
cmp rax, 0xc
jb 0x140006770
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x19]
xor edx, edx
mov byte [rbp + 1], dil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006806
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0xf]
lea rax, [rbp + 0xf]
mov dword [rsp + 0x28], 0x20
mov r9d, 0x20
mov qword [rsp + 0x20], rax
mov edx, 0x22241c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x1f]
mov rcx, qword [rax]
mov rax, qword [rbp + 7]
mov qword [rax], rcx
mov rax, qword [rbp + 0x27]
jmp 0x140006808
xor eax, eax
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140007280
add rsp, 0xb0
pop rbp
ret

Function at 0x140006870
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2f], 0
je 0x140006893
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 3]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2e
jb 0x140006880
mov byte [rcx + 0x2f], 0
mov rax, rcx
ret

Function at 0x1400068a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x37], 0
je 0x1400068c3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 3]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x36
jb 0x1400068b0
mov byte [rcx + 0x37], 0
mov rax, rcx
ret
Function at 0x1400069a0
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140039240]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov dword [rcx], edx
mov dword [rcx + 0x10], r8d
cmp r8d, 2
jne 0x140006b9b
mov qword [rsp + 0xa8], rbx
xor ebx, ebx
mov qword [rbp + 0x2f], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x2f]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006a1f
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x47]
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x4b]
mov dword [rbp + 0x47], 4
lea edx, [rbx + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp + 0x4b]
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x140006a2e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140006ab7
movdqa xmm0, xmmword [str.Nqvrjlyyc_fv2rg5wsupt_zrl_KDPt4xys9]
lea rcx, [rbp + 0x37]
movdqa xmm1, xmmword [0x140029c00]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 0x37], 0x67716545
movdqu xmmword [rbp + 7], xmm1
mov dword [rbp + 0x3b], 0x784c286b
mov dword [rbp + 0x3f], 0x7f6379
mov byte [rbp + 0x43], 1
mov dword [rbp + 0x17], 0x649414d
mov dword [rbp + 0x1b], 0x4f4d474a
mov dword [rbp + 0x1f], 0x5b595f0b
mov dword [rbp + 0x23], 0x1005649
call fcn.1400061c0
lea rcx, [rbp - 9]
mov rbx, rax
call fcn.140006870
mov rdx, rax
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, dword [0x1400424f4]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140041eb0], ecx
jg 0x140006bb0
xor r9d, r9d
mov qword [rbp + 0x37], 8
lea rdx, [rbp + 0x37]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [0x140041ea8]
test eax, eax
js 0x140006b09
test byte [rbp + 0x3b], 1
je 0x140006b09
mov al, 1
jmp 0x140006b0b
xor al, al
test al, al
jne 0x140006b93
movdqa xmm0, xmmword [0x140029c20]
lea rcx, [rbp + 0x37]
movdqa xmm1, xmmword [0x140029c10]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 0x37], 0x67716545
movdqa xmm0, xmmword [0x140029be0]
movdqu xmmword [rbp + 0x17], xmm0
mov dword [rbp + 0x3b], 0x784c286b
mov dword [rbp + 0x3f], 0x7f6379
mov byte [rbp + 0x43], 1
movdqu xmmword [rbp + 7], xmm1
mov dword [rbp + 0x27], 0x405c4657
mov dword [rbp + 0x2b], 0x1004a52
call fcn.1400061c0
lea rcx, [rbp - 9]
mov rbx, rax
call fcn.1400068a0
mov rdx, rax
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140007280
add rsp, 0x90
pop rbp
ret
lea rcx, [0x140041eb0]
call fcn.14000730c
cmp dword [0x140041eb0], 0xffffffff
jne 0x140006ade
lea rcx, [0x140031bf8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140041eb0]
mov qword [0x140041ea8], rax
call fcn.1400072a0
jmp 0x140006ade
Function at 0x140006c00
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x90
mov rax, qword [0x140039240]
xor rax, rsp
mov qword [rbp + 0xf], rax
cmp dword [rcx + 0x10], 0
mov rsi, r9
mov r12, qword [rbp + 0x7f]
mov r15, r8
mov r14, rdx
mov rdi, rcx
jne 0x140006c4a
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [rdi + 0x10], 1
jne 0x140006c67
mov rcx, qword [rdi + 8]
mov r9d, esi
mov r8, r15
mov qword [rsp + 0x20], r12
mov rdx, r14
call sub.ntdll.dll_NtReadVirtualMemory
cmp dword [rdi + 0x10], 2
jne 0x140006d5a
mov eax, dword [rdi]
mov edx, 0x203
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0x258025f
mov dword [rbp - 9], eax
mov eax, 0xfcb3e314
xor r14, rax
mov dword [rbp - 0x2d], 0x25a022b
mov rax, rsi
mov qword [rbp - 1], r14
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0x2310263
xor edi, edi
mov qword [rbp + 7], rax
mov dword [rbp - 0x11], edi
mov eax, edi
mov word [rbp - 0x19], di
mov dword [rbp - 0x25], 0x23f0239
mov dword [rbp - 0x21], 0x23a0269
mov dword [rbp - 0x1d], 0x23d023a
mov byte [rbp - 0x17], 1
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + rax]
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xc
jb 0x140006ce0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x17], dil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006d5a
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], esi
mov r9d, 0x18
mov edx, 0x22240e
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140007280
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140007010
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x90
mov rax, qword [0x140039240]
xor rax, rsp
mov qword [rbp + 0xf], rax
cmp dword [rcx + 0x10], 0
mov rsi, r9
mov r12, qword [rbp + 0x7f]
mov r15, r8
mov r14, rdx
mov rdi, rcx
jne 0x14000705a
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [rdi + 0x10], 1
jne 0x140007077
mov rcx, qword [rdi + 8]
mov r9d, esi
mov r8, r15
mov qword [rsp + 0x20], r12
mov rdx, r14
call sub.ntdll.dll_NtWriteVirtualMemory
cmp dword [rdi + 0x10], 2
jne 0x14000716a
mov eax, dword [rdi]
mov edx, 0x203
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0x258025f
mov dword [rbp - 9], eax
mov eax, 0xfcb3e314
xor r14, rax
mov dword [rbp - 0x2d], 0x25a022b
mov rax, rsi
mov qword [rbp - 1], r14
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0x2310263
xor edi, edi
mov qword [rbp + 7], rax
mov dword [rbp - 0x11], edi
mov eax, edi
mov word [rbp - 0x19], di
mov dword [rbp - 0x25], 0x23f0239
mov dword [rbp - 0x21], 0x23a0269
mov dword [rbp - 0x1d], 0x23d023a
mov byte [rbp - 0x17], 1
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + rax]
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xc
jb 0x1400070f0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x17], dil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000716a
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], esi
mov r9d, 0x18
mov edx, 0x22240a
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140007280
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140007fc4
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140078038]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [0x140078a81], 0
je 0x140001f5b
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140009d00
nop
mov r8d, 1
lea rdx, [0x14006bbcc]
lea rcx, [rsp + 0x28]
call fcn.14000a720
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140001f5b
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001f6d
call fcn.140013ee4
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013980
add rsp, 0x58
ret
call fcn.140022b6c
int3
Function at 0x140007000
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140078038]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rsi, rdx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov ebx, ebp
cmp qword [rdx + 0x18], 0x10
jb 0x140007048
mov rdx, qword [rdx]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007168
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
mov edx, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
test eax, eax
jne 0x140007153
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140009d00
nop
lea r8d, [rdi + 1]
lea rdx, [0x14006bbe4]
lea rcx, [rsp + 0x58]
call fcn.14000a720
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400070e2
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000a720
lea rdx, [rsp + 0x58]
mov rcx, 0xffffffff80000002
call fcn.140007000
lea rdx, [rsp + 0x58]
call fcn.140006d60
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140007153
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000714e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007193
call fcn.140013ee4
inc ebx
test edi, edi
je 0x140007070
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140013980
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140022b6c
int3
Function at 0x140007560
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x140078038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
cmp qword [rcx + 0x18], 0x10
jb 0x140007598
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400075bb
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400075b0
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400075c8
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x140007684
movdqa xmm0, xmmword [0x14006ce90]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], eax
lea rdi, [rbx + 0x10]
mov rdx, qword [rdi]
add rdx, 0xc
lea rcx, [rsp + 0x30]
call fcn.14000ce70
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.__del_file:
lea rcx, [rsp + 0x30]
call fcn.14000a720
cmp qword [rbx + 0x18], 0x10
jb 0x140007624
mov rbx, qword [rbx]
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000a720
lea rcx, [rsp + 0x30]
call fcn.140001ec0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140007748
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007743
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000776b
jmp 0x140007743
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140007748
mov rcx, rbx
call fcn.140008130
test al, al
je 0x140007748
movdqa xmm0, xmmword [0x14006ce90]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 2
lea rdi, [rbx + 0x10]
mov rdx, qword [rdi]
add rdx, 0x1c
lea rcx, [rsp + 0x30]
call fcn.14000ce70
mov r8d, 0x1c
lea rdx, str.__del_file_after_rebooting:
lea rcx, [rsp + 0x30]
call fcn.14000a720
cmp qword [rbx + 0x18], 0x10
jb 0x1400076f4
mov rbx, qword [rbx]
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000a720
lea rcx, [rsp + 0x30]
call fcn.140001ec0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140007748
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007743
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007765
call fcn.140013ee4
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140013980
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call fcn.140022b6c
int3
call fcn.140022b6c
int3
Function at 0x140008130
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x140078038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
cmp qword [rcx + 0x18], 0x10
jb 0x140008168
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, rbx
test al, 0x10
je 0x140008248
cmp qword [rbx + 0x18], 0x10
jb 0x140008183
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140008339
movdqa xmm0, xmmword [0x14006ce90]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
lea rdi, [rbx + 0x10]
mov rdx, qword [rdi]
add rdx, 0x16
lea rcx, [rsp + 0x30]
call fcn.14000ce70
mov r8d, 0x16
lea rdx, str.__del_dir_on_reboot_:
lea rcx, [rsp + 0x30]
call fcn.14000a720
cmp qword [rbx + 0x18], 0x10
jb 0x1400081e8
mov rbx, qword [rbx]
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000a720
lea rcx, [rsp + 0x30]
call fcn.140001ec0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140008335
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008330
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008359
jmp 0x140008330
cmp qword [rbx + 0x18], 0x10
jb 0x140008252
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140008335
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140008335
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000827c
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140008339
movdqa xmm0, xmmword [0x14006ce90]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 2
lea rdi, [rbx + 0x10]
mov rdx, qword [rdi]
add rdx, 0x17
lea rcx, [rsp + 0x30]
call fcn.14000ce70
mov r8d, 0x17
lea rdx, str.__del_file_on_reboot_:
lea rcx, [rsp + 0x30]
call fcn.14000a720
cmp qword [rbx + 0x18], 0x10
jb 0x1400082e1
mov rbx, qword [rbx]
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000a720
lea rcx, [rsp + 0x30]
call fcn.140001ec0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140008335
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008330
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008353
call fcn.140013ee4
mov al, 1
jmp 0x14000833b
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140013980
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call fcn.140022b6c
int3
call fcn.140022b6c
int3
Function at 0x1400088f0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x3020
call fcn.1400142f0
sub rsp, rax
mov rax, qword [0x140078038]
xor rax, rsp
mov qword [rsp + 0x3010], rax
mov r14, rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x34]
mov rbp, rcx
mov r9d, 0x2fd0
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x1400089f6
xor ebx, ebx
cmp dword [rsp + 0x30], ebx
jbe 0x1400089ef
lea r15, [0x14007aa30]
nop dword [rax]
lea rdi, [rbx + rbx*2]
mov r8d, 0xf01ff
add rdi, rdi
mov rcx, rbp
mov rdx, qword [rsp + rdi*8 + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test r14, r14
je 0x1400089f6
mov r8d, 0x1e
mov rdx, rax
mov rcx, rbp
call fcn.1400088f0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [rsp + rdi*8 + 0x54]
lea eax, [rcx - 2]
test eax, 0xfffffffc
jne 0x1400089e7
cmp ecx, 3
je 0x1400089e7
movzx eax, word [0x14007aa10]
mov edx, 0x104
mov r8, qword [rsp + rdi*8 + 0x40]
imul rcx, rax, 0x104
add rcx, r15
call fcn.1400223c4
inc word [0x14007aa10]
inc ebx
cmp ebx, dword [rsp + 0x30]
jb 0x140008970
mov eax, 1
jmp 0x1400089f8
xor eax, eax
mov rcx, qword [rsp + 0x3010]
xor rcx, rsp
call fcn.140013980
mov rbx, qword [rsp + 0x3060]
add rsp, 0x3020
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e5d0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140078038]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rax, vtable.DiasInstall::FirewallPeckerManager.0
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 8], rsi
lea ecx, [rsi + 0x18]
call fcn.1400139a4
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rax, vtable.DiasInstall::FirewallPecker.0
mov qword [rdi], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rdi + 8], eax
test eax, eax
jns 0x14000e64f
lea edx, [rsi + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rdi + 8], eax
lea rax, vtable.DiasInstall::FirewallPecker_FWAS.0
mov qword [rdi], rax
lea rax, [rdi + 0x10]
mov qword [rax], rsi
mov qword [rsp + 0x20], rax
lea r9, [0x14006c8b8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14006c9f0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x14000e6d4
mov qword [rbx + 8], rdi
jmp 0x14000e6ac
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140013980
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.FirewallPcker_FWAS::FirewallPcker_FWAS__
lea rcx, [rsp + 0x48]
call fcn.140009ca0
nop
lea rdx, str.CoCreateInstance___fail
lea rcx, [rsp + 0x68]
call fcn.140009ca0
nop
mov r9d, esi
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.14000e3b0
lea rdx, [0x140076438]
lea rcx, [rsp + 0x90]
call fcn.1400162b0
int3