joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012f30
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
lea r9, str._sautorun.inf
mov r8, rbx
lea rcx, [rsp + 0x30]
lea edx, [rbx + 0x41]
call fcn.1400034e0
lea rdx, [0x1400dbe70]
mov byte [rsp + 0x6f], 0
lea rcx, [rsp + 0x30]
call fcn.14009b898
mov rdi, rax
test rax, rax
je 0x140012fb0
lea rdx, [rsp + 0x30]
lea rcx, str._s_already_exists___keeping_it
call fcn.140041aa0
mov rcx, rdi
call fcn.14009b928
xor eax, eax
jmp 0x1400130d6
lea rdx, [0x1400dbe98]
lea rcx, [rsp + 0x30]
call fcn.14009b898
mov rdi, rax
test rax, rax
jne 0x140012fed
lea rdx, [rsp + 0x30]
lea rcx, str.Unable_to_create__s
call fcn.140041aa0
lea rcx, str.NOTE:_This_may_be_caused_by_a_poorly_designed_security_solution._See_https:__goo.gl_QTobxX.
call fcn.140041aa0
xor eax, eax
jmp 0x1400130d6
mov rcx, qword [0x14015a208]
lea rdx, [rsp + 0xb0]
mov r8d, 0x80
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [0x14015a568]
lea rdx, [rsp + 0x70]
mov r8d, 0x20
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x70]
mov rcx, rdi
lea rdx, str.__Created_by__s_n__https:__github.com_Eclipse_Community_r3dusb_n
call fcn.140012b20
lea r8, [rsp + 0xb0]
mov rcx, rdi
lea rdx, str._autorun__nicon___autorun.ico_nlabel___s_n
call fcn.140012b20
mov rcx, rdi
call fcn.14009b928
lea rdx, [rsp + 0x30]
lea rcx, str.Created:__s
call fcn.140041aa0
lea rcx, [rsp + 0x30]
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140013070
cmp rax, 2
jae 0x140013098
mov r8d, 0xc0
lea rdx, str.C:_src_r3dusb_srcicon.c
lea rcx, str.strlen_filename____2
call fcn.1400a15c4
lea rcx, [rsp + 0x30]
mov rax, rbx
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400130a0
mov byte [rsp + rax + 0x2f], 0x6f
lea rax, [rsp + 0x30]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1400130b5
lea rax, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x30]
mov byte [rbx + rax - 2], 0x63
call fcn.140012b70
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140092060
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14001c040
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.140003550
mov rdi, rax
cmp word [rax], 0x22
jne 0x14001c09d
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14001c070
cmp word [rdi + rax*2 - 2], 0x22
jne 0x14001c09d
cmp word [rdi + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001c084
xor eax, eax
mov word [rdi + rcx*2 - 2], ax
lea rcx, [rdi + 2]
jmp 0x14001c0a0
mov rcx, rdi
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.14009b5a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c0e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12d, r8d
lea rcx, [rsp + 0x70]
mov rdi, rdx
mov r14d, 0x104
mov r8d, r14d
xor edx, edx
mov r15, r9
call fcn.140093c00
mov eax, dword [rbp + 0xe0]
xor esi, esi
mov r8d, eax
mov qword [rsp + 0x60], rsi
xor edx, edx
mov qword [rsp + 0x50], rsi
mov rcx, r15
mov dword [rsp + 0x58], 0xffffffff
mov dword [rsp + 0x5c], eax
call fcn.140093c00
test rdi, rdi
je 0x14001c2e0
mov rax, 0xffffffffffffffff
mov rbx, rax
nop
inc rbx
cmp byte [rdi + rbx], sil
jne 0x14001c170
test rbx, rbx
je 0x14001c18c
nop
cmp byte [rdi + rbx], 0x5c
je 0x14001c1c1
sub rbx, 1
jne 0x14001c180
lea rax, [rsp + 0x60]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14001c233
mov qword [rsp + 0x60], rsi
jmp 0x14001c2cc
cmp rbx, r14
jae 0x14001c2e0
nop word [rax + rax]
inc rax
cmp byte [rdi + rax], sil
jne 0x14001c1d0
inc rax
lea rcx, [rsp + 0x70]
cmp rax, r14
mov rdx, rdi
cmovb r14, rax
mov r8, r14
call fcn.140093550
lea rax, [rsp + 0x50]
mov byte [rsp + r14 + 0x6f], sil
mov byte [rsp + rbx + 0x70], sil
lea rdx, [rsp + 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
inc rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14001c27b
mov qword [rsp + 0x50], rsi
jmp 0x14001c2bc
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rdx, str.Alex313031R3dusb
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14001c27b
mov qword [rsp + 0x50], rsi
jmp 0x14001c2bc
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + rbx]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x14001c2b7
test eax, eax
jne 0x14001c2bc
cmp dword [rsp + 0x58], r12d
jne 0x14001c2bc
cmp dword [rsp + 0x5c], esi
jbe 0x14001c2bc
mov esi, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001c2cc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001c2dc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x14001c2e2
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140092060
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14001c310
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, r9
mov qword [rsp + 0x70], rbx
mov ebp, r8d
mov qword [rsp + 0x78], rbx
mov rdi, rdx
test rdx, rdx
jne 0x14001c366
mov r8d, 0x8a
lea rdx, str.C:_src_r3dusb_src_registry.h
lea rcx, str.key_name___NULL
call fcn.1400a15c4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x5c
mov rcx, rdi
call fcn.140093068
test rax, rax
je 0x14001c391
mov r8d, 0x91
lea rdx, str.C:_src_r3dusb_src_registry.h
lea rcx, str.strchr_key_name_____NULL
call fcn.1400a15c4
mov edx, 0x5c
mov rcx, rdi
call fcn.140093068
test rax, rax
jne 0x14001c354
lea rax, [rsp + 0x70]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14001c3d3
mov qword [rsp + 0x70], rbx
jmp 0x14001c457
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREAlex313031R3dusb
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14001c41e
mov qword [rsp + 0x78], rbx
jmp 0x14001c447
mov eax, dword [rsp + 0x90]
mov r9d, ebp
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001c457
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001c467
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023f40
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x188
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, r8
mov r14d, edx
mov rbp, rcx
mov dword [rsp + 0x50], 0x206
xor r15d, r15d
mov dword [rsp + 0x54], 0xa400
xor edx, edx
mov qword [rsp + 0x38], r15
mov r8d, 0x100
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x64]
mov dword [rsp + 0x58], 0x31415352
mov esi, r9d
mov dword [rsp + 0x5c], 0x800
mov dword [rsp + 0x60], 0x10001
call fcn.140093c00
lea r9d, [r15 + 0x18]
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, eax
test eax, eax
jne 0x140023fe8
call fcn.140022a90
lea rcx, str.PKI:_Could_not_create_the_default_key_container:__s
jmp 0x140024133
mov ecx, r15d
lea rdx, [rsp + 0x64]
lea r8, [0x1400d3db0]
nop word [rax + rax]
movzx eax, byte [r8]
inc ecx
mov byte [rdx], al
lea rdx, [rdx + 1]
lea r8, [r8 - 1]
cmp ecx, 0x100
jb 0x140024000
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, 0x114
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ebx, eax
test eax, eax
jne 0x140024057
call fcn.140022a90
lea rcx, str.PKI:_Could_not_import_public_key:__s
jmp 0x140024133
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, eax
test eax, eax
jne 0x14002408e
call fcn.140022a90
lea rcx, str.PKI:_Could_not_create_empty_hash:__s
jmp 0x140024133
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, eax
test eax, eax
jne 0x1400240b9
call fcn.140022a90
lea rcx, str.PKI:_Could_not_hash_data:__s
jmp 0x140024133
lea eax, [rsi - 1]
movsxd rcx, eax
test eax, eax
jle 0x1400240f4
mov r11, rdi
lea r9, [rcx + rdi]
neg r11
mov r10, rdi
movzx eax, byte [r9]
lea r9, [r9 - 1]
movzx ecx, byte [r10]
mov byte [r10], al
lea r10, [r10 + 1]
mov byte [r9 + 1], cl
lea rax, [r11 + r9]
lea rcx, [r11 + r10]
cmp rcx, rax
jl 0x1400240d0
mov r9, qword [rsp + 0x40]
mov r8d, esi
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov ebx, eax
test eax, eax
jne 0x14002413b
mov r8, r14
xor edx, edx
mov rcx, rbp
call fcn.140093c00
call fcn.140022a90
lea rcx, str.Signature_validation_failed:__s
mov rdx, rax
call fcn.140041aa0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002414b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002415d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140092060
add rsp, 0x188
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140024b40
Capabilities:
Link many functions at runtime

Disassembly:
push r14
sub rsp, 0x20
cmp qword [0x140153610], 0
mov r14, rcx
jne 0x140024b87
lea rcx, str.Ntdll
call fcn.140009360
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140153610], rax
test rax, rax
jne 0x140024b87
mov eax, 0xc000007a
add rsp, 0x20
pop r14
ret
mov rcx, qword [0x1401535c8]
mov qword [rsp + 0x30], rbx
mov ebx, dword [0x14010a744]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x140024d73
mov rax, qword [0x140153658]
test rax, rax
jne 0x140024beb
lea rcx, str.Ntdll
call fcn.140009360
mov rcx, rax
lea rdx, str.RtlAllocateHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140153658], rax
test rax, rax
je 0x140024d73
mov rcx, qword [0x1401535c8]
mov r8, rbx
xor edx, edx
call rax
mov rdi, rax
test rax, rax
je 0x140024d73
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
lea ecx, [r9 + 0x40]
call qword [0x140153610]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140024cfa
nop
cmp qword [0x1401535c8], 0
je 0x140024c6c
mov rax, qword [0x1401535e8]
test rax, rax
jne 0x140024c5e
lea rcx, str.Ntdll
call fcn.140009360
mov rcx, rax
lea rdx, str.RtlFreeHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401535e8], rax
test rax, rax
je 0x140024c6c
mov rcx, qword [0x1401535c8]
mov r8, rdi
xor edx, edx
call rax
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140024d50
cmp qword [0x1401535c8], 0
je 0x140024d73
mov rax, qword [0x140153658]
test rax, rax
jne 0x140024cc0
lea rcx, str.Ntdll
call fcn.140009360
mov rcx, rax
lea rdx, str.RtlAllocateHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140153658], rax
test rax, rax
je 0x140024d73
mov rcx, qword [0x1401535c8]
xor edx, edx
mov r8d, ebx
call rax
mov rdi, rax
test rax, rax
je 0x140024d73
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
lea ecx, [r9 + 0x40]
call qword [0x140153610]
mov esi, eax
cmp eax, 0xc0000004
je 0x140024c20
test esi, esi
jns 0x140024d57
mov rcx, qword [0x1401535c8]
test rcx, rcx
je 0x140024d4c
mov rax, qword [0x1401535e8]
test rax, rax
jne 0x140024d45
lea rcx, str.Ntdll
call fcn.140009360
mov rcx, rax
lea rdx, str.RtlFreeHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401535e8], rax
test rax, rax
je 0x140024d4c
mov rcx, qword [0x1401535c8]
mov r8, rdi
xor edx, edx
call rax
mov eax, esi
jmp 0x140024d78
mov eax, 0xc000009a
jmp 0x140024d78
mov eax, dword [0x14010a744]
cmp ebx, 0x200000
mov qword [r14], rdi
cmovbe eax, ebx
mov dword [0x14010a744], eax
mov eax, esi
jmp 0x140024d78
mov eax, 0xc0000017
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400273e0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
movsxd r14, r8d
mov rsi, rdx
mov r15, rcx
lea ebp, [rbx + 0x57]
test rdx, rdx
je 0x140027494
mov byte [rdx], bl
mov rcx, r14
lea edx, [rbx + 2]
mov qword [rsp + 0x60], rdi
call fcn.1400966e0
mov r8d, r14d
mov rdx, rax
mov rcx, r15
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebx, ebx
je 0x14002747c
mov qword [rsp + 0x38], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x30], 0
mov r8, rdi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test eax, eax
jne 0x14002747c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rdi, rdi
je 0x140027489
mov rcx, rdi
call fcn.14009b5a0
mov rdi, qword [rsp + 0x60]
mov byte [r14 + rsi - 1], 0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret

Function at 0x1400274c0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [0x140111ab0]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x140027589
mov rcx, rbx
mov qword [rsp + 0x30], rbp
mov edx, 2
call fcn.1400966e0
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbp, rbp
jne 0x140027519
lea edi, [rbp + 0xe]
xor ebx, ebx
jmp 0x140027584
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov edi, eax
test ebx, ebx
je 0x14002757f
call fcn.14001fb50
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
jne 0x140027556
lea edi, [rsi + 0xe]
xor ebx, ebx
mov rcx, rbp
jmp 0x14002757f
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140027560
add ebx, 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov edi, eax
call fcn.14009b5a0
mov rcx, rsi
call fcn.14009b5a0
mov rbp, qword [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400277f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rcx, [0x140159fc0]
mov r15, r9
call fcn.140003550
lea rcx, [0x1400d97a4]
mov rdi, rax
call fcn.140003550
mov rsi, rax
test r15, r15
jne 0x140027832
xor ebx, ebx
jmp 0x140027844
mov edx, 2
mov ecx, 0x104
call fcn.1400966e0
mov rbx, rax
mov r9, rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test ebp, ebp
je 0x1400278a9
mov qword [rsp + 0x38], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x30], 0
mov r8, rbx
mov dword [rsp + 0x28], 0x104
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test eax, eax
jne 0x1400278a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rbx, rbx
je 0x1400278b6
mov rcx, rbx
call fcn.14009b5a0
test rsi, rsi
je 0x1400278c3
mov rcx, rsi
call fcn.14009b5a0
test rdi, rdi
je 0x1400278d0
mov rcx, rdi
call fcn.14009b5a0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov eax, ebp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400279d0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.140003550
mov rdi, rax
cmp word [rax], 0x22
jne 0x140027a2d
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140027a00
cmp word [rdi + rax*2 - 2], 0x22
jne 0x140027a2d
cmp word [rdi + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140027a14
xor eax, eax
mov word [rdi + rcx*2 - 2], ax
lea rcx, [rdi + 2]
jmp 0x140027a30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.14009b5a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140027b60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rsi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov qword [rsp + 0x40], rbx
test rdx, rdx
jne 0x140027ba2
lea r8d, [rdx + 0x2b]
lea rdx, str.C:_src_r3dusb_src_registry.h
lea rcx, str.key_name___NULL
call fcn.1400a15c4
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
lea rax, [rsp + 0x40]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140027b95
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x48], rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
test eax, 0xfffffffd
je 0x140027c33
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 5
jne 0x140027bff
lea rax, str.Key_is_not_empty
jmp 0x140027c04
call fcn.140041e50
mov r8, rax
lea rcx, str.Failed_to_delete_registry_key_HKCUSoftware_s:__s
mov rdx, rsi
call fcn.140041aa0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, 0xfffffffd
jne 0x140027c4b
mov ebx, 1
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x140027c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12d, r8d
mov rdi, rdx
mov r15, rcx
mov r14d, 0x104
mov r8d, r14d
lea rcx, [rsp + 0x70]
xor edx, edx
mov r13, r9
call fcn.140093c00
mov eax, dword [rbp + 0xf0]
xor esi, esi
mov r8d, eax
mov qword [rsp + 0x60], rsi
xor edx, edx
mov qword [rsp + 0x50], rsi
mov rcx, r13
mov dword [rsp + 0x58], 0xffffffff
mov dword [rsp + 0x5c], eax
call fcn.140093c00
test rdi, rdi
je 0x140027e52
mov rax, 0xffffffffffffffff
mov rbx, rax
nop
inc rbx
cmp byte [rdi + rbx], sil
jne 0x140027cf0
test rbx, rbx
je 0x140027d0c
nop
cmp byte [rdi + rbx], 0x5c
je 0x140027d3d
sub rbx, 1
jne 0x140027d00
lea rax, [rsp + 0x60]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140027da5
mov qword [rsp + 0x60], rsi
jmp 0x140027e3e
cmp rbx, r14
jae 0x140027e52
inc rax
cmp byte [rdi + rax], sil
jne 0x140027d46
inc rax
lea rcx, [rsp + 0x70]
cmp rax, r14
mov rdx, rdi
cmovb r14, rax
mov r8, r14
call fcn.140093550
lea rax, [rsp + 0x50]
mov byte [rsp + r14 + 0x6f], sil
mov byte [rsp + rbx + 0x70], sil
lea rdx, [rsp + 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r15
inc rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140027ded
mov qword [rsp + 0x50], rsi
jmp 0x140027e2e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rdx, str.Alex313031R3dusb
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140027ded
mov qword [rsp + 0x50], rsi
jmp 0x140027e2e
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + rbx]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r13
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x140027e29
test eax, eax
jne 0x140027e2e
cmp dword [rsp + 0x58], r12d
jne 0x140027e2e
cmp dword [rsp + 0x5c], esi
jbe 0x140027e2e
mov esi, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140027e3e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140027e4e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x140027e54
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140092060
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret