joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409448
Capabilities:
Create process on windows
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20f0
call fcn.0042aad0
sub rsp, rax
mov rax, qword [0x004402a0]
xor rax, rsp
mov qword [rsp + 0x20e0], rax
mov rdi, rcx
add rcx, 0x418
lea rdx, [rdi + 0x494]
call fcn.00401174
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x700
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x458]
call qword [sym.imp.USER32.dll_SwitchDesktop]
cmp qword [rdi + 0x20], 0
jne 0x4094cd
mov r8, qword [rdi + 0x30]
xor r9d, r9d
lea rdx, [0x0040980c]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rdi + 0x20], rax
and qword [rsp + 0x78], 0
xor edx, edx
lea rax, str.GameOptimizerDesktop
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x80], rax
call fcn.0041cbe0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea r11, [rdi + 0x64a0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r11
and qword [rsp + 0x30], 0
mov ebx, 0x4000000
lea rdx, [rdi + 0x494]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40957d
lea rdx, [rdi + 0x494]
lea rcx, [rdi + 0x2494]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r8, [rdi + 0x2494]
lea rdx, [0x004361d4]
lea rcx, [0x0044f4f8]
call fcn.00409bd8
jmp 0x409650
lea rcx, [rsp + 0xe4]
xor edx, edx
mov r8d, 0x1ffc
mov dword [rsp + 0xe0], 0x22
call fcn.0041cbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0xe2]
mov r8d, 0xfff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409666
inc eax
movsxd rcx, eax
lea rdx, [rsp + rcx*2 + 0xe0]
test eax, eax
je 0x4095ef
sub rdx, 2
mov ecx, 0x5c
dec eax
cmp cx, word [rdx]
je 0x4095ef
mov ecx, 0x2f
cmp cx, word [rdx]
jne 0x4095d1
inc eax
lea r8, [rdi + 0x494]
lea rdx, str.launcher.exe____s_
lea rcx, [rsp + rax*2 + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409666
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
mov edx, 0x7d2
mov r8d, 0x1000
call qword [sym.imp.USER32.dll_SetTimer]
test rax, rax
jne 0x40968a
mov byte [rdi + 0x84a0], 1
xor eax, eax
mov rcx, qword [rsp + 0x20e0]
xor rcx, rsp
call fcn.0041af90
lea r11, [rsp + 0x20f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x4096b4
Capabilities:
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x4480
call fcn.0042aad0
sub rsp, rax
mov rax, qword [0x004402a0]
xor rax, rsp
mov qword [rsp + 0x4470], rax
mov ebx, 0x1000
lea rcx, [rsp + 0x2470]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x470]
mov r8d, ebx
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
jmp 0x4097cc
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [rsp + 0x20]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x4097c9
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x434
mov dword [rsp + 0x30], 0x438
call fcn.0041cbe0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Module32FirstW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x260]
call fcn.0041b170
test eax, eax
je 0x4097c9
lea rdx, [rsp + 0x2470]
lea rcx, [rsp + 0x260]
mov r8, rsi
call fcn.0041b330
test eax, eax
je 0x4097c9
mov r8d, dword [rsp + 0x20]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x4097c9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rdi, rax
test rax, rax
jne 0x40970f
mov rcx, qword [rsp + 0x4470]
xor rcx, rsp
call fcn.0041af90
lea r11, [rsp + 0x4480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x41218c
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.004101f4
mov rsi, rax
test rax, rax
je 0x412208
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x412203
cmp dword [rbx], 0x40
jb 0x412203
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 0x412203
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x41220c
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 0x41c8e8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.00422fa4
nop
cmp dword [0x00445ad0], 1
je 0x41c894
mov dword [0x00445acc], 1
mov byte [0x00445ac8], r12b
test ebx, ebx
jne 0x41c880
mov rcx, qword [0x00450750]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x41c86d
mov rcx, qword [0x00450748]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x41c80c
call fcn.0041e548
cmp qword [rdi], rax
jne 0x41c80c
jmp 0x41c7f2
cmp rdi, rsi
jb 0x41c86d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.0041e548
mov qword [rdi], rax
call rbx
mov rcx, qword [0x00450750]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x00450748]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x41c84b
cmp r13, rax
je 0x41c86b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x41c7f2
lea rdx, [0x0042eb10]
lea rcx, [0x0042eaf8]
call fcn.0041c63c
lea rdx, [0x0042eb20]
lea rcx, [0x0042eb18]
call fcn.0041c63c
nop
test r12d, r12d
je 0x41c8a3
mov ecx, 8
call fcn.00422ea4
test r12d, r12d
jne 0x41c8ce
mov dword [0x00445ad0], 1
lea ecx, [r12 + 8]
call fcn.00422ea4
mov ecx, r15d
call fcn.0041c5d0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x41c75c

Function at 0x41c8f4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x41c75c
Function at 0x41ea43
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x004402a0]
jne 0x41afaa
rol rcx, 0x10
test cx, 0xffff
jne 0x41afa6
repz ret
ror rcx, 0x10
jmp 0x41e99c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x004460c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x004461b8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x41ea21
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x004460c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x41ea43
mov rax, qword [rsp + 0x88]
mov qword [0x004461b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00446158], rax
mov rax, qword [0x004461b8]
mov qword [0x00446030], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00446140], rax
mov dword [0x00446020], 0xc0000409
mov dword [0x00446024], 1
mov rax, qword [0x004402a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004402a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x004460b8], eax
mov ecx, 1
call fcn.0042486c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00432b40]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x004460b8], 0
jne 0x41eaca
mov ecx, 1
call fcn.0042486c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x424394
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.0041e548
xor ebx, ebx
mov rdi, rax
cmp qword [0x00446950], rbx
jne 0x42449a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x42456f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x42456f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x00432ca8]
mov rcx, rsi
mov qword [0x00446950], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x00432c90]
mov rcx, rsi
mov qword [0x00446958], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x00446960], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x00446970], rax
test rax, rax
je 0x424491
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x00446968], rax
jmp 0x4244a1
mov rax, qword [0x00446968]
jmp 0x4244a8
mov rax, qword [0x00446968]
mov r11, qword [0x00446970]
cmp rax, rdi
je 0x424510
cmp r11, rdi
je 0x424510
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x00446970]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x424510
test rax, rax
je 0x424510
call rsi
test rax, rax
je 0x42450a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x42450a
test byte [rsp + 0x38], 1
jne 0x424510
bts ebp, 0x15
jmp 0x42454e
mov rcx, qword [0x00446958]
cmp rcx, rdi
je 0x42454e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42454e
call rax
mov rbx, rax
test rax, rax
je 0x42454e
mov rcx, qword [0x00446960]
cmp rcx, rdi
je 0x42454e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42454e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00446950]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42456f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x424571
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400149dc
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 r12d, ecx
lea rcx, [0x14010f7a0]
xor edx, edx
xor ebx, ebx
call fcn.1400eb918
lea r13d, [rbx + 1]
mov ebp, r13d
jmp 0x140014aba
test rbx, rbx
jne 0x140014ac6
mov ecx, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr ecx, 4
add cx, r13w
movzx r8d, cx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x140014aa9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140014a56
xor ebx, ebx
jmp 0x140014aa4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140014a52
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x140014a93
cmp rdi, r11
jae 0x140014a52
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140014a81
cmp rdi, r11
jae 0x140014a52
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x140014ae1
lea rcx, [0x14010f7a0]
mov edx, ebp
call fcn.1400eb918
add ebp, r13d
mov rsi, rax
test rax, rax
jne 0x140014a13
xor eax, eax
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
mov rax, rsi
jmp 0x140014ac8

Function at 0x140014aec
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
mov eax, edx
mov esi, edx
mov r8d, 6
shr eax, 4
mov rbp, rcx
inc ax
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
mov r12, rax
cmp rax, rbx
jne 0x140014b2f
xor eax, eax
jmp 0x140014b8e
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rbx
je 0x140014b8b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, rbx
je 0x140014b8b
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and esi, 0xf
jbe 0x140014b7a
cmp rdi, r11
jae 0x140014b8b
add esi, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140014b68
cmp rdi, r11
jae 0x140014b8b
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
mov rax, rbx
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 0x140018e74
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x1f0]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, rbx
call fcn.1400266f8
cmp dword [rbx + 0x1424], 0
jne 0x140018ef7
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.14001a8bc
mov rcx, qword [rbx + 0x13b8]
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov r9d, 4
lea rdx, [0x140007ec0]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov dword [rbx + 0x1424], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [0x140110728], 0
je 0x140018f17
lea rcx, [0x140109ec0]
mov edx, 0xe9c
mov r8d, 1
call fcn.140037388
add rsp, 0x30
pop rbx
ret
Function at 0x14001a8bc
Capabilities:
Inspect load icon resource

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x410
mov rax, qword [0x140104138]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov ebp, r8d
mov edi, edx
mov rsi, rcx
test edx, edx
je 0x14001a8fa
cmp edx, 1
je 0x14001a8fa
cmp edx, 2
jne 0x14001aa30
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov edx, 0xc9
call fcn.140021580
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
mov edx, 0xca
call fcn.140021580
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, 0x3c8
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 8]
test ebp, ebp
mov qword [rsp + 0x38], rax
mov eax, 7
mov edx, 0x12d
lea ecx, [rax + 0x10]
mov dword [rsp + 0x30], 0x3d0
cmovne eax, ecx
mov rcx, qword [0x14010f7b0]
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_LoadIconW]
mov r8, qword [rsp + 0x20]
lea rcx, [rsp + 0x58]
mov edx, 0x40
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x3039
call sub.msvcrt.dll_wcscpy_s
test ebp, ebp
je 0x14001a9c8
mov r8, qword [rsp + 0x20]
lea rcx, [rsp + 0x364]
mov edx, 0x40
mov dword [rsp + 0x3e4], 1
call sub.msvcrt.dll_wcscpy_s
mov r8, qword [rsp + 0x28]
lea rcx, [rsp + 0x160]
mov edx, 0x100
call sub.msvcrt.dll_wcscpy_s
lea rdx, [rsp + 0x30]
mov ecx, edi
mov dword [rsp + 0x360], 3
mov dword [rsp + 0x48], 0x401
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test edi, edi
je 0x14001aa02
cmp edi, 2
jne 0x14001aa1a
mov rcx, qword [rsi + 8]
mov edx, 0x2711
call qword [sym.imp.USER32.dll_KillTimer]
jmp 0x14001aa1a
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov edx, 0x2711
mov r8d, 0xea60
call qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.1400ec080
lea r11, [rsp + 0x410]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140021f04
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov rcx, qword [rcx]
and dword [rsp + 0x60], 0
lea rax, [r11 + 0x20]
mov qword [r11 - 0x20], rax
mov rbx, rdx
lea rax, [r11 + 0x18]
lea r9, [r11 - 0x18]
lea rdx, [0x140007e68]
xor r8d, r8d
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140021f62
cmp dword [rsp + 0x30], 4
jne 0x140021f62
test eax, eax
jne 0x140021f62
mov ecx, dword [rsp + 0x60]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x140021f62
mov dword [rbx], ecx
jmp 0x140021f68
mov dword [rbx], 2
mov al, 1
add rsp, 0x40
pop rbx
ret

Function at 0x140021f78
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov dword [rsp + 0x48], edx
lea rax, [rsp + 0x48]
xor ebx, ebx
lea rdx, [0x140007e68]
xor r8d, r8d
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
lea edx, [rbx + 1]
movzx ecx, bl
cmove ecx, edx
mov al, cl
add rsp, 0x30
pop rbx
ret
Function at 0x140021fc4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
mov rdi, rdx
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
lea r9, [r11 - 0x18]
lea rdx, [0x140007e80]
xor ebx, ebx
xor r8d, r8d
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x140022024
cmp dword [rsp + 0x30], 4
jne 0x140022024
mov eax, ebx
cmp eax, ebx
jne 0x140022024
cmp dword [rsp + 0x60], ebx
setne bl
mov dword [rdi], ebx
jmp 0x14002202a
mov dword [rdi], 1
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140022040
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
mov rdi, rdx
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
lea r9, [r11 - 0x18]
lea rdx, [0x140007ea8]
xor ebx, ebx
xor r8d, r8d
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1400220a0
cmp dword [rsp + 0x30], 4
jne 0x1400220a0
mov eax, ebx
cmp eax, ebx
jne 0x1400220a0
cmp dword [rsp + 0x60], ebx
setne bl
mov dword [rdi], ebx
jmp 0x1400220a6
mov dword [rdi], 1
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400220bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
mov rdi, rdx
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
lea r9, [r11 - 0x18]
lea rdx, [0x140007ee0]
xor ebx, ebx
xor r8d, r8d
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x140022118
cmp dword [rsp + 0x30], 4
jne 0x140022118
mov eax, ebx
cmp eax, ebx
jne 0x140022118
cmp dword [rsp + 0x60], ebx
setne bl
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x50]
mov al, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140025bb0
Capabilities:
Inspect load icon resource

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rsi, rcx
lea rdi, [0x140104100]
mov rcx, rdi
mov rax, qword [0x140104100]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
mov rcx, rdi
mov rax, qword [0x140104100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov rcx, rdi
mov rax, qword [0x140104100]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x88], rdi
xor edx, edx
mov ecx, 0xc9
call fcn.1400149dc
test rax, rax
je 0x140025c42
mov r8d, 0xc9
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140014bb0
mov rbx, qword [rsp + 0x80]
mov dword [rsp + 0x30], 0x1db1
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 6
mov r9, rdi
mov r8, rbx
lea rdx, [0x14000a240]
lea rcx, [rsp + 0x78]
call fcn.140025d1c
mov dword [rsi + 0x1420], 1
mov edx, 0x12d
mov rcx, qword [0x14010f7b0]
call qword [sym.imp.USER32.dll_LoadIconW]
mov r9, rax
mov r8, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, qword [rsi + 8]
call qword [sym.imp.SHELL32.dll_ShellAboutW]
and dword [rsi + 0x1420], 0
lea rdx, [rdi - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140025cc7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140025ce7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140025d09
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret