joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400884f0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140088500
mov qword [rsp + 0x20], rbx
test rax, rax
je 0x140088549
mov r8, rcx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x140088549
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
Function at 0x14008a360
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp dword [rcx + 8], 0
mov rbx, rcx
je 0x14008a3bb
lea rax, [rsp + 0x30]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x14008a2d0]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x18], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008ade0
add rsp, 0x40
pop rbx
ret
xor r8d, r8d
lea rcx, [0x14008a240]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
mov rcx, rax
mov qword [rbx + 0x10], rax
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SubmitThreadpoolWork]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008ade0
add rsp, 0x40
pop rbx
ret
Function at 0x14008a3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140093df0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rbp + 0xff70], rax
xor eax, eax
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x14008a634
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rsi, [0x1400aa028]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400050d0
lea rdi, [rbx - 1]
test al, al
jne 0x14008a4ab
mov rax, rdi
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x14008a490
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140003400
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekAudioWOV
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14001cc20
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x14008a52c
mov dword [rsp + 0x38], 0xfffe
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14008a52c
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x14008a52c
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14008a59b
test al, 1
jne 0x14008a52c
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x14008a5a0
test rsi, rsi
je 0x14008a53f
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14008a561
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14008a571
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.14008ade0
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14008a5b0
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003400
mov rdx, qword [rsp + 0x40]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x14008a602
add rcx, 2
cmp rcx, 0x15
je 0x14008a630
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x14008a5e0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14008a52c
test rsi, rsi
je 0x14008a622
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x14008a543
mov eax, ebx
jmp 0x14008a607
mov ecx, 0x80004005
call fcn.140003700
int3
Function at 0x14008a640
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140093df0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rbp + 0xff70], rax
xor eax, eax
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x14008a884
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rsi, [0x1400aa028]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400050d0
lea rdi, [rbx - 1]
test al, al
jne 0x14008a6fb
mov rax, rdi
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x14008a6e0
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140003400
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekWOV
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14001cc20
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x14008a77c
mov dword [rsp + 0x38], 0xfffe
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14008a77c
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x14008a77c
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14008a7eb
test al, 1
jne 0x14008a77c
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x14008a7f0
test rsi, rsi
je 0x14008a78f
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14008a7b1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14008a7c1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.14008ade0
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14008a800
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003400
mov rdx, qword [rsp + 0x40]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x14008a852
add rcx, 2
cmp rcx, 0x15
je 0x14008a880
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x14008a830
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14008a77c
test rsi, rsi
je 0x14008a872
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x14008a793
mov eax, ebx
jmp 0x14008a857
mov ecx, 0x80004005
call fcn.140003700
int3
Function at 0x1808ac0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808ac237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1808ac0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ac0c7
add dl, dl
jne 0x1808ac0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ac14e
xor eax, eax
add dl, dl
jne 0x1808ac0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ac205
add dl, dl
jne 0x1808ac10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ac11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ac128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ac135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808ac142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1808ac0d6
mov eax, 1
add dl, dl
jne 0x1808ac15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ac16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ac153
sub eax, ebx
mov ebx, 1
jne 0x1808ac1a4
mov ecx, 1
add dl, dl
jne 0x1808ac186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808ac193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ac17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ac0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1808ac1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808ac1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ac1b5
cmp eax, 0x7d00
jae 0x1808ac1f3
cmp eax, 0x500
jb 0x1808ac1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ac0d6
cmp eax, 0x7f
ja 0x1808ac1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ac0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808ac22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1808ac0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000ac34
Capabilities:
Parse pe header

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

Function at 0x140011b50
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001194c
Function at 0x1400170ac
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400170dc
xor eax, eax
jmp 0x14001719f
mov rbp, rbx
cmp word [rax], si
je 0x140017101
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400170e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400170e4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140016fcc
movsxd r14, eax
test eax, eax
jne 0x14001713f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400170d5
mov rcx, r14
call fcn.1400140cc
mov rdi, rax
test rax, rax
jne 0x140017158
xor ecx, ecx
call fcn.1400129d4
jmp 0x140017134
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140016fcc
test eax, eax
jne 0x140017189
mov rcx, rdi
call fcn.1400129d4
jmp 0x140017193
xor ecx, ecx
call fcn.1400129d4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140019888
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001989e
mov al, 1
jmp 0x1400198fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400198af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400198fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400179cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400198fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400198fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400198fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400198fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c570
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001609c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001c5fa
cmp byte [rbp - 0x21], r15b
je 0x14001c5f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001c630
call fcn.140012c24
test eax, eax
jne 0x14001c61c
cmp byte [rbp - 0x21], r15b
je 0x14001c614
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001c630
cmp byte [rbp - 0x21], r15b
je 0x14001c62d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001567c
test eax, eax
jne 0x14001c6d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001609c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001c66f
cmp byte [rbp - 0x21], r15b
je 0x14001c6a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c6a4
call fcn.140012c24
test eax, eax
jne 0x14001c690
cmp byte [rbp - 0x21], r15b
je 0x14001c689
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c6a4
cmp byte [rbp - 0x21], r15b
je 0x14001c6a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001567c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c6d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c6d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c6e1
mov rcx, rdi
call fcn.1400129d4
cmp byte [rbp + 0x3f], r15b
je 0x14001c6f0
mov rcx, qword [rbp + 0x27]
call fcn.1400129d4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001ec70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ec98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ec98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14015b2b0
Capabilities:
Create process on windows

Disassembly:
mov word [rsp + 0x20], r9w
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov word [rsp + 8], cx
sub rsp, 0x68
movzx eax, word [rsp + 0x78]
mov word [rsp + 0x70], ax
movzx eax, word [rsp + 0x78]
mov word [rsp + 0x70], ax
movzx eax, word [rsp + 0x80]
mov word [rsp + 0x88], ax
mov dword [rsp + 0x28], reloc.SHELL32.dll_ILIsEqual
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x50], rax
movzx r9d, word [rsp + 0x70]
movzx r8d, word [rsp + 0x78]
movzx edx, word [rsp + 0x88]
movzx ecx, word [rsp + 0x78]
call fcn.14015b2b0
movzx eax, word [rsp + 0x70]
mov word [rsp + 0x80], ax
movzx eax, word [rsp + 0x80]
mov word [rsp + 0x78], ax
movzx eax, word [rsp + 0x70]
mov word [rsp + 0x88], ax
mov eax, 0x6f
add rsp, 0x68
ret

Function at 0x14015b764
Capabilities:
Check os version
Parse pe header

Disassembly:
mov rax, qword gs:[0x60]
mov r9, rcx
test rax, rax
je 0x14015b7ff
cmp dword [rax + 0x118], 0xa
jne 0x14015b7ff
mov rax, qword [rax + 0x18]
mov rdx, qword [rax + 0x20]
mov rax, qword [rdx]
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x14015b7ff
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14015b7ff
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14015b7ff
mov r8d, dword [rax + rdx + 0x88]
add r8, rdx
je 0x14015b7ff
mov qword [rcx + 0x20], rdx
mov ecx, dword [r8 + 0x18]
mov dword [r9 + 0x18], ecx
mov r11d, dword [r8 + 0x20]
add r11, rdx
mov qword [r9 + 8], r11
mov r10d, dword [r8 + 0x1c]
add r10, rdx
mov qword [r9], r10
mov r8d, dword [r8 + 0x24]
add r8, rdx
mov qword [r9 + 0x10], r8
test ecx, ecx
je 0x14015b7ff
test r11, r11
je 0x14015b7ff
test r10, r10
je 0x14015b7ff
test r8, r8
je 0x14015b7ff
mov eax, 1
ret
xor eax, eax
ret

Function at 0x14015c8d0
Capabilities:
Parse pe header

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

Function at 0x140160f50
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140160d4c
Function at 0x140164004
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140164034
xor eax, eax
jmp 0x1401640f7
mov rbp, rbx
cmp word [rax], si
je 0x140164059
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140164040
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14016403c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140163f24
movsxd r14, eax
test eax, eax
jne 0x140164097
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14016402d
mov rcx, r14
call fcn.140164a98
mov rdi, rax
test rax, rax
jne 0x1401640b0
xor ecx, ecx
call fcn.14016255c
jmp 0x14016408c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140163f24
test eax, eax
jne 0x1401640e1
mov rcx, rdi
call fcn.14016255c
jmp 0x1401640eb
xor ecx, ecx
call fcn.14016255c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140169860
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140169888
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140169888
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003b20
Capabilities:
Modify service

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x60
mov ebx, edx
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 2]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140003cca
lea rdx, [0x140046298]
mov r8d, 2
mov rcx, rax
mov qword [rsp + 0x80], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140003cb9
test ebx, ebx
je 0x140003bd3
dec ebx
je 0x140003b81
dec ebx
jne 0x140003cb0
xor eax, eax
or r9d, 0xffffffff
lea rcx, str.LocalSystem
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
lea rcx, str.SENS
or r8d, r9d
or edx, r9d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rcx, str.ProfSvc_Group
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x140003c96
mov qword [rsp + 0x88], r14
lea r14, [rdi + 0xaa8]
mov r8d, 0x400
mov rdx, r14
mov ecx, 0x66
call fcn.140002f20
lea rbx, [rdi + 0x2a8]
mov r8d, 0x400
mov rdx, rbx
mov ecx, 0x65
call fcn.140002f20
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140003c47
lea r8, str.Failed_to_change_the_description_of_service
lea rdx, [0x14002e990]
mov rcx, rdi
call fcn.140005a80
xor eax, eax
mov qword [rsp + 0x50], r14
lea rcx, str.SENS
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rcx, str.ProfSvc_Group
or r9d, 0xffffffff
mov qword [rsp + 0x28], rcx
lea r8d, [rax + 2]
mov rcx, rsi
or edx, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov r14, qword [rsp + 0x88]
test eax, eax
jne 0x140003cb0
lea r8, str.Failed_to_change_the_service_config
lea rdx, [0x14002e990]
mov rcx, rdi
call fcn.140005a80
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x80]
xor eax, eax
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400044e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000450e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007280
cmp byte [0x1400461c0], 0
jne 0x140004559
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004549
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1400461c0], 1
mov qword [0x1400461b8], rax
jmp 0x140004560
mov rax, qword [0x1400461b8]
mov byte [0x1400461c0], 1
jmp 0x140004560
mov rax, qword [0x1400461b8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000457f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]