joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400157e0
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.14004b378
mov rdx, rax
xor ebx, ebx
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x140015820
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, [0x1400dec08]
or rbp, 0xffffffffffffffff
test r12, 0xffffffffffff0000
jne 0x140015868
movzx edi, r12w
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x140015888
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005c00
jmp 0x140015888
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.140005e50
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 0x14001595c
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 0x140015950
test rsi, rsi
jne 0x140015907
mov ecx, ebx
jmp 0x140015919
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.140005e50
xor r11d, r11d
mov rdi, r12
mov rsi, qword [rsp + 0x30]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140015945
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 0x14001597a
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 0x14001dc20
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, [0x1400dece0]
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 0x14001dc9f
mov r8d, eax
mov edx, 3
mov rcx, rbx
call fcn.14000b760
jmp 0x14001dce2
lea rdx, [0x1400ded04]
lea rcx, [rsp + 0x40]
call fcn.140090a10
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.140015400
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001dd0e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001dd10
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140090720
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x14002ed68
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 0x14002ee67
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 0x14002ee3e
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.1400119e0
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.14002ed68
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 0x14002ee25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x14002ee2e
jmp 0x14002ee3e
jmp 0x14002edbe
cmp ebx, 0x103
je 0x14002ee4e
cmp ebx, 0x3f2
jne 0x14002ee5c
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.140090720
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14003bed4
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.14004f49c
test rax, rax
mov rsi, rax
je 0x14003bf51
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
test rbx, rbx
movzx edi, ax
je 0x14003bf4c
cmp dword [rbx], 0x38
jb 0x14003bf4c
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 0x14003bf4c
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14003bf55
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 0x14003d26c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.14003ac0c
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x14003d2a3
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14003d2a3
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 0x14003d2d3
test rbx, rbx
je 0x14003d2d3
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14003d2d3
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 0x140040d44
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.14002cf98
lea rcx, [rsp + 0x80]
call fcn.14003d044
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_GetTopWindow]
mov rdi, rax
test rax, rax
je 0x140040e8a
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.14003f7a0
test rax, rax
je 0x140040df1
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor edx, edx
mov r8d, 0xbd11ffff
mov rcx, rax
call fcn.14002cd5c
test eax, eax
jne 0x140040e70
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
or r8d, 0xffffffff
mov edx, dword [rsp + 0x48]
mov rcx, rbp
call fcn.14002cd5c
test eax, eax
jne 0x140040e70
mov ebx, esi
test esi, esi
je 0x140040e60
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 0x140040e3a
xor ebx, ebx
jmp 0x140040e60
lea rcx, [rsp + 0x80]
call fcn.140044ccc
and eax, 0xf
cmp eax, 3
je 0x140040e5e
cmp eax, 6
je 0x140040e5e
cmp eax, 7
je 0x140040e5e
cmp eax, 9
jne 0x140040e60
xor ebx, ebx
mov r8d, ebx
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14002cfc8
mov edx, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindow]
mov rdi, rax
test rax, rax
jne 0x140040da0
and qword [rsp + 0xc0], 0
lea rcx, [rsp + 0x80]
call fcn.14004069c
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 0x140041730
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 0x1400417e8
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 0x140041780
mov edx, edi
mov rcx, rbx
call fcn.140004650
test edi, edi
mov rdx, qword [rbx]
js 0x1400417dd
cmp edi, dword [rdx - 0xc]
jg 0x1400417dd
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 0x1400417b1
xor eax, eax
jmp 0x1400417ba
call fcn.140093ac0
test eax, eax
js 0x1400417d2
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400417d2
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
and word [rax + rcx*2], 0
jmp 0x1400417f8
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 0x140044968
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 0x1400449d0
call fcn.14003ab50
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400449d0
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x1400449f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1400443c4
test rdi, rdi
mov esi, eax
je 0x1400449f0
test rbx, rbx
je 0x1400449f0
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 0x140045968
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 0x1400459a6
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140045a5a
call fcn.14004b378
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400459c5
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.1400925d0
test eax, eax
je 0x140045a2d
cmp eax, 0xc
je 0x140045a27
cmp eax, 0x16
je 0x140045a21
cmp eax, 0x22
je 0x140045a21
cmp eax, 0x50
je 0x140045a2d
call fcn.140037194
int3
call fcn.140037194
int3
call fcn.14003714c
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 0x140045a58
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 0x1400471cc
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.140045fb8
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, ebx
call fcn.140044b24
cmp dword [rdi], 0
mov rcx, qword [rsp + 0x30]
je 0x1400472bf
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, 1
test eax, eax
movsxd rbx, eax
jle 0x140047255
mov rcx, qword [rsi]
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, ebx
or edx, ecx
jge 0x140047231
mov edx, ebx
mov rcx, rsi
call fcn.140004650
mov rdx, qword [rsi]
cmp ebx, dword [rdx - 0xc]
jg 0x14004724a
mov dword [rdx - 0x10], ebx
mov rax, qword [rsi]
lea r8d, [rbx + 1]
and word [rax + rbx*2], 0
jmp 0x14004727c
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 0x140047273
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 0x140047293
xor eax, eax
jmp 0x14004729c
call fcn.140093ac0
test eax, eax
js 0x1400472b4
mov rcx, qword [rsi]
cmp eax, dword [rcx - 0xc]
jg 0x1400472b4
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsi]
and word [rax + rcx*2], 0
jmp 0x1400472e4
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 0x1400472e4
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x30]
call fcn.14004f100
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004d634
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 0x14004d6ab
call fcn.14004d5c0
test rax, rax
mov rsi, rax
jne 0x14004d667
mov eax, edi
jmp 0x14004d6c1
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 0x14004d663
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 0x14004d794
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 0x14004d85b
cmp r8, rbx
jne 0x14004d7ef
call fcn.14004d4bc
cmp rax, rbx
mov rdi, rax
jne 0x14004d7de
xor eax, eax
jmp 0x14004d871
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rdi
jmp 0x14004d84a
cmp r9, rbx
jne 0x14004d80f
call fcn.14004d5c0
cmp rax, rbx
mov rdi, rax
je 0x14004d7d7
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14004d7ea
call fcn.14004d5c0
cmp rax, rbx
mov r12, rax
je 0x14004d7d7
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 0x14004d871
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 0x14004f100
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 0x14004f135
call fcn.140037194
int3
test rdx, rdx
jne 0x14004f140
call fcn.140037194
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.140091cf0
mov r8d, 0x100
cmp esi, r8d
ja 0x14004f192
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x14004f192
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14004f19e
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140090720
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004fdb0
Capabilities:
Set thread local storage 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
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x14004fe3d
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x14004fe09
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x14004fe09
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x14004fe29
xor esi, esi
jmp 0x14004fe29
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x14004fe20
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x14004fde9
test esi, esi
je 0x14004fe84
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.14004f84c
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
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 0x1400515d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov rbp, rdx
cmp r8, rbx
mov rdi, rcx
jne 0x140051623
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8d, [rbx + 1]
mov r9, rbp
add eax, eax
mov rdx, rdi
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
cmp eax, ebx
sete bl
mov eax, ebx
jmp 0x140051687
mov rdx, rcx
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebx
jne 0x140051685
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x140051685
cmp edi, ebx
jne 0x140051685
mov eax, 1
jmp 0x140051687
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400517a8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0x240], rax
call fcn.140094170
test rax, rax
mov rdi, rax
je 0x14005186a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, 1
movsxd rcx, eax
lea rax, [rdi + rcx*2]
jmp 0x14005185b
and word [rax], 0
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140051860
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x105
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rcx, qword [rsp + 0x20]
xor ebx, ebx
test eax, eax
cmove ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140051860
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dx, VarDateFromDisp
mov rcx, rdi
call fcn.1400909e0
test rax, rax
jne 0x1400517f4
mov rcx, rdi
call fcn.140093a70
mov eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140090720
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140055acc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [rdx]
and qword [rsp + 0x38], 0
xor esi, esi
lea r8d, [rsi + 1]
mov rbx, rdx
mov edx, 0x104
sub r8d, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov rdi, rcx
sub eax, edx
or r8d, eax
jge 0x140055b08
mov rcx, rbx
call fcn.140004650
mov rbp, qword [rbx]
and dword [rsp + 0x70], esi
lea r8, [rsp + 0x38]
lea rdx, str.CLSID
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x68], 0x208
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140055bc4
mov rcx, qword [rsp + 0x38]
and qword [rsp + 0x30], rsi
lea r8, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140055bb9
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x78], rsi
lea r8, [rsp + 0x78]
lea rdx, str.InProcServer32
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140055bae
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400dec08]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x78]
test eax, eax
sete sil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140055bd0
xor eax, eax
jmp 0x140055bd9
call fcn.140093ac0
test eax, eax
js 0x140055bfe
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140055bfe
mov dword [rcx - 0x10], eax
mov rcx, qword [rbx]
mov rbx, qword [rsp + 0x60]
movsxd rdx, eax
mov eax, esi
and word [rcx + rdx*2], 0
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140001610
int3