joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005520
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov rdx, qword [rdx]
lea rax, [rsp + 0x48]
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400055b3
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, 1
cmp eax, 0x103
cmove ebx, ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x1400055d3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140090480
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
Function at 0x140005b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140005cd2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140005cd2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140005cd2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140005c16
nop
cmp rdi, r11
jae 0x140005cd2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140005c00
cmp rdi, r11
jae 0x140005cd2
movzx eax, word [rdi]
test ax, ax
je 0x140005cd2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140005c4c
mov edx, ebx
mov rcx, rsi
call fcn.140004650
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140005c69
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.1400907e0
test eax, eax
je 0x140005ca8
cmp eax, 0xc
je 0x140005ca2
cmp eax, 0x16
je 0x140005c9c
cmp eax, 0x22
je 0x140005c9c
cmp eax, 0x50
je 0x140005ca8
call fcn.140036eec
int3
call fcn.140036eec
int3
call fcn.140036ea4
int3
test ebx, ebx
js 0x140005cc7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140005cc7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140005cd4
mov ecx, 0x80070057
call fcn.140001610
int3
xor eax, eax
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 0x140008f50
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp dword [rcx + 0x298], 0
je 0x14000904c
call fcn.14004b0d0
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140008f90
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rdx, str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall
test rdx, 0xffffffffffff0000
jne 0x140008fd8
movzx edi, dx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140008fe7
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005b70
mov rbx, qword [rsp + 0x50]
jmp 0x140008fe7
lea rcx, [rsp + 0x50]
call fcn.140005ff0
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov ecx, 0x80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete dil
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000902a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14000904c
lea rdx, str.0A46A65D_89AC_464C_8026_3CD44960BD04
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000af60
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x480
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x38], 0
call fcn.14004b0d0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14000afc3
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [0x1400deee8]
test rdx, 0xffffffffffff0000
jne 0x14000afff
movzx edi, dx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14000b008
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140005b70
jmp 0x14000b008
mov rcx, rbx
call fcn.140005ff0
nop
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
je 0x14000b0b8
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b0b8
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x260]
lea rdx, str._sinf_s
mov rcx, rbx
call fcn.140006a00
mov rax, rbx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140090480
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400155b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rsi, rdx
call fcn.14004b0d0
mov rdx, rax
xor ebx, ebx
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400155f0
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r12, [0x1400debf8]
or rbp, 0xffffffffffffffff
test r12, 0xffffffffffff0000
jne 0x140015638
movzx edi, r12w
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x140015658
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005b70
jmp 0x140015658
xor eax, eax
mov rcx, rbp
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140005dc0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersion
mov ecx, 0x80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001572c
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x80], 0x104
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.ProgramFilesDir
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015720
test rsi, rsi
jne 0x1400156d7
mov ecx, ebx
jmp 0x1400156e9
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140005dc0
xor r11d, r11d
mov rdi, r12
mov rsi, qword [rsp + 0x30]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140015715
sbb r11d, r11d
sbb r11d, 0xffffffff
test r11d, r11d
sete al
test al, al
sete bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14001574a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x14001d9b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x20], 0
mov r8, qword [rdx]
lea rdx, [0x1400decd0]
lea rcx, [rsp + 0x40]
call fcn.140003500
lea r9, [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 0x24]
lea rcx, [rsp + 0x40]
call fcn.1400027c0
test eax, eax
je 0x14001da2f
mov r8d, eax
mov edx, 3
mov rcx, rbx
call fcn.14000b6d0
jmp 0x14001da72
lea rdx, [0x1400decf4]
lea rcx, [rsp + 0x40]
call fcn.140090770
mov word [rax], 0x2e
mov word [rax + 2], 0x50
mov word [rax + 4], 0x4e
mov word [rax + 6], 0x46
mov edx, 0x80
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbx
call fcn.1400151d0
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001da9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001daa0
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140090480
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x14002eac0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x14002ebbf
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x14002eb96
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140011950
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.14002eac0
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002eb7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x14002eb86
jmp 0x14002eb96
jmp 0x14002eb16
cmp ebx, 0x103
je 0x14002eba6
cmp ebx, 0x3f2
jne 0x14002ebb4
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140090480
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14003bc2c
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.14004f1f4
test rax, rax
mov rsi, rax
je 0x14003bca9
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
test rbx, rbx
movzx edi, ax
je 0x14003bca4
cmp dword [rbx], 0x38
jb 0x14003bca4
mov rax, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14003bca4
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14003bcad
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 0x14003cfc4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.14003a964
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x14003cffb
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14003cffb
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x14003d02b
test rbx, rbx
je 0x14003d02b
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14003d02b
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140040a9c
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x130
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov esi, r8d
mov r12, rdx
mov rbp, rcx
lea rcx, [rsp + 0x40]
call fcn.14002ccf0
lea rcx, [rsp + 0x80]
call fcn.14003cd9c
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_GetTopWindow]
mov rdi, rax
test rax, rax
je 0x140040be2
mov qword [rsp + 0xc0], rdi
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx ecx, ax
mov dword [rsp + 0x48], ecx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov rcx, rdi
call fcn.14003f4f8
test rax, rax
je 0x140040b49
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor edx, edx
mov r8d, 0xbd11ffff
mov rcx, rax
call fcn.14002cab4
test eax, eax
jne 0x140040bc8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
or r8d, 0xffffffff
mov edx, dword [rsp + 0x48]
mov rcx, rbp
call fcn.14002cab4
test eax, eax
jne 0x140040bc8
mov ebx, esi
test esi, esi
je 0x140040bb8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x140040b92
xor ebx, ebx
jmp 0x140040bb8
lea rcx, [rsp + 0x80]
call fcn.140044a24
and eax, 0xf
cmp eax, 3
je 0x140040bb6
cmp eax, 6
je 0x140040bb6
cmp eax, 7
je 0x140040bb6
cmp eax, 9
jne 0x140040bb8
xor ebx, ebx
mov r8d, ebx
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14002cd20
mov edx, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindow]
mov rdi, rax
test rax, rax
jne 0x140040af8
and qword [rsp + 0xc0], 0
lea rcx, [rsp + 0x80]
call fcn.1400403f4
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140041488
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0xa0], 0
mov rbx, rdx
mov rsi, rcx
jne 0x140041540
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r8, qword [rbx]
mov edx, 1
mov ecx, dword [r8 - 0xc]
sub edx, dword [r8 - 8]
movsxd rdi, eax
sub ecx, edi
or edx, ecx
jge 0x1400414d8
mov edx, edi
mov rcx, rbx
call fcn.140004650
test edi, edi
mov rdx, qword [rbx]
js 0x140041535
cmp edi, dword [rdx - 0xc]
jg 0x140041535
mov dword [rdx - 0x10], edi
mov rax, qword [rbx]
lea r8d, [rdi + 1]
and word [rax + rdi*2], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140041509
xor eax, eax
jmp 0x140041512
call fcn.140093820
test eax, eax
js 0x14004152a
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14004152a
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
and word [rax + rcx*2], 0
jmp 0x140041550
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov rcx, qword [rcx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x118]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400446c0
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
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x140044728
call fcn.14003a8a8
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140044728
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x14004474a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14004411c
test rdi, rdi
mov esi, eax
je 0x140044748
test rbx, rbx
je 0x140044748
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 0x1400456c0
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 + 0xa0], 0
jne 0x1400456fe
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1400457b2
call fcn.14004b0d0
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14004571d
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
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.140092330
test eax, eax
je 0x140045785
cmp eax, 0xc
je 0x14004577f
cmp eax, 0x16
je 0x140045779
cmp eax, 0x22
je 0x140045779
cmp eax, 0x50
je 0x140045785
call fcn.140036eec
int3
call fcn.140036eec
int3
call fcn.140036ea4
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
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 0x1400457b0
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
Function at 0x140046f24
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov ebx, edx
mov rdi, rcx
call fcn.140045d10
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, ebx
call fcn.14004487c
cmp dword [rdi], 0
mov rcx, qword [rsp + 0x30]
je 0x140047017
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, 1
test eax, eax
movsxd rbx, eax
jle 0x140046fad
mov rcx, qword [rsi]
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, ebx
or edx, ecx
jge 0x140046f89
mov edx, ebx
mov rcx, rsi
call fcn.140004650
mov rdx, qword [rsi]
cmp ebx, dword [rdx - 0xc]
jg 0x140046fa2
mov dword [rdx - 0x10], ebx
mov rax, qword [rsi]
lea r8d, [rbx + 1]
and word [rax + rbx*2], 0
jmp 0x140046fd4
mov ecx, 0x80070057
call fcn.140001610
int3
mov rax, qword [rsi]
mov ecx, 0xff
sub edx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ecx
or edx, eax
jge 0x140046fcb
mov edx, ecx
mov rcx, rsi
call fcn.140004650
mov rdx, qword [rsi]
mov r8d, 0x100
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rsi]
test rcx, rcx
jne 0x140046feb
xor eax, eax
jmp 0x140046ff4
call fcn.140093820
test eax, eax
js 0x14004700c
mov rcx, qword [rsi]
cmp eax, dword [rcx - 0xc]
jg 0x14004700c
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsi]
and word [rax + rcx*2], 0
jmp 0x14004703c
mov ecx, 0x80070057
call fcn.140001610
int3
mov r9, qword [rsi]
or r8, 0xffffffffffffffff
mov edx, 0x14d
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
jne 0x14004703c
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x30]
call fcn.14004ee58
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004d38c
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 + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14004d403
call fcn.14004d318
test rax, rax
mov rsi, rax
jne 0x14004d3bf
mov eax, edi
jmp 0x14004d419
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_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14004d3bb
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14004d4ec
Capabilities:
Delete registry key
Delete registry value
Set registry value

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, 0x30
xor ebx, ebx
mov rdi, r9
mov rbp, r8
cmp qword [rcx + 0xa8], rbx
mov rsi, rdx
je 0x14004d5b3
cmp r8, rbx
jne 0x14004d547
call fcn.14004d214
cmp rax, rbx
mov rdi, rax
jne 0x14004d536
xor eax, eax
jmp 0x14004d5c9
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rdi
jmp 0x14004d5a2
cmp r9, rbx
jne 0x14004d567
call fcn.14004d318
cmp rax, rbx
mov rdi, rax
je 0x14004d52f
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14004d542
call fcn.14004d318
cmp rax, rbx
mov r12, rax
je 0x14004d52f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
lea eax, [rax + rax + 2]
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, r12
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
sete bl
mov eax, ebx
jmp 0x14004d5c9
mov r9, qword [rcx + 0xd0]
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
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 0x14004ee58
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x220], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x14004ee8d
call fcn.140036eec
int3
test rdx, rdx
jne 0x14004ee98
call fcn.140036eec
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x1fe
mov esi, eax
call fcn.140091a50
mov r8d, 0x100
cmp esi, r8d
ja 0x14004eeea
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x14004eeea
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14004eef6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140090480
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret