joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400266c0
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, r8
mov r14, rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r8
mov rax, qword [rdx]
movsxd rcx, dword [rax - 0x10]
add rcx, 2
mov eax, 2
mul rcx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.14004e500
mov rdi, rax
mov rcx, qword [r15]
movsxd rdx, dword [rcx - 0x10]
add rdx, 2
mov eax, 2
mul rdx
cmovo rax, rsi
mov rcx, rax
call fcn.14004e500
mov rbx, rax
lea ebp, [rsi + 2]
test rdi, rdi
je 0x1400267f4
test rax, rax
je 0x1400267ec
mov r8, qword [r14]
mov ecx, dword [r8 - 0x10]
add ecx, 2
movsxd rdx, ecx
mov rcx, rdi
call fcn.14002cb20
mov r8, qword [r15]
mov eax, dword [r8 - 0x10]
add eax, 2
movsxd rdx, eax
mov rcx, rbx
call fcn.14002cb20
mov rax, qword [r14]
movsxd rcx, dword [rax - 0x10]
xor edx, edx
mov word [rdi + rcx*2], dx
mov rax, qword [r14]
movsxd rcx, dword [rax - 0x10]
mov word [rdi + rcx*2 + 2], dx
mov rax, qword [r15]
movsxd rcx, dword [rax - 0x10]
mov word [rbx + rcx*2], dx
mov rax, qword [r15]
movsxd rcx, dword [rax - 0x10]
mov word [rbx + rcx*2 + 2], dx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x40], 2
mov eax, 0x614
mov word [rsp + 0x58], ax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, eax
mov rcx, rdi
call fcn.14004d92c
test rbx, rbx
je 0x140026801
mov rcx, rbx
call fcn.14004d92c
mov r14, qword [r14]
mov eax, esi
lock xadd dword [r14 - 8], eax
test ebp, ebp
je 0x140026865
sub eax, 1
jg 0x140026833
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x14002685e
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, 1
jmp 0x1400268b5
sub eax, 1
jg 0x140026888
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x1400268b3
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140029520
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, rdx
mov qword [r11 - 0x68], rdx
mov qword [rsp + 0x50], rcx
mov qword [r11 - 0x58], rdx
mov qword [r11 - 0x50], 0
lea r8, [0x14009a928]
mov rdx, qword [rdx]
lea rcx, [r11 - 0x50]
call fcn.140068b14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x1400295bc
mov rsi, qword [r12]
mov eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x1400295b2
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov eax, 2
jmp 0x140029759
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1400691fc
mov rcx, qword [rsp + 0x48]
call fcn.140069754
movsxd r15, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400691fc
mov rcx, r15
call fcn.14004e500
mov rbp, rax
test rax, rax
jne 0x140029638
mov rcx, qword [rsp + 0x48]
call fcn.140068f88
nop
mov rsi, qword [r12]
mov eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x14002962e
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov eax, 1
jmp 0x140029759
xor ebx, ebx
test r15d, r15d
jle 0x140029714
mov r12, qword [rsp + 0x50]
nop dword [rax + rax]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, r15
mov r8d, 1
mov rdx, r15
mov rcx, rbp
call fcn.140068e5c
mov rdi, rax
test eax, eax
jle 0x140029706
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
lea rcx, [r12 + 0x98]
call fcn.14001d750
mov ecx, dword [rsp + 0x50]
call fcn.14004e500
mov rsi, rax
test rax, rax
je 0x14002970f
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, edi
mov rdx, rbp
lea rcx, [r12 + 0x98]
call fcn.14001d750
test eax, eax
jne 0x1400296fc
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400691fc
mov r8d, dword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
mov edx, 1
mov rcx, rsi
call fcn.1400699ac
add ebx, edi
mov rcx, rsi
call fcn.14004d92c
cmp ebx, r15d
jl 0x140029650
mov r12, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.140068f88
mov rcx, rbp
call fcn.14004d92c
nop
mov rsi, qword [r12]
mov eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140029757
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002bf30
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rdx]
mov rbx, rdx
movsxd rcx, dword [rax - 0x10]
mov eax, 2
add rcx, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14004e500
mov r8, qword [rbx]
mov rsi, rax
mov ecx, dword [r8 - 0x10]
add ecx, 2
movsxd rdx, ecx
mov rcx, rax
call fcn.14002cb20
mov rcx, qword [rbx]
xor edi, edi
mov eax, 0x614
movsxd rdx, dword [rcx - 0x10]
mov word [rsi + rdx*2], di
mov rcx, qword [rbx]
movsxd rdx, dword [rcx - 0x10]
mov word [rsi + rdx*2 + 2], di
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x40], ax
mov qword [rsp + 0x50], rdi
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [rsp + 0x44], 1
mov ebx, eax
jne 0x14002bff1
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002bfd0
mov rcx, rsi
call fcn.14004d92c
test ebx, ebx
setne dil
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14002c960
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14002b650
cmp eax, 1
je 0x14002c9e0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002c98a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002c9a1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0
xor r8d, r8d
lea r9, str.CUI_PROMOTIONS_STOP_THREAD
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r9, rbx
mov qword [rsp + 0x28], rbx
lea r8, [0x14002b7e0]
mov qword [rbx + 0x10], rax
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14002c9f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.14002b650
test eax, eax
jne 0x14002ca24
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x70
pop rbx
ret
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov edi, eax
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xffffffff
jae 0x14002cabe
nop dword [rax]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], esi
je 0x14002cacb
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14002caa6
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xffffffff
jb 0x14002ca60
cmp dword [rsp + 0x30], esi
je 0x14002cacb
mov eax, 1
jmp 0x14002caf3
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002cade
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002caf1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
xor eax, eax
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x70
pop rbx
ret
Function at 0x14003a4c0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rdx, str.SoftwareIntelDisplayigfxcui
xor ecx, ecx
call fcn.14003ae30
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x34], 1
test rax, rax
je 0x14003a522
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea rdx, str.InstPath
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx eax, word [rbx]
cmp ax, word [0x140097a34]
jne 0x14003a53c
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x40
pop rbx
ret
Function at 0x14003e370
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14003bee0
cmp eax, 1
je 0x14003e3f4
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14003e39a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14003e3b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], 0
xor r8d, r8d
lea r9, str.CUI_GAME_STOP_THREAD
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x40], rax
mov r9, rbx
lea r8, [0x14003a0b0]
xor edx, edx
lea rax, [rbx + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x38], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14003e400
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
call fcn.14003bee0
xor ebp, ebp
cmp eax, 1
jne 0x14003e556
mov rcx, rsi
call fcn.14003bee0
test eax, eax
je 0x14003e50a
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [rsp + 0x40], ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xffffffff
jae 0x14003e4de
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x40], ebp
je 0x14003e4e4
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14003e4c6
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xffffffff
jb 0x14003e480
cmp dword [rsp + 0x40], ebp
jne 0x14003e50a
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x14003e4f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x40], rbp
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14003e50a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], rbp
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14003ac50
nop
mov rdx, rax
mov rcx, rsi
call fcn.14002bf30
nop
mov r14, qword [rsp + 0x30]
mov eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x14003e556
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x14003e569
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x40], rbp
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14003e57c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], rbp
lea r9, str.CUI_GAME_STOP_THREAD
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x40], rax
lea rax, [rsi + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rsi
lea r8, [0x14003a0e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x38], rax
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14004e4a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14003e5f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.14003bee0
test eax, eax
jne 0x14003e624
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x70
pop rbx
ret
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov edi, eax
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xffffffff
jae 0x14003e6be
nop dword [rax]
mov rcx, qword [rbx + 0x38]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], esi
je 0x14003e6cb
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14003e6a6
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xffffffff
jb 0x14003e660
cmp dword [rsp + 0x30], esi
je 0x14003e6cb
mov eax, 1
jmp 0x14003e6f3
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14003e6de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], rsi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14003e6f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rsi
xor eax, eax
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x70
pop rbx
ret
Function at 0x14003ea80
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rcx
cmp qword [rcx + 0x68], 0
je 0x14003ec75
cmp byte [rcx + 0x71], 0
je 0x14003ec75
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000dba0]
mov edx, 0xffffffff
mov rcx, r15
call rbx
cmp eax, 0xffffffff
jne 0x14003eaee
xor al, al
jmp 0x14003ec77
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], ILFindLastID
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14003f710
nop
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
nop dword [rax + rax]
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, rcx
lea r14, [rbp - 0x30]
cmovae r14, rcx
mov rsi, qword [r15 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call qword [fcn.14000dba0]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r15 + 0x74]
mov rcx, rsi
call rdi
test eax, eax
je 0x14003eb88
sub eax, 1
je 0x14003eb8d
sub eax, 2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x14003ec3f
xor bl, bl
jmp 0x14003ec41
mov byte [r15 + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14003ebda
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov r9, qword [r15 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400699ac
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14003eb81
cmp byte [r15 + 0x71], 0
je 0x14003ec3f
test rbx, rbx
jne 0x14003eb20
mov r8, qword [rbp - 0x20]
mov rax, rdx
sub rax, r8
cmp rax, 8
jb 0x14003ec1e
lea rax, [r8 + 8]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
xor ecx, ecx
mov qword [rax + r8], rcx
mov byte [rax + r8 + 8], cl
jmp 0x14003eb13
xor eax, eax
mov byte [rsp + 0x20], al
mov r9d, 8
movzx r8d, al
mov edx, r9d
lea rcx, [rbp - 0x30]
call fcn.14002dbc0
jmp 0x14003eb13
mov bl, 1
cmp rdx, 0x10
jb 0x14003ec70
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ec6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003ec9c
call fcn.14004d92c
movzx eax, bl
jmp 0x14003ec77
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14004e4a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14005cd9c
int3
Function at 0x140046290
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, r8
mov r14, rdx
mov esi, 0xffffffff
test rdx, rdx
je 0x1400463b7
mov qword [r11 + 8], rbx
lea edx, [rsi + 2]
mov qword [r11 - 0x20], rdi
mov rcx, r14
mov qword [r11 - 0x28], r15
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xor ebx, ebx
lea rdi, [0x1400cf280]
lea r15, [0x1400cf284]
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140054000
movsxd rax, ebx
mov rcx, rbp
imul rdx, rax, 0x2c
add rdx, r15
call fcn.140068814
test eax, eax
je 0x14004639d
mov ecx, dword [rdi]
mov eax, ecx
sub eax, 1
je 0x14004633b
sub eax, 1
je 0x140046334
cmp eax, 2
jne 0x140046340
lea ecx, [rax + 0xe]
jmp 0x140046340
mov ecx, 0x11
jmp 0x140046340
mov ecx, 0x12
mov r8, r14
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
shl eax, 0x10
lea ecx, [rbx - 0xf]
mov r9d, eax
or r9d, 1
cmp ecx, 3
ja 0x140046367
mov r9d, eax
or r9d, 0x1000001
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov ecx, r9d
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140068814
test eax, eax
je 0x14004639d
inc ebx
add rdi, 0x2c
cmp ebx, 0x42
jl 0x1400462f0
jmp 0x14004639f
mov esi, ebx
mov rdi, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
mov r15, qword [rsp + 0x240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400464c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rdx, str.SoftwareIntelDisplayigfxcuiigfxtrayTrayIcon
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call fcn.140045e90
mov rdi, rax
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x3c], 4
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 4
lea rdx, str.SoftwareIntelDisplayigfxcuiigfxtrayTrayIcon
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140046563
lea rax, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
lea rdx, str.ShowTrayIcon
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140046598
test rdi, rdi
je 0x1400465a1
lea rax, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov rcx, rdi
lea rdx, str.ShowTrayIcon
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400465a1
cmp dword [rsp + 0x38], ebx
setne bl
jmp 0x1400465ae
mov dword [rsp + 0x38], 1
mov ebx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140046dc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r9d, 2
lea rcx, [0x14009dd40]
xor r8d, r8d
xor edx, edx
xor bl, bl
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140046ecf
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x20
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140046ec6
mov qword [rsp + 0x80], rbp
lea rdx, [rsp + 0x40]
mov ebp, 1
mov dword [rsp + 0x28], 0x20019
mov r8d, ebp
mov qword [rsp + 0x88], rsi
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
test rax, rax
je 0x140046eb6
xor eax, eax
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], eax
lea r9, [rsp + 0x38]
mov dword [rsp + 0x30], eax
lea rdx, str.Inst
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140046ead
cmp dword [rsp + 0x30], eax
movzx ebx, bl
cmovne ebx, ebp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret