joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003780
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r9
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
call fcn.1400034a0
test eax, eax
jne 0x1400037b4
mov rdx, rdi
mov rcx, rbx
call fcn.1400034f0
mov r8, qword [rsi]
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140003130

Function at 0x140003840
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x14021e7e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140003944
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x140003944
lea rax, [rsp + 0x40]
mov r9d, 0x10008
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003949
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x260], rbp
xor ebp, ebp
nop word [rax + rax]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x48], 0x200
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
cmp eax, 0x103
je 0x140003917
test eax, eax
jne 0x140003925
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call fcn.140003840
mov ebx, eax
test eax, eax
je 0x1400038c0
jmp 0x140003925
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x260]
mov eax, ebx
mov rbx, qword [rsp + 0x290]
jmp 0x140003949
mov eax, 0x3f2
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14015f240
add rsp, 0x268
pop rdi
pop rsi
ret

Function at 0x1400039d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
lea rdx, str.SOFTWARECypress_TrackPad_Driver
mov rcx, 0xffffffff80000001
jmp fcn.140003840
Function at 0x1400047f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x28]
call fcn.140003090
nop
call fcn.14000f520
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14000482e
mov ecx, 0x80004005
call fcn.140001060
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r9, [0x140229764]
lea r8, str.LeftButtonSelectedFunction
lea rdx, str.SOFTWARECypress_TrackPad_DriverButtons
lea rcx, [rsp + 0x28]
call fcn.140003560
cmp dword [0x140229764], 3
jne 0x1400048af
xor r8d, r8d
lea rdx, [0x14018c980]
lea rcx, [rsp + 0x60]
call fcn.140001610
lea r9, [rsp + 0x60]
lea r8, str.LeftButtonRunPath
lea rdx, str.SOFTWARECypress_TrackPad_DriverButtons
lea rcx, [rsp + 0x28]
call fcn.140003640
mov rcx, qword [rsp + 0x60]
cmp dword [rcx - 0x10], 3
jl 0x1400048af
mov edx, 1
call qword [sym.imp.KERNEL32.dll_WinExec]
lea rcx, [rsp + 0x28]
call fcn.140003420
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400048db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x28]
call fcn.140003470
add rsp, 0x58
ret

Function at 0x1400048f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x28]
call fcn.140003090
nop
call fcn.14000f520
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14000492e
mov ecx, 0x80004005
call fcn.140001060
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r9, [0x14022976c]
lea r8, str.RightButtonSelectedFunction
lea rdx, str.SOFTWARECypress_TrackPad_DriverButtons
lea rcx, [rsp + 0x28]
call fcn.140003560
lea rcx, [rsp + 0x28]
call fcn.140003420
cmp dword [0x14022976c], 3
jne 0x1400049c4
xor r8d, r8d
lea rdx, [0x14018c980]
lea rcx, [rsp + 0x60]
call fcn.140001610
lea r9, [rsp + 0x60]
lea r8, str.RightButtonRunPath
lea rdx, str.SOFTWARECypress_TrackPad_DriverButtons
lea rcx, [rsp + 0x28]
call fcn.140003640
lea rcx, [rsp + 0x28]
call fcn.140003420
mov rcx, qword [rsp + 0x60]
cmp dword [rcx - 0x10], 3
jl 0x1400049c4
mov edx, 1
call qword [sym.imp.KERNEL32.dll_WinExec]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400049e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x28]
call fcn.140003470
add rsp, 0x58
ret
Function at 0x140004a00
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x28]
call fcn.140003090
nop
call fcn.14000f520
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140004a3e
mov ecx, 0x80004005
call fcn.140001060
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r9, [0x140229768]
lea r8, str.MiddleButtonSelectedFunction
lea rdx, str.SOFTWARECypress_TrackPad_DriverButtons
lea rcx, [rsp + 0x28]
call fcn.140003560
lea rcx, [rsp + 0x28]
call fcn.140003420
cmp dword [0x140229768], 3
jne 0x140004ad4
xor r8d, r8d
lea rdx, [0x14018c980]
lea rcx, [rsp + 0x60]
call fcn.140001610
lea r9, [rsp + 0x60]
lea r8, str.MiddleButtonRunPath
lea rdx, str.SOFTWARECypress_TrackPad_DriverButtons
lea rcx, [rsp + 0x28]
call fcn.140003640
lea rcx, [rsp + 0x28]
call fcn.140003420
mov rcx, qword [rsp + 0x60]
cmp dword [rcx - 0x10], 3
jl 0x140004ad4
mov edx, 1
call qword [sym.imp.KERNEL32.dll_WinExec]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004af5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x28]
call fcn.140003470
add rsp, 0x58
ret

Function at 0x140004b10
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x28]
call fcn.140003090
nop
call fcn.14000f520
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140004b4e
mov ecx, 0x80004005
call fcn.140001060
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r9, [0x1402297dc]
lea r8, str.3FPressFunction
lea rdx, str.SOFTWARECypress_TrackPad_DriverGestures
lea rcx, [rsp + 0x28]
call fcn.140003560
lea rcx, [rsp + 0x28]
call fcn.140003420
cmp dword [0x1402297dc], 3
jne 0x140004be4
xor r8d, r8d
lea rdx, [0x14018c980]
lea rcx, [rsp + 0x60]
call fcn.140001610
lea r9, [rsp + 0x60]
lea r8, str.3FPressRunPath
lea rdx, str.SOFTWARECypress_TrackPad_DriverGestures
lea rcx, [rsp + 0x28]
call fcn.140003640
lea rcx, [rsp + 0x28]
call fcn.140003420
mov rcx, qword [rsp + 0x60]
cmp dword [rcx - 0x10], 3
jl 0x140004be4
mov edx, 1
call qword [sym.imp.KERNEL32.dll_WinExec]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004c05
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x28]
call fcn.140003470
add rsp, 0x58
ret
Function at 0x1400051d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
xor ecx, ecx
call fcn.14001e528
lea r11, [rsp + 0x68]
mov qword [rsp + 0x70], r11
mov rcx, qword [0x140228f98]
add rcx, 0xffffffffffffffe8
call fcn.140001340
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call fcn.140001460
xor edx, edx
lea rcx, [0x140229a10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x14000534c
mov dword [0x140229a48], 1
call fcn.140003ca0
call fcn.140004fc0
mov dword [rsp + 0x48], 1
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 0x18
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140228f90], rax
test rax, rax
jne 0x1400052ac
lea rax, [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rdx, str.TouchMon.cpp
lea rcx, [rsp + 0x68]
call fcn.140001db0
nop
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [rbx + 0x58]
mov rdx, rax
lea ecx, [rbx + 9]
call fcn.140001e70
jmp 0x14000534c
lea rax, [0x140228f80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x14000bd00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140228f88], rax
test rax, rax
jne 0x140005312
lea rax, [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rdx, str.TouchMon.cpp
lea rcx, [rsp + 0x68]
call fcn.140001db0
nop
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
lea ecx, [r9 + 7]
call fcn.140001e70
jmp 0x14000534c
xor r8d, r8d
mov edx, 0x81
lea rcx, [0x140228fa0]
call fcn.140010cd0
lea rcx, [0x140228fa0]
call fcn.140005390
xor edx, edx
lea rcx, [0x140228fa0]
call fcn.1400184b4
lea rcx, [0x140228fa0]
call fcn.140018ecc
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x140005a40
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x38
mov dword [0x1402295f8], 0
call fcn.1400059f0
lea r11, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetEnumBTHENUM
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140005b38
mov qword [rsp + 0x48], rbx
mov ebx, dword [0x1402295f8]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], rdi
lea rsi, [0x140229600]
xor edi, edi
mov ecx, 0x400
call fcn.14015f71c
movsxd rcx, ebx
mov qword [rsi + rcx*8], rax
test rax, rax
je 0x140005b29
mov ecx, dword [str.HID_]
mov r9d, 0x3fb
mov edx, edi
mov dword [rax], ecx
movzx ecx, byte [0x14018d6c0]
mov byte [rax + 4], cl
movsxd rax, dword [0x1402295f8]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsi + rax*8]
add r8, 4
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc edi
test eax, eax
jne 0x140005b05
mov ebx, dword [0x1402295f8]
inc ebx
mov dword [0x1402295f8], ebx
cmp ebx, 0x14
jl 0x140005aa0
jmp 0x140005b29
movsxd rax, dword [0x1402295f8]
mov rcx, qword [rsi + rax*8]
test rcx, rcx
je 0x140005b29
call fcn.14015f6dc
movsxd r11, dword [0x1402295f8]
mov qword [rsi + r11*8], 0
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x140006c40
Capabilities:
Get session information

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov dword [rsp + 0x40], 0xffffffff
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edx, dword [rsp + 0x40]
lea r11, [rsp + 0x48]
lea r9, [rsp + 0x50]
lea r8d, [rbx + 8]
xor ecx, ecx
mov qword [rsp + 0x20], r11
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140006c9f
cmp dword [rsp + 0x48], 4
jne 0x140006c9f
cmp dword [rcx], ebx
sete bl
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140007f70
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rdi, rcx
mov dword [rax + 0x10], SafeArrayGetDim
lea rdx, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x1400081cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400081bc
mov eax, dword [rsp + 0x98]
dec eax
cmp eax, 0x7e
ja 0x1400081bc
xor ebx, ebx
mov qword [rsp + 0x30], rbx
cmp dword [0x1402211e8], 0x14
jle 0x140008020
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rdx, str.TouchMonDlg.cpp
lea rcx, [rsp + 0xa0]
call fcn.140001db0
nop
lea r12, str.AllocUserName
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x61d
mov rdx, rax
lea ecx, [rbx + 0x15]
call fcn.140001e70
jmp 0x1400080eb
mov ecx, dword [rsp + 0x98]
add ecx, 0x10
call fcn.14015f71c
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, str.TouchMonDlg.cpp
test rax, rax
jne 0x140008083
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa0]
call fcn.140001db0
nop
lea r12, str.AllocUserName
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x61d
mov rdx, rax
lea ecx, [rbx + 0x13]
call fcn.140001e70
jmp 0x140008099
mov r8d, 0x61d
lea r12, str.AllocUserName
mov rcx, r12
call fcn.140002da0
nop
test rbx, rbx
je 0x1400080eb
lea rdx, [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor esi, esi
mov ecx, 1
test eax, eax
cmove esi, ecx
mov dword [rsp + 0xa0], esi
mov byte [rdi + 0xe], 0
lea r8d, [rcx + 0xe]
mov rdx, rbx
mov rcx, rdi
call fcn.14015fac0
jmp 0x1400080f7
mov esi, 1
mov dword [rsp + 0xa0], esi
cmp dword [0x1402211e8], 0
jg 0x14000814b
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rdx, str.TouchMonDlg.cpp
lea rcx, [rsp + 0xa0]
call fcn.140001db0
nop
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x632
mov rdx, rax
lea ecx, [r9 + 0x15]
call fcn.140001e70
mov dword [0x1402211e8], 0
jmp 0x1400081b8
test rbx, rbx
jne 0x14000818d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
lea rdx, str.TouchMonDlg.cpp
lea rcx, [rsp + 0xa8]
call fcn.140001db0
nop
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x632
mov rdx, rax
lea ecx, [rbx + 0x14]
call fcn.140001e70
jmp 0x1400081a7
mov rcx, rbx
call fcn.14015f6dc
mov qword [rsp + 0x30], 0
mov rcx, r12
call fcn.140002ed0
nop
jmp 0x1400081b8
test esi, esi
je 0x1400081cf
mov rax, qword [str.CyP_Fr3dRes]
mov qword [rdi], rax
mov eax, dword [0x14018e238]
mov dword [rdi + 8], eax
add rsp, 0x68
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000dcb0
Capabilities:
Get graphical window text

Disassembly:
mov rax, rdx
lea r8, [rcx + 0x118]
mov edx, 0xd9
mov rcx, rax
jmp fcn.140021890

Function at 0x140010be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.140020650
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140010c3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.140010678
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140010cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x140010d0f
cmp dword [rcx + 0xd8], 0
jne 0x140010d0f
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.140020650
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140010c74
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140011860
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x38
and qword [rbp + 0x40], 0
and dword [rbp + 0x28], 0
and dword [rbp + 0x30], 0
and dword [rcx + 0x148], 0
cmp qword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], 0
mov rsi, rcx
mov dword [rbp + 0x38], 4
lea rdi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
je 0x140010e60
mov rdx, qword [rdi]
lea rax, [rbp + 0x40]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140010e52
mov rbx, qword [rdi + 8]
jmp 0x140010e3b
lea rcx, [rbp + 0x38]
lea r9, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x28]
mov rdx, rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140010e28
cmp dword [rbp + 0x30], 4
jne 0x140010e28
cmp dword [rbp + 0x28], 0
mov eax, dword [rbx + 8]
je 0x140010e20
or dword [rsi + 0x148], eax
jmp 0x140010e28
not eax
and dword [rsi + 0x148], eax
and dword [rbp + 0x28], 0
and dword [rbp + 0x30], 0
mov dword [rbp + 0x38], 4
add rbx, 0x10
mov rax, qword [rbx]
test rax, rax
jne 0x140010ddf
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp + 0x40], 0
add rdi, 0x10
cmp qword [rdi], 0
jne 0x140010db3
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbx
pop rbp
ret
jmp 0x140010d74

Function at 0x140013cd0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x140013d4a
xor r8d, r8d
call fcn.140013c04
mov rsi, rax
test rax, rax
jne 0x140013d06
mov eax, edi
jmp 0x140013d60
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x140013d02
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140014474
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400144d7
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400144eb
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400144eb
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x1400144f0
cmp dword [rcx + 8], 0
je 0x1400144eb
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x1400144f0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140015c6c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140026d60
mov rsi, rax
test rax, rax
je 0x140015ce8
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140015ce3
cmp dword [rbx], 0x40
jb 0x140015ce3
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x140015ce3
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140015cec
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001da5c
Capabilities:
Extract resource via kernel32 functions

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 r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14001dac4
call fcn.140020650
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001dac4
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14001dae6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001d450
mov esi, eax
test rdi, rdi
je 0x14001dae4
test rbx, rbx
je 0x14001dae4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14001e01c
Capabilities:
Extract resource via kernel32 functions

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 r12
push r13
push r14
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x14001e08e
call fcn.140020650
mov r8d, 0xf0
mov rdx, rdi
mov r13, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001e08e
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14001e0db
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov edi, 1
test rsi, rsi
je 0x14001e0bb
mov r10, qword [r14]
mov r9, r12
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call qword [r10 + 0x40]
mov edi, eax
test rbx, rbx
je 0x14001e0bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0xc0], 0
je 0x14001e0d9
mov rcx, qword [rbp + 0xc0]
mov rdx, r12
mov r8, qword [rcx]
call qword [r8 + 0x140]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x14001f584
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xc8], 0
jne 0x14001f5c2
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14001f676
call fcn.14000f520
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14001f5e1
mov ecx, 0x80004005
call fcn.140001060
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14015ffec
test eax, eax
je 0x14001f649
cmp eax, 0xc
je 0x14001f643
cmp eax, 0x16
je 0x14001f63d
cmp eax, 0x22
je 0x14001f63d
cmp eax, 0x50
je 0x14001f649
call fcn.14000f14c
int3
call fcn.14000f14c
int3
call fcn.14000f104
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14001f674
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret