joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011750
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.140058dec
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
cmp rax, rdi
je 0x1400117ac
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.1400111e0
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 0x140011840
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 + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x14001187f
cmp dword [rcx + 0xa8], 0
jne 0x14001187f
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140058dec
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
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.1400117e4
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 0x140016a50
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.140092070
mov rsi, rax
test rax, rax
je 0x140016acc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140016ac7
cmp dword [rbx], 0x40
jb 0x140016ac7
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_SendMessageW]
bt rax, 0xd
jb 0x140016ac7
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140016ad0
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 0x14001e108
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 0x14001e170
call fcn.140058dec
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 0x14001e170
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14001e192
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001db18
mov esi, eax
test rdi, rdi
je 0x14001e190
test rbx, rbx
je 0x14001e190
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 0x140034704
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movzx ebx, dx
xor r15d, r15d
mov r14d, r9d
mov rbp, r8
mov r12d, edx
mov rdi, rcx
cmp rbx, r15
jne 0x14003473e
call fcn.1400129dc
int3
call fcn.140058dec
mov r8d, 0xf1
mov rdx, rbx
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
cmp rax, r15
jne 0x140034765
xor eax, eax
jmp 0x1400348ff
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
mov qword [rsp + 0x30], rax
cmp rax, r15
je 0x14003475e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp rax, r15
je 0x14003475e
movzx ecx, word [rax + 6]
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400071ac
xor r9d, r9d
mov r15, rax
cmp rax, r9
jne 0x1400347bf
call fcn.1400129dc
int3
movzx eax, word [rbx + 2]
movzx ecx, word [rbx + 4]
cmp r14d, r9d
je 0x1400347f6
mov dword [rsp + 0x20], eax
add eax, 6
mov dword [rsp + 0x24], ecx
mov r8, qword [rsp + 0x20]
mov dword [rsp + 0x28], eax
lea eax, [rcx + 6]
mov dword [rsp + 0x2c], eax
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
call fcn.14002ace0
jmp 0x14003481b
mov dword [rsp + 0x28], eax
add eax, 6
mov dword [rsp + 0x2c], ecx
mov rdx, qword [rsp + 0x28]
mov dword [rsp + 0x20], eax
lea eax, [rcx + 6]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x20]
call fcn.14002abd4
mov esi, 1
cmp dword [rbp + 4], r9d
jne 0x14003482a
mov dword [rbp + 4], r12d
cmp dword [rdi + 0x1200], r9d
jne 0x140034851
mov rax, qword [rdi]
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x620]
xor r9d, r9d
cmp eax, r9d
je 0x1400348ec
mov eax, dword [rdi + 0x104c]
mov r14d, r9d
mov dword [rsp + 0x20], eax
cmp r9w, word [rbx + 6]
jae 0x1400348c2
mov r13d, dword [rsp + 0x98]
mov rbp, r15
lea r12, [rbx + 8]
movzx edx, word [r12]
mov dword [rbp], edx
cmp r13d, r9d
jne 0x1400348a1
cmp edx, r9d
jbe 0x1400348a1
lea rcx, vtable.CMap_unsigned_int__unsigned_int__int__int_.0
call fcn.1400c28cc
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
add ecx, esi
xor r9d, r9d
mov dword [rsp + 0x20], ecx
movzx eax, word [rbx + 6]
add r14d, esi
add r12, 2
add rbp, 4
cmp r14d, eax
jl 0x140034874
mov r13, qword [rsp + 0x30]
mov r12d, dword [rsp + 0x88]
mov rax, qword [rdi]
mov dword [rdi + 0x1200], r12d
movzx r8d, word [rbx + 6]
mov r9d, esi
mov rdx, r15
mov rcx, rdi
call qword [rax + 0x630]
mov esi, eax
test eax, eax
jne 0x1400348ec
and dword [rdi + 0x1200], eax
mov rcx, r15
call fcn.1400071f0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038c38
Capabilities:
Log keystrokes via polling

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
cmp dword [rdx + 8], 0x100
mov rbp, rdx
mov rbx, rcx
jne 0x140038d1f
xor edx, edx
call fcn.14002c08c
mov rcx, rbx
test rax, rax
je 0x140038c80
mov rdx, rbp
call fcn.1400cd6f8
jmp 0x140038d2a
call fcn.14002bad4
cmp dword [rbx + 0x128c], 0
mov esi, eax
je 0x140038c96
sub esi, dword [rbx + 0x1280]
mov r12d, dword [rbx + 0x1038]
test r12d, r12d
js 0x140038d1f
cmp r12d, esi
jge 0x140038d1f
mov edi, dword [rbp + 0x10]
cmp edi, 9
jne 0x140038cc4
lea ecx, [rdi + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 0x80
neg al
sbb edi, edi
and edi, 0xfffffffe
add edi, 0x27
mov rcx, rbx
call fcn.14000fdf4
bt eax, 0x16
jae 0x140038ce6
mov eax, 0x25
cmp edi, eax
jne 0x140038ce0
lea edi, [rax + 2]
jmp 0x140038ce6
cmp edi, 0x27
cmove edi, eax
sub edi, 0xd
je 0x140038deb
sub edi, 0xe
je 0x140038dc6
sub edi, 0xa
je 0x140038db2
sub edi, 2
je 0x140038d62
mov rcx, rbx
cmp edi, 1
je 0x140038d45
mov r8, qword [rbx]
mov edx, dword [rbp + 0x10]
call qword [r8 + 0x6e0]
test eax, eax
jne 0x140038d5b
mov rdx, rbp
mov rcx, rbx
call fcn.14003705c
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
mov edx, dword [rbx + 0x1038]
call fcn.14002b280
mov rcx, rbx
mov rdx, rax
call fcn.14002fa4c
mov eax, 1
jmp 0x140038d2a
inc dword [rbx + 0x1038]
cmp dword [rbx + 0x1038], esi
jl 0x140038d77
and dword [rbx + 0x1038], 0
mov edx, r12d
mov rcx, rbx
call fcn.14002d6cc
mov edx, dword [rbx + 0x1038]
mov rcx, rbx
call fcn.14002d6cc
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r11, qword [rbx]
mov edx, dword [rbx + 0x1038]
mov rcx, rbx
call qword [r11 + 0x468]
jmp 0x140038d1f
add dword [rbx + 0x1038], 0xffffffff
jns 0x140038d77
lea eax, [rsi - 1]
mov dword [rbx + 0x1038], eax
jmp 0x140038d77
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x678]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x680]
and dword [0x140255d00], 0
jmp 0x140038d1f
mov edx, dword [rbx + 0x1038]
mov rcx, rbx
call fcn.14002b280
mov rcx, rbx
mov rdx, rax
call fcn.14002fa4c
test eax, eax
jne 0x140038d5b
mov edx, dword [rbx + 0x1038]
mov rcx, rbx
call fcn.14002b280
mov rcx, rbx
mov rdx, rax
call fcn.140032344
jmp 0x140038d5b
Function at 0x1400407f4
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
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
cmp dword [0x1402567a8], ebx
jne 0x140040823
xor eax, eax
jmp 0x140040898
cmp r8, rbx
jne 0x140040831
call fcn.140058dec
mov rdi, qword [rax + 0x18]
mov r8, qword [0x140255e48]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
cmp rax, rbx
je 0x14004081f
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
cmp rax, rbx
je 0x14004081f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
cmp rax, rbx
je 0x14004088d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.1400406b0
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140058ebc
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140058edf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.1400c4af8
add rsp, 0x20
pop rbx
ret

Function at 0x140058ee8
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140058f0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.1400c4af8
add rsp, 0x20
pop rbx
ret

Function at 0x1400615cc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
lea rax, vtable.CMFCBaseVisualManager.0
mov rbx, rcx
mov qword [rcx], rax
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x38], rdi
mov qword [rcx + 0x40], rdi
mov qword [rcx + 0x48], rdi
mov qword [rcx + 0x50], rdi
mov qword [rcx + 0x58], rdi
mov qword [rcx + 0x60], rdi
mov qword [rcx + 0x68], rdi
mov qword [rcx + 0x70], rdi
mov qword [rcx + 0x78], rdi
mov qword [rcx + 0x80], rdi
mov qword [rcx + 0x88], rdi
lea rcx, str.UxTheme.dll
call fcn.140059048
mov qword [rbx + 0x90], rax
cmp rax, rdi
je 0x14006170e
lea rdx, str.OpenThemeData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.CloseThemeData
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.DrawThemeBackground
mov qword [rbx + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeColor
mov qword [rbx + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysColor
mov qword [rbx + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetCurrentThemeName
mov qword [rbx + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetWindowTheme
mov qword [rbx + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [rbx + 0xc8], rax
call fcn.140060dac
jmp 0x14006173f
mov qword [rbx + 0x98], rdi
mov qword [rbx + 0xa0], rdi
mov qword [rbx + 0xa8], rdi
mov qword [rbx + 0xb0], rdi
mov qword [rbx + 0xb8], rdi
mov qword [rbx + 0xc0], rdi
mov qword [rbx + 0xc8], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140095084
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.UxTheme.dll
call fcn.140059048
mov qword [rbx + 0x2b8], rax
test rax, rax
je 0x14009510f
lea rdx, str.DrawThemeParentBackground
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2b8]
lea rdx, str.DrawThemeTextEx
mov qword [rbx + 0x2d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2b8]
lea rdx, str.BeginBufferedPaint
mov qword [rbx + 0x2e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2b8]
lea rdx, str.EndBufferedPaint
mov qword [rbx + 0x2e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x2f0], rax
jmp 0x14009512f
and qword [rbx + 0x2d8], 0
and qword [rbx + 0x2e0], 0
and qword [rbx + 0x2e8], 0
and qword [rbx + 0x2f0], 0
lea rcx, [0x1401cfd10]
call fcn.140059048
cmp dword [rbx + 0x258], 0
mov qword [rbx + 0x2c0], rax
jne 0x140095155
and qword [rbx + 0x2d0], 0
jmp 0x140095175
test rax, rax
je 0x140095218
lea rdx, str.SetLayeredWindowAttributes
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x2d0], rax
cmp qword [rbx + 0x2c8], 0
je 0x1400951ea
lea rcx, str.dwmapi.dll
call fcn.140059048
mov qword [rbx + 0x2c8], rax
test rax, rax
jne 0x14009519d
call fcn.1400129dc
int3
lea rdx, str.DwmExtendFrameIntoClientArea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2c8]
lea rdx, str.DwmDefWindowProc
mov qword [rbx + 0x2f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x2c8]
lea rdx, str.DwmIsCompositionEnabled
mov qword [rbx + 0x300], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x308], rax
cmp dword [rbx + 0x274], 0
je 0x1400951fd
mov dword [rbx + 0x274], 1
call fcn.14007f438
mov rcx, qword [0x140256188]
test rcx, rcx
je 0x140095213
call fcn.140061544
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400a1880
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x140256c90], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1400a18d4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a18c4
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140256c88], rax
jmp 0x1400a18cb
mov rax, qword [0x140256c88]
mov byte [0x140256c90], 1
jmp 0x1400a18db
mov rax, qword [0x140256c88]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400a18f1
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1400a18f7
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a1a70
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
je 0x1400a1a81
xor eax, eax
jmp 0x1400a1aaf
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400a1ab8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
cmp dword [rcx + 0x20], ebx
je 0x1400a1ae0
xor eax, eax
jmp 0x1400a1b1f
cmp r8, rbx
jne 0x1400a1aec
mov eax, SafeArrayGetDim
jmp 0x1400a1b18
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi + 8]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a1c44
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
je 0x1400a1c55
xor eax, eax
jmp 0x1400a1c79
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400a1c80
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
cmp eax, edx
jne 0x1400a1cc2
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
cmp eax, edx
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x1400a1dd4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1400a1dff
call fcn.1400129dc
int3
test rbx, rbx
jne 0x1400a1e0a
call fcn.1400129dc
int3
test r9, r9
jne 0x1400a1e15
call fcn.1400129dc
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a1e98
cmp dword [rsp + 0x48], 3
jne 0x1400a1e98
test eax, eax
jne 0x1400a1e98
cmp dword [rdi], eax
je 0x1400a1e98
mov ecx, dword [rdi]
call fcn.1400071ac
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a1e8c
cmp dword [rsp + 0x48], 3
jne 0x1400a1e8c
test eax, eax
jne 0x1400a1e8c
mov eax, 1
jmp 0x1400a1e9a
mov rcx, qword [rbx]
call fcn.1400071f0
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a1fa4
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, ecx
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1400a1fc0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14024f530]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400a20cd
test rcx, rcx
je 0x1400a2035
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov dword [rsp + 0x50], edi
xor edi, edi
mov qword [rsp + 0x48], rcx
cmp ebx, edi
jmp 0x1400a2067
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400a1fc0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
cmp eax, edi
jne 0x1400a20cf
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
je 0x1400a204f
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x1400a20b5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.1400a1880
mov rcx, qword [rsp + 0x48]
mov ebx, eax
jmp 0x1400a20cf
xor edi, edi
cmp rcx, rdi
je 0x1400a20da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140182850
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a22d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov rsi, rdx
mov r12, rcx
cmp rdx, rbx
jne 0x1400a22f8
call fcn.1400129dc
int3
mov rcx, r8
call fcn.140006540
mov rcx, qword [r12 + 8]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x78], ebx
mov edi, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1400a2351
cmp dword [rsp + 0x68], 1
je 0x1400a2341
cmp dword [rsp + 0x68], 2
jne 0x1400a2351
mov edi, dword [rsp + 0x78]
mov eax, ebx
shr edi, 1
mov dword [rsp + 0x30], edi
cmp eax, ebx
je 0x1400a2355
xor eax, eax
jmp 0x1400a23ca
cmp edi, ebx
jne 0x1400a2360
mov eax, 1
jmp 0x1400a23ca
lea r8d, [rdi + 1]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.1400071ac
lea r9, [rsp + 0x30]
lea rcx, [r12 + 8]
mov r8, rax
mov rdx, rsi
mov rdi, rax
call fcn.1400a19b4
mov esi, ebx
cmp eax, ebx
sete sil
cmp esi, ebx
je 0x1400a23c0
cmp rdi, rbx
je 0x1400a23b2
mov rcx, rdi
call fcn.140184358
mov ebx, eax
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call fcn.1400065c0
mov rcx, rdi
call fcn.1400071f0
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret