joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Encode data using xor
Encrypt data using rc4 prga
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x30], rax
movsd xmm0, qword [str.fdaufdiqe]
mov ecx, 0x37e
movzx eax, word [0x140002248]
movsd qword [rsp + 0x20], xmm0
mov word [rsp + 0x28], ax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r9d, r9d
lea r10, [0x140002250]
mov edx, r9d
mov ecx, r9d
mov rbx, rax
mov r8, rax
test dl, 1
jne 0x140001060
movzx eax, byte [rcx + r10]
mov byte [r8], al
inc r8
inc edx
inc rcx
cmp rcx, 0x6fb
jl 0x140001050
mov r8, rbx
mov r10d, 0x37e
nop word [rax + rax]
mov eax, 0x38e38e39
lea r8, [r8 + 1]
imul r9d
mov ecx, r9d
inc r9d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub ecx, eax
movsxd rax, ecx
movzx ecx, byte [rsp + rax + 0x20]
xor byte [r8 - 1], cl
sub r10, 1
jne 0x140001080
mov edx, 0x37e
lea r9d, [r10 + 0x40]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
test rax, rax
je 0x140001182
mov rcx, rax
mov edx, 6
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400010e0
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rbx + 0x70]
mov qword [rcx + 0x70], rax
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rbx + 0x7c]
mov word [rcx + 0x7c], ax
call r8
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400011b0
add rsp, 0x40
pop rbx
ret
Function at 0x140007110
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400071a0
jmp 0x14000718f
jae 0x140007260
cmp r8, 0x201
jae 0x1400071a0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400071f8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400071cf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001e0b0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140007221
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400072c8
mov r8d, r14d
cmp r15, r8
jne 0x140007180
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400072eb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000718f
jmp 0x1400071a0
cmp rsi, r8
jb 0x140007305
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140009ba0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400072b1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140004830
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140007299
jmp 0x1400072b1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001ead0
jmp 0x14000731a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001ef20
ud2
Function at 0x140007370
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000f9e0
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x1400074f6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140007430
jmp 0x14000741f
jae 0x140007508
cmp r8, 0x201
jae 0x140007430
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140007488
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14000745f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14001e0b0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x1400074b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400075db
mov r8d, esi
cmp r12, r8
jne 0x140007410
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140007605
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000741f
jmp 0x140007430
lea rcx, [rbp - 0x58]
call fcn.140005110
mov byte [rsi + 0x18], 2
jmp 0x14000759a
cmp r15, r8
jb 0x14000761f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140009ba0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140007559
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.140004830
cmp byte [rbp + 0x3d8], 2
jne 0x1400075b1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140005110
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000759a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140004830
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140007585
jmp 0x14000759a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140007541
jmp 0x140007559
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001ead0
jmp 0x140007634
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001ef20
ud2
Function at 0x14000e3f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140022220]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000e434
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000e49a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000e4d1
test eax, eax
js 0x14000e4ab
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000e4c4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400098e0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400052f0
mov ecx, 7
int 0x29
ud2
Function at 0x14001c400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001c47a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001c470
cmp r11, r10
ja 0x14001c513
cmp r10, rdx
ja 0x14001c527
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001c472
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001c450
jmp 0x14001c4e7
ja 0x14001c47a
mov r11, r10
cmp rax, r8
jne 0x14001c422
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001c4eb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001c4c0
mov r8, r10
sub ecx, r9d
jns 0x14001c4de
jmp 0x14001c4ed
cmp r10, rdx
je 0x14001c4f9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001c4ed
xor al, 1
cmp r8, rdx
jne 0x14001c4a0
jmp 0x14001c4ed
xor eax, eax
jmp 0x14001c4ed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001ead0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001efa0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001ef20
ud2

Function at 0x14001db18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001db62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001db62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001db62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001db62
cmp dword [rcx + 0x84], 0xe
jbe 0x14001db62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001db64
xor al, al
add rsp, 0x28
ret
Function at 0x140005a40
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14006e420]
mov rdi, rdx
mov ebx, 0x80004005
test rax, rax
jne 0x140005a76
lea r8, str.GlobalIGFXPOWERAPILOCK
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x14006e420], rax
test rdi, rdi
je 0x140005abe
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140005aad
cmp eax, 0x80
je 0x140005aad
cmp eax, 0x102
jne 0x140005abe
xor ebx, ebx
mov dword [rdi], 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [0x14006e420]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
mov dword [rdi], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140005ad0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14006e420]
mov edi, edx
mov ebx, 0x80004005
test rax, rax
je 0x140005aff
cmp edx, 1
jne 0x140005b17
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea r8, str.GlobalIGFXPOWERAPILOCK
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x14006e420], rax
mov rcx, rax
test edi, edi
jne 0x140005b3f
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, 1
jne 0x140005b54
xor ebx, ebx
mov qword [0x14006e420], rbx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140005b52
cmp eax, 0x80
jne 0x140005b54
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140008b30
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x140008b71
xor r9d, r9d
lea rax, str.m_hKey___0
lea rdx, [0x140053e90]
lea ecx, [r9 + 2]
mov r8d, 0x1476
mov qword [rsp + 0x20], rax
call fcn.14001e440
cmp eax, 1
jne 0x140008b71
int3
cmp byte [0x14006e430], 0
jne 0x140008bbc
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140008bac
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14006e430], 1
mov qword [0x14006e428], rax
jmp 0x140008bc3
mov rax, qword [0x14006e428]
mov byte [0x14006e430], 1
jmp 0x140008bc3
mov rax, qword [0x14006e428]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140008be2
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]

Function at 0x140008cf0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x140008d36
xor r9d, r9d
lea rax, str.m_hKey___0
lea rdx, [0x140053e90]
lea ecx, [r9 + 2]
mov r8d, 0x1615
mov qword [rsp + 0x20], rax
call fcn.14001e440
cmp eax, 1
jne 0x140008d36
int3
mov rcx, qword [rbx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008d70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov ebx, r9d
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
jne 0x140008dc1
xor r9d, r9d
lea rax, str.m_hKey___0
lea rdx, [0x140053e90]
lea ecx, [r9 + 2]
mov r8d, 0x1621
mov qword [rsp + 0x20], rax
call fcn.14001e440
cmp eax, 1
jne 0x140008dc1
int3
xor eax, eax
test rdi, rdi
setne al
test eax, eax
jne 0x140008dff
xor r9d, r9d
lea rax, str.__atl_condVal
lea rdx, [0x140053e90]
lea ecx, [r9 + 2]
mov r8d, 0x1622
mov qword [rsp + 0x20], rax
call fcn.14001e440
cmp eax, 1
jne 0x140008df8
int3
mov eax, 0xd
jmp 0x140008e5a
cmp ebx, 1
je 0x140008e34
cmp ebx, 2
je 0x140008e34
xor r9d, r9d
lea rax, str._dwType____1______dwType____2___
lea rdx, [0x140053e90]
lea ecx, [r9 + 2]
mov r8d, 0x1623
mov qword [rsp + 0x20], rax
call fcn.14001e440
cmp eax, 1
jne 0x140008e34
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsi]
mov r9d, ebx
inc eax
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008e70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov r12, rdx
mov rbp, rcx
jne 0x140008ebf
xor r9d, r9d
lea rax, str.m_hKey___0
lea rdx, [0x140053e90]
lea ecx, [r9 + 2]
mov r8d, 0x162e
mov qword [rsp + 0x20], rax
call fcn.14001e440
cmp eax, 1
jne 0x140008ebf
int3
xor edi, edi
test rsi, rsi
mov eax, edi
setne al
test eax, eax
jne 0x140008efe
lea rax, str.__atl_condVal
lea rdx, [0x140053e90]
lea ecx, [rdi + 2]
xor r9d, r9d
mov r8d, 0x162f
mov qword [rsp + 0x20], rax
call fcn.14001e440
cmp eax, 1
jne 0x140008ef7
int3
mov eax, 0xd
jmp 0x140008f3f
mov qword [rsp + 0x40], rbx
mov rbx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, eax
add edi, eax
add rbx, rcx
cmp eax, 1
jne 0x140008f06
mov rcx, qword [rbp]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x140009480
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x70
xor ebx, ebx
lea rcx, [r11 + 0x18]
mov rax, rdx
mov qword [r11 - 0x20], rbx
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x30], rbx
mov qword [r11 - 0x38], rbx
mov qword [r11 - 0x40], rbx
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rcx
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
xor edx, edx
mov dword [r11 + 0x18], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x14000952b
mov rdx, qword [0x14006e580]
lea rax, str.D:Program_FilesMicrosoft_Visual_Studio_9.0VCATLMFCINCLUDE_statreg.h
lea r9, str.Should_not_be_here___n
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x3f3
call fcn.140008810
lea r11, [0x140053be0]
lea rdx, [0x140054010]
lea ecx, [rbx + 2]
xor r9d, r9d
mov r8d, 0x3f4
mov qword [rsp + 0x20], r11
call fcn.14001e440
cmp eax, 1
jne 0x140009523
int3
xor eax, eax
add rsp, 0x70
pop rbx
ret
cmp dword [rsp + 0x90], ebx
seta bl
mov eax, ebx
add rsp, 0x70
pop rbx
ret
Function at 0x140009c70
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x14006c868]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r9d, dword [rcx + 8]
mov rdi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rsi, rcx
xor ebp, ebp
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
call fcn.140008c00
mov ebx, eax
test eax, eax
je 0x140009d12
cmp eax, 2
je 0x140009dc7
cmp eax, 3
je 0x140009dc7
mov rdx, qword [0x14006e570]
lea rax, str.D:Program_FilesMicrosoft_Visual_Studio_9.0VCATLMFCINCLUDE_atlbase.h
lea r9, str.CRegKey::RecurseDeleteKey_:_Failed_to_Open_Key__s_Error___d__n
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x166a
mov qword [rsp + 0x20], rdi
call fcn.140008810
jmp 0x140009dc7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140009da1
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140009c70
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x140009dcc
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x140009d50
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009db6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x50], ebp
call fcn.140008b30
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009dd7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14001f7f0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000a020
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x14000a048
add rsp, 0x30
pop rdi
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
lea r8, [0x14000a010]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
test rax, rax
setne al
add rsp, 0x30
pop rdi
ret
Function at 0x140016360
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x370
mov rax, qword [0x14006c868]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rsi, rcx
mov r12, r8
mov rbp, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x30c
xor bl, bl
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
call fcn.14001f820
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
mov rax, qword [str.SOFTWAREIntelDisplayigfxcuiigfxsrvc]
mov qword [rdi - 1], rax
mov rax, qword [0x140057698]
mov qword [rdi + 7], rax
mov rax, qword [0x1400576a0]
mov qword [rdi + 0xf], rax
mov rax, qword [0x1400576a8]
mov qword [rdi + 0x17], rax
mov rax, qword [0x1400576b0]
mov qword [rdi + 0x1f], rax
test rsi, rsi
je 0x140016421
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
movzx eax, word [0x1400539c4]
lea rcx, [rsp + 0x50]
mov r8, rsi
mov edx, 0x30c
mov word [rdi - 1], ax
call fcn.140022380
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1400164c7
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400164c7
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140016479
cmp dword [rsp + 0x3c], 4
jne 0x140016480
mov bl, 1
jmp 0x1400164bc
cmp eax, 0xea
jne 0x1400164bc
lea rcx, str..ServiceUtils.cpp
cmp eax, 0xea
lea r8, str.val_not_a_string
mov qword [rsp + 0x40], rcx
lea rcx, str.too_big_for_buffer
lea rdx, str._s___RegQueryValueEx_failed__n
cmove r8, rcx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x48], 0x20
call fcn.140001290
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14001f7f0
add rsp, 0x370
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret