joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b770
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov eax, dword [rcx + 8]
xor ebx, ebx
sub eax, 0x100
mov rdi, rcx
test eax, 0xfffffffd
jne 0x14002b8ee
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
mov qword [rsp + 0x70], rax
lea rdx, str.Edit
mov rbp, rax
call fcn.1400292d8
test al, al
je 0x14002b8ee
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
call fcn.14002bec0
test rax, rax
je 0x14002b8ee
cmp dword [0x140078090], 3
mov esi, ebx
jne 0x14002b7f1
mov rax, qword [0x140078ab8]
jmp 0x14002b7fd
mov rax, qword [0x140078560]
test rax, rax
je 0x14002b804
mov rsi, qword [rax + 0xb0]
cmp dword [rdi + 8], 0x102
jne 0x14002b8da
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x14002b83c
cmp qword [rdi + 0x10], 1
jne 0x14002b83c
or r9, 0xffffffffffffffff
mov edx, 0xb1
xor r8d, r8d
mov rcx, rbp
jmp 0x14002b8d2
cmp dword [rdi + 8], 0x102
jne 0x14002b8da
cmp qword [rdi + 0x10], 0xd
jne 0x14002b8da
mov rcx, qword [rdi]
cmp rcx, rsi
je 0x14002b8da
cmp byte [0x140078096], bl
je 0x14002b872
call qword [sym.imp.USER32.dll_GetParent]
mov r8d, 0x104
jmp 0x14002b8c7
cmp byte [0x140078097], bl
je 0x14002b8ec
mov rax, qword [0x140078080]
mov edx, 0xfa3
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14002b8b6
cmp rax, 1
jne 0x14002b8ec
mov ebx, 0xfaf
jmp 0x14002b8bb
mov ebx, 0xfa9
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetParent]
mov r8, rbx
mov edx, 0x111
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14002b8ec
mov rcx, rdi
call qword [sym.imp.USER32.dll_TranslateMessage]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov bl, 1
mov al, bl
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002d438
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rsp + 0x430], rax
lea rbp, [rcx + 0x20]
mov rbx, rcx
mov rcx, rbp
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.SHLWAPI.dll_SHStripMneumonicW]
mov r14d, dword [rbx + 0x428]
xor r15d, r15d
cmp r14d, 0xffffffff
je 0x14002d4b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x200
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x14002d4ac
mov word [rsp + 0x30], r15w
lea rdx, [rsp + 0x30]
jmp 0x14002d4b6
mov rdx, rbp
mov rcx, qword [rbx + 0x18]
call fcn.140001608
call qword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x14002d5b4
call fcn.140015d8c
test al, al
jne 0x14002d5b4
mov eax, dword [rbx]
test eax, eax
je 0x14002d4f6
mov r8d, dword [rbx + 0x10]
test r8d, r8d
je 0x14002d4f6
mov rdx, rdi
mov rcx, rsi
call fcn.14002d900
mov eax, dword [rbx]
mov rcx, qword [rbx + 0x18]
mov r8d, 0x200
test eax, eax
je 0x14002d50f
mov rdx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14002d542
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x14002d542
mov rcx, qword [rbx + 0x18]
mov r8d, 0x200
mov rdx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx + 0x18]
lea rdx, [0x140063788]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [rbx + 0x14]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetTextColor]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [rbx + 0x428]
mov r14d, eax
cmp ecx, 0x1f47
jne 0x14002d573
add dword [rdi + 0xc], 0xfffffffd
jmp 0x14002d58d
cmp ecx, 0x1f49
jne 0x14002d581
add dword [rdi + 0xc], 3
jmp 0x14002d58d
cmp ecx, 0x1f86
jne 0x14002d58d
add dword [rdi + 0xc], 0xfffffff9
mov r9, rdi
mov dword [rsp + 0x20], 0x25
or r8d, 0xffffffff
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawTextW]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetBkMode]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0x488]
add rsp, 0x440
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400389d4
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 r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r8d, 0x17
mov rcx, qword [rcx + 0x18]
mov r12, r9
mov edi, 0x80004005
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor esi, esi
mov r14, rax
test rax, rax
je 0x140038ab1
mov rcx, qword [rbp + 0x18]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
shr ebx, 1
je 0x140038ac5
mov rcx, qword [rbp + 0x18]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140038ab1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x140038ac5
lea ecx, [rbx + 1]
mov edi, esi
lea eax, [rsi + 2]
mul rcx
lea rbp, [rsi - 1]
cmovo rax, rbp
mov rcx, rax
call fcn.14005acc0
add rbx, rbx
mov rdx, r15
mov r8, rbx
mov rcx, rax
mov r14, rax
call sub.msvcrt.dll_memcpy
mov word [rbx + r14], si
test r14, r14
je 0x140038a99
inc rbp
cmp word [r14 + rbp*2], si
jne 0x140038a8d
mov esi, ebp
mov r8d, esi
mov rdx, r14
mov rcx, r12
call fcn.140001970
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x140038ac5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140039fc4
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, qword [0x140077b10]
mov rbx, rcx
test rdx, rdx
jne 0x140039ff1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, rax
mov qword [0x140077b10], rax
mov rax, qword [0x140077b08]
test rax, rax
jne 0x14003a01c
xor r9d, r9d
lea edx, [rax + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, qword [0x140077b10]
mov qword [0x140077b08], rax
test rdx, rdx
je 0x14003a06d
test rax, rax
je 0x14003a06d
mov rcx, qword [0x140077b00]
test rcx, rcx
jne 0x14003a063
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140039ee0]
and dword [rsp + 0x20], ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x140077b00], rax
mov rax, qword [0x140077b08]
xor edx, edx
test rcx, rcx
setne dl
jmp 0x14003a06f
xor edx, edx
test edx, edx
je 0x14003a090
mov rcx, rax
mov qword [0x140077af8], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140077b10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
add rsp, 0x30
pop rbx
ret
Function at 0x14003a9b4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x110
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, rdi
lea rdx, [rsp + 0x30]
mov r8d, 0x64
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rdx, rdi
mov rcx, rbx
mov r8d, eax
call fcn.14003a6ac
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClientRect]
mov rdx, qword [0x1400780e0]
lea r8, [rsp + 0x20]
mov r9d, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [0x1400780e0]
lea rdx, [rsp + 0x20]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x1400780e0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0x130]
add rsp, 0x110
pop rdi
ret

Function at 0x14003af1c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x18]
add edx, 0x2bc
movzx esi, r8w
mov rcx, qword [rax + 8]
mov rbx, qword [rcx + 8]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
lea rdx, [rsp + 0x20]
xor eax, eax
mov rcx, rdi
mov dword [rsp + 0x20], eax
lea r8d, [rax + 2]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x20], si
je 0x14003b00e
lea rdx, [rsp + 0x28]
mov word [rsp + 0x20], si
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClientRect]
mov r9d, 2
lea r8, [rsp + 0x28]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, 0x435
mov rcx, rbx
mov edx, esi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9d, 2
lea r8, [rsp + 0x28]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.USER32.dll_InvalidateRect]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_UpdateWindow]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14003d82c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rdi, r8
mov rbx, rcx
xor r14d, r14d
lea rcx, [rsp + 0x40]
mov r8d, 0x3e8
xor edx, edx
mov esi, r14d
call sub.msvcrt.dll_memset
lea r9d, [r14 + 0xa]
mov word [rbx], r14w
lea r8, [rsp + 0x20]
mov ecx, 0x400
lea edx, [r14 + 0xc]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14003d89b
cdqe
mov ecx, 0x20
mov word [rsp + rax*2 + 0x20], cx
lea rax, [rax*2 + 2]
cmp rax, 0x14
jae 0x14003da74
mov r9d, dword [rdi]
mov r12d, 0x1f4
mov word [rsp + rax + 0x20], r14w
test r9d, r9d
jle 0x14003d91b
lea r8, [0x140064e40]
mov edx, r12d
lea rcx, [rsp + 0x40]
call fcn.140014490
lea r8, [rsp + 0x40]
mov edx, r12d
mov rcx, rbx
call fcn.140029784
test eax, eax
jne 0x14003d916
cmp dword [rdi], 1
mov rdx, rbx
mov ecx, 0x390
jg 0x14003d911
mov ecx, 0x391
call fcn.14003d7a8
mov esi, 1
mov r9d, dword [rdi + 4]
test r9d, r9d
jle 0x14003d983
test esi, esi
je 0x14003d93e
lea r8, [rsp + 0x20]
mov rdx, r12
mov rcx, rbx
call fcn.140029784
mov r9d, dword [rdi + 4]
jmp 0x14003d943
mov esi, 1
lea r8, [0x140064e40]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140014490
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
call fcn.140029784
test eax, eax
jne 0x14003d983
cmp dword [rdi + 4], 1
mov rdx, rbx
mov ecx, 0x392
jg 0x14003d97e
mov ecx, 0x393
call fcn.14003d7a8
mov r9d, dword [rdi + 8]
test r9d, r9d
jle 0x14003d9eb
test esi, esi
je 0x14003d9a6
lea r8, [rsp + 0x20]
mov rdx, r12
mov rcx, rbx
call fcn.140029784
mov r9d, dword [rdi + 8]
jmp 0x14003d9ab
mov esi, 1
lea r8, [0x140064e40]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140014490
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
call fcn.140029784
test eax, eax
jne 0x14003d9eb
cmp dword [rdi + 8], 1
mov rdx, rbx
mov ecx, 0x394
jg 0x14003d9e6
mov ecx, 0x395
call fcn.14003d7a8
mov r9d, dword [rdi + 0xc]
test r9d, r9d
jle 0x14003da47
test esi, esi
je 0x14003da0c
lea r8, [rsp + 0x20]
mov rdx, r12
mov rcx, rbx
call fcn.140029784
mov r9d, dword [rdi + 0xc]
lea r8, [0x140064e40]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140014490
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
call fcn.140029784
test eax, eax
jne 0x14003da47
cmp dword [rdi + 0xc], 1
mov rdx, rbx
jle 0x14003da6d
mov ecx, 0x396
call fcn.14003d7a8
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0x478]
add rsp, 0x440
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x397
jmp 0x14003da42
call fcn.14005dc48
int3
Function at 0x14003e6e0
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x440
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov ebx, edx
mov rsi, rcx
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0xffffffeb
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rdx + 8]
mov edx, ebx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r8d, 0x1f4
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [rsi + 0x2c], 0
jne 0x14003e859
mov rax, qword [rsi + 0x58]
mov r8, qword [r14]
mov rdx, qword [rax]
mov rcx, qword [rsi + 0x20]
call fcn.140014e68
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000e0b4
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rcx, rax
lea r9, [rsp + 0x40]
sub r9, rax
movzx edx, word [rcx]
movzx r8d, word [rcx + r9]
sub edx, r8d
jne 0x14003e7b0
add rcx, 2
test r8d, r8d
jne 0x14003e79a
test edx, edx
je 0x14003e838
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x30]
lea edx, [rbx + 7]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
mov rcx, qword [rsi + 0x58]
mov r9b, 1
mov r8, qword [r14]
mov rdx, qword [rcx]
mov rcx, qword [rsi + 0x20]
call fcn.1400150c0
mov rbx, qword [r14 + 8]
mov dl, 1
call fcn.14003df34
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140037d4c
mov rdx, qword [rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003e833
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
mov rax, qword [rsp + 0x20]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003e859
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140008bfc
nop
mov rax, qword [rsi + 0x58]
lea r9, [rsp + 0x28]
mov r8, qword [r14]
mov rdx, qword [rax]
mov rcx, qword [rsi + 0x20]
call fcn.140014f18
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003e8a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0x470]
add rsp, 0x440
pop r14
pop rdi
pop rsi
ret
Function at 0x14003f808
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0xb0
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x420]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x14003f8a1
mov rcx, qword [rbx + 0x420]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 0x2d
cmp word [rsp + 0x20], ax
jne 0x14003f873
lea r8, [rsp + 0x22]
lea edx, [rax + 0x13]
lea rcx, [rsp + 0x20]
call fcn.140003370
jmp 0x14003f88f
mov rcx, qword [rbx + 0x420]
lea rdx, [rsp + 0x22]
mov r8d, 0x3f
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx + 0x420]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rsi
ret

Function at 0x14003f8cc
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movzx ebp, dx
mov rsi, rcx
mov rcx, qword [rcx + 0x420]
lea rdx, [rsp + 0x20]
mov edi, 0x40
mov r8d, edi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rsp + 0x20]
xor r14d, r14d
mov ebx, edi
cmp word [rax], r14w
je 0x14003f92d
add rax, 2
sub rbx, 1
jne 0x14003f91d
test rbx, rbx
je 0x14003f937
sub rdi, rbx
jmp 0x14003f93a
mov rdi, r14
mov rax, rbx
neg rax
sbb rcx, rcx
and rcx, rdi
test rbx, rbx
je 0x14003f97c
mov word [rsp + rcx*2 + 0x20], bp
lea rcx, [rcx*2 + 2]
cmp rcx, 0x80
jae 0x14003f9a7
mov word [rsp + rcx + 0x20], r14w
lea rdx, [rsp + 0x20]
mov rcx, qword [rsi + 0x420]
call qword [sym.imp.USER32.dll_SetWindowTextW]
test rbx, rbx
setne al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14005d960
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14005dc48
int3

Function at 0x14004034c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor r14d, r14d
lea rax, [r11 + 0x20]
mov qword [r11 - 0x28], r14
mov rdi, r8
mov qword [r11 - 0x30], rax
mov rsi, rdx
mov qword [r11 - 0x38], r14
lea rdx, str.SoftwareMicrosoftCalc
mov rbp, rcx
mov dword [rsp + 0x28], 0x20019
xor r9d, r9d
mov dword [r11 - 0x48], r14d
xor r8d, r8d
mov qword [r11 + 0x20], r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x88]
test eax, eax
mov ebx, eax
cmovne rcx, r14
mov qword [rsp + 0x88], rcx
test rcx, rcx
je 0x1400403eb
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x88]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140040408
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
xor esi, esi
lea rax, [r11 + 8]
mov qword [r11 - 0x18], rsi
lea rdx, str.SoftwareMicrosoftCalc
mov qword [r11 - 0x20], rax
mov rdi, r8
mov qword [r11 - 0x28], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], esi
mov qword [r11 + 8], rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
mov ebx, eax
cmovne rcx, rsi
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x1400404a0
mov dword [rsp + 0x28], 0x2c
lea r9d, [rsi + 3]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.Window_Placement
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14004ac98
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
lea rdi, [rbx + 8]
mov word [rdi], r14w
xor r8d, r8d
lea rdx, [0x140063788]
mov rcx, rbx
call fcn.14000e404
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r14 + 0x1a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14004ae4d
lea rax, [rsp + 0x60]
or r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rax + r8*2], r14w
jne 0x14004ad49
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000e404
lea rdx, str.Microsoft_
mov rcx, rbx
call fcn.140008da4
lea rdx, [rsi + 0x28]
mov r9, r15
xor r8d, r8d
mov rcx, rbx
call fcn.14000ef94
lea rdx, [0x1400654c0]
mov rcx, rbx
call fcn.140008da4
cmp qword [rbx + 0x20], 8
jb 0x14004ad9c
mov rcx, qword [rdi]
jmp 0x14004ad9f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004ae01
cmp qword [rbx + 0x20], 8
jb 0x14004adb6
mov rdx, qword [rdi]
jmp 0x14004adb9
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x14004ae01
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000e4e8
nop
cmp qword [rsp + 0x58], 8
jb 0x14004ae4d
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
jmp 0x14004ae4d
lea rdx, [rsi + 0x30]
cmp qword [rsi + 0x48], 8
jb 0x14004ae0f
mov rdx, qword [rdx]
cmp qword [rbx + 0x20], 8
jb 0x14004ae19
mov rdi, qword [rdi]
lea r9, [rbp + 0x170]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor r8d, r8d
lea rdx, [0x140063788]
mov rcx, rbx
call fcn.14000e404
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140008da4
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004b344
Capabilities:
Delete file
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
lea r8, [rcx + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [rbp + 0x17]
call fcn.140049ca0
nop
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.14004d0ec
nop
cmp qword [rbp + 0x37], 8
jb 0x14004b3ae
mov rcx, qword [rbp + 0x1f]
call sub.msvcrt.dll_free
mov r15d, 7
mov qword [rbp + 0x37], r15
xor edi, edi
mov qword [rbp + 0x2f], rdi
mov word [rbp + 0x1f], di
lea rdx, [0x140063788]
mov rcx, rsi
call fcn.14000fd60
test al, al
jne 0x14004b4b1
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.14000ef94
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
lea r8d, [r15 + 9]
lea rdx, str.RecoveryFilePath
lea rcx, [rbp - 0x39]
call fcn.14000e404
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x41]
lea rcx, [rsi + 0x60]
call fcn.14004b92c
mov rbx, qword [rax]
cmp qword [rbp - 0x19], 8
jb 0x14004b431
mov rcx, qword [rbp - 0x31]
call sub.msvcrt.dll_free
cmp rbx, qword [rsi + 0x68]
je 0x14004b48c
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov r8d, 0x10
lea rdx, str.RecoveryFilePath
lea rcx, [rbp - 0x39]
call fcn.14000e404
nop
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x60]
call fcn.14004b9c8
lea rcx, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x14004b475
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rbp - 0x19], 8
jb 0x14004b48c
mov rcx, qword [rbp - 0x31]
call sub.msvcrt.dll_free
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, 1
test eax, eax
cmove edi, ecx
cmp qword [rbp + 0xf], 8
jb 0x14004b4c1
mov rcx, qword [rbp - 9]
call sub.msvcrt.dll_free
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14005d960
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14004d328
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 rdi, rdx
mov rsi, r8
mov rdx, r8
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004d374
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rdi, rdi
je 0x14004d374
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rdi], eax
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret