joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140155000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x140001b2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b76
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b78
xor al, al
add rsp, 0x28
ret

Function at 0x140009000
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword gs:[0x60]
xor r11d, r11d
mov rsi, r8
mov ebp, edx
mov rdi, qword [rax + 0x10]
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
movzx eax, word [rbx + 0x14]
lea r9, [rbx + 0x18]
movzx r10d, word [rbx + 6]
add r9, rax
test r10, r10
je 0x1400090bf
mov dword [rsp + 0x20], 0x6544302e
mov byte [rsp + 0x24], 0x76
movups xmm2, xmmword [r9]
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [r9 + 0x10]
movsd xmm1, qword [r9 + 0x20]
movd edx, xmm2
movups xmmword [rsp + 0x28], xmm2
movsd qword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x38], xmm0
test dl, dl
je 0x1400090a7
lea rax, [rsp + 0x20]
lea r8, [rsp + 0x28]
sub r8, rax
movzx eax, dl
nop
movzx edx, al
cmp al, byte [rcx]
jne 0x1400090a7
movzx eax, byte [r8 + rcx + 1]
inc rcx
movzx edx, al
test al, al
jne 0x140009090
cmp dl, byte [rcx]
lea rdx, [rsp + 0x28]
cmovne rdx, r11
add r9, 0x28
mov r11, rdx
sub r10, 1
jne 0x140009052
mov eax, dword [r11 + 0xc]
mov rdx, rsi
mov ecx, dword [rbx + 8]
mov eax, dword [rax + rdi]
xor eax, dword [rbx + 0x68]
ror eax, cl
mov ecx, ebp
add rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp rax
Function at 0x18000108c
Capabilities:
Encode data using xor
Get file size
Query environment variable
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x398]
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r13d, r13d
mov r12, rcx
lea rcx, [rsp + 0x62]
lea eax, [r13 + 0x5c]
xor edx, edx
mov r8d, 0x1f6
mov word [rsp + 0x50], ax
lea eax, [r13 + 0x72]
mov dword [rsp + 0x40], r13d
mov word [rsp + 0x52], ax
lea eax, [r13 + 0x65]
mov dword [rsp + 0x5e], 0x74
mov word [rsp + 0x54], ax
lea eax, [r13 + 0x73]
mov word [rsp + 0x56], ax
lea eax, [r13 + 0x2e]
mov word [rsp + 0x58], ax
lea eax, [r13 + 0x64]
mov word [rsp + 0x5a], ax
lea eax, [r13 + 0x61]
mov word [rsp + 0x5c], ax
call fcn.180005840
lea rcx, [rbp + 0x162]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x160], r13w
call fcn.180005840
lea rdx, [rbp + 0x160]
lea rcx, str._ALLUSERSPROFILE_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
lea rcx, [rbp + 0x160]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800011a9
xor eax, eax
jmp 0x180001229
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
jne 0x1800011c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800011a2
lea edx, [rax + 0x400]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rdi
mov rbx, rax
test rax, rax
je 0x1800011bd
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x40]
cmp r11d, esi
je 0x18000120c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800011ba
mov dword [r12], r11d
mov rax, rbx
test r11d, r11d
je 0x180001226
mov rcx, r11
xor byte [rax], 0x1f
inc rax
dec rcx
jne 0x18000121b
mov rax, rbx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.180001c10
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x1800015bc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rsi, qword [0x18000bf50]
mov r9d, edx
mov rbx, rcx
jne 0x180001765
cmp r9d, 0x40
jb 0x180001765
mov eax, 0x5a4d
mov qword [rcx + 0x18], rsi
cmp word [rsi], ax
jne 0x180001765
movsxd rdx, dword [rsi + 0x3c]
lea rcx, [rdx + 0x108]
cmp r9, rcx
jb 0x180001765
add rdx, rsi
mov qword [rbx + 0x20], rdx
cmp dword [rdx], 0x4550
jne 0x180001765
mov eax, 0x2000
test word [rdx + 0x16], ax
je 0x180001765
test byte [rdx + 0x16], 2
je 0x180001765
mov eax, 0xf0
cmp word [rdx + 0x14], ax
jne 0x180001765
lea r11, [rdx + 0x108]
xor r10d, r10d
mov qword [rbx + 0x28], r11
movzx edi, word [rdx + 6]
test edi, edi
jle 0x18000168f
xor r8d, r8d
mov eax, dword [r8 + r11 + 0x14]
add eax, dword [r8 + r11 + 0x10]
cmp eax, r9d
ja 0x180001765
movzx ecx, word [rdx + 6]
inc r10d
add r8, 0x28
cmp r10d, ecx
jl 0x18000166c
test rdx, rdx
je 0x180001765
mov r8d, dword [rdx + 0x38]
mov eax, dword [rdx + 0x54]
lea eax, [rax + r8 - 1]
cdq
idiv r8d
mov ecx, eax
imul ecx, r8d
test edi, edi
jle 0x1800016ee
mov rax, qword [rbx + 0x20]
xor r9d, r9d
movzx r10d, word [rax + 6]
mov eax, dword [r9 + r11 + 8]
cmp dword [r9 + r11 + 0x10], eax
cmovg eax, dword [r9 + r11 + 0x10]
add eax, dword [r9 + r11 + 0xc]
lea eax, [rax + r8 - 1]
cdq
idiv r8d
imul eax, r8d
cmp ecx, eax
cmovl ecx, eax
add r9, 0x28
dec r10
jne 0x1800016be
test ecx, ecx
je 0x180001765
movsxd rbp, ecx
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x180001765
mov r8, rsi
mov rdx, rax
mov rcx, rbx
call fcn.180001b30
mov r11, qword [rbx + 0x20]
cmp dword [r11 + 0xb0], 0
jbe 0x180001745
cmp dword [r11 + 0xb4], 0
jbe 0x180001745
mov rdx, rdi
mov rcx, rbx
call fcn.1800018ec
mov rdx, rdi
mov rcx, rbx
call fcn.1800019cc
mov rcx, rdi
test eax, eax
jne 0x18000177c
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r11, qword [rbx + 0x20]
xor r8d, r8d
mov qword [r11 + 0x30], rdi
mov rax, qword [rbx + 0x20]
lea edx, [r8 + 1]
mov eax, dword [rax + 0x28]
mov rcx, rdi
add rax, rdi
mov qword [rbx + 8], rax
call rax
test eax, eax
jne 0x1800017d9
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rbx + 8]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
and qword [rbx + 8], 0
jmp 0x180001765
mov dword [rbx + 4], 1
mov qword [rbx + 0x10], rdi
mov eax, 1
jmp 0x180001767
Function at 0x18000243b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x180001c2a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001c26
repz ret
ror rcx, 0x10
jmp 0x180002394
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000afa0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18000b098]
mov qword [rsp + 0x58], rax
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 0x180002419
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, [0x18000afa0]
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 0x18000243b
mov rax, qword [rsp + 0x88]
mov qword [0x18000b098], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000b038], rax
mov rax, qword [0x18000b098]
mov qword [0x18000af10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000b020], rax
mov dword [0x18000af00], 0xc0000409
mov dword [0x18000af04], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000a008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000af98], eax
mov ecx, 1
call fcn.180003bd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800072b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000af98], 0
jne 0x1800024c2
mov ecx, 1
call fcn.180003bd0
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 0x1800059fc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180002c4c
xor ebx, ebx
cmp qword [0x18000bec0], rbx
mov rdi, rax
jne 0x180005b0f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180005be6
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005be6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18000bec0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18000bec8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18000bed0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18000bee0], rax
test rax, rax
je 0x180005b06
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18000bed8], rax
jmp 0x180005b16
mov rax, qword [0x18000bed8]
jmp 0x180005b1d
mov rax, qword [0x18000bed8]
mov r11, qword [0x18000bee0]
cmp rax, rdi
je 0x180005b84
cmp r11, rdi
je 0x180005b84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18000bee0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180005b84
test rax, rax
je 0x180005b84
call rsi
test rax, rax
je 0x180005b7e
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180005b7e
test byte [rsp + 0x40], 1
jne 0x180005b84
bts ebp, 0x15
jmp 0x180005bc4
mov rcx, qword [0x18000bec8]
cmp rcx, rdi
je 0x180005bc4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005bc4
call rax
mov rbx, rax
test rax, rax
je 0x180005bc4
mov rcx, qword [0x18000bed0]
cmp rcx, rdi
je 0x180005bc4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005bc4
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18000bec0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005be6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180005be8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180001c10
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400064c0
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov edi, ecx
xor ecx, ecx
mov rbx, rdx
test rdx, rdx
je 0x1400064db
mov dword [rdx], ecx
lea eax, [rdi - 0xc000]
cmp eax, 0x3fff
ja 0x1400065ba
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
lea rdx, [0x1400e3920]
lea rcx, [rsp + 0x20]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
call fcn.1400cab74
test eax, eax
je 0x1400065a7
lea rdx, [0x1400e3938]
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, [0x1400e3950]
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, [0x1400e3968]
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, [0x1400e3978]
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, [0x1400e3998]
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x14000659c
lea rdx, [0x1400e39c0]
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
jne 0x1400065bf
test rbx, rbx
je 0x1400065a7
mov dword [rbx], 1
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
mov word [rsp + 0x20], cx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret

Function at 0x1400065e0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x1400065fa
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140119798]
mov edi, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140006674
xor esi, esi
nop
mov ecx, dword [0x140114470]
cmp ecx, 0xffffffff
je 0x140006644
test ecx, ecx
je 0x140006690
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x140114470]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x140006690
mov edx, 1
mov ecx, 0x8000012f
mov dword [0x140114474], esi
call fcn.140001a70
mov rcx, qword [0x140119798]
mov dword [0x140114474], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140006620
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 0x2c], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000d310
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
xor al, al
cmp qword [0x1401198e8], 0
mov esi, 1
movzx edi, al
cmovne edi, esi
cmp qword [0x1401198f0], 0
je 0x14000d33b
or dil, 2
xor ebp, ebp
mov qword [rsp + 0x58], rbx
test dil, dil
je 0x14000d495
mov qword [rsp + 0x60], r12
mov ebx, ebp
mov ecx, dword [0x1401185d8]
mov r9, rsi
xor r8d, r8d
mov edx, 0x417
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14000d37d
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14000d352
xor r12b, r12b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
nop dword [rax + rax]
mov rcx, qword [0x14011a348]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x50], 0x103
jne 0x14000d3c5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x1f4
ja 0x14000d3de
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d390
mov rcx, qword [0x14011a348]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14011a348], rbp
call fcn.14000c160
cmp qword [0x1401198e8], rbp
je 0x14000d406
test sil, dil
jne 0x14000d41f
lea r8, [0x1400e58a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14011a338], rax
jmp 0x14000d41f
test sil, dil
je 0x14000d41f
mov rcx, qword [0x14011a338]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14011a338], rbp
cmp qword [0x1401198f0], rbp
je 0x14000d448
test dil, 2
jne 0x14000d462
lea r8, [0x1400e58b8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14011a340], rax
jmp 0x14000d462
test dil, 2
je 0x14000d462
mov rcx, qword [0x14011a340]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14011a340], rbp
test r12b, r12b
mov r12, qword [rsp + 0x60]
je 0x14000d495
xorpd xmm3, xmm3
lea rcx, [0x1400e58d0]
xor r8d, r8d
mov edx, 0x10000
mov dword [0x140114474], ebp
mov qword [rsp + 0x20], rbp
call fcn.1400b3ef0
mov dword [0x140114474], esi
mov rcx, qword [0x1401198f8]
test rcx, rcx
je 0x14000d4a7
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r8, qword [0x140115e60]
mov edi, ebp
cmp bp, word [r8]
jae 0x14000d54b
mov rdx, qword [0x14011b128]
mov r9, qword [0x14011b120]
mov rsi, rbp
nop dword [rax + rax]
mov rax, qword [0x14011a388]
mov rbx, qword [rsi + rax]
test rbx, rbx
je 0x14000d53d
cmp byte [rbx + 0x18], bpl
je 0x14000d514
movzx edx, word [rbx + 4]
mov rcx, qword [0x140119798]
call qword [sym.imp.USER32.dll_UnregisterHotKey]
mov r8, qword [0x140115e60]
mov rdx, qword [0x14011b128]
mov r9, qword [0x14011b120]
test eax, eax
sete al
mov byte [rbx + 0x18], al
cmp rbx, rdx
jne 0x14000d53d
test rdx, rdx
je 0x14000d53d
mov rax, qword [r9 + 8]
mov rcx, rax
sub rcx, rdx
mov rdx, rbp
sub rax, rcx
add qword [r9 + 0x10], rcx
mov qword [0x14011b128], rdx
mov qword [r9 + 8], rax
movzx eax, word [r8]
inc edi
add rsi, 8
cmp edi, eax
jl 0x14000d4d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000dc20
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x1040
call fcn.1400d23b0
sub rsp, rax
cmp byte [0x14011bff0], 0
mov rbx, rdx
mov rbp, rcx
jne 0x14000ddae
cmp dword [0x14011a37c], 0
jne 0x14000dc5b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14011a37c], eax
inc dword [0x14011bff4]
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1058], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x14011bff4]
mov edx, dword [0x14011448c]
mov ecx, eax
mov dword [0x14011a380], eax
sub ecx, dword [0x14011a37c]
cmp r9d, dword [0x140114488]
jbe 0x14000dd17
cmp ecx, edx
jae 0x14000dd17
mov dword [rsp + 0x20], ecx
lea r8, [0x1400e6250]
lea rcx, [rsp + 0x40]
mov edx, 0x800
mov esi, 1
call fcn.1400ad210
call fcn.14000c7b0
xor edi, edi
xorpd xmm3, xmm3
lea edx, [rsi + 3]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov byte [0x14011bff0], sil
mov dword [0x140114474], edi
mov qword [rsp + 0x20], rdi
call fcn.1400b3ef0
cmp eax, 7
jne 0x14000dd02
lea edx, [rsi + 3]
lea rcx, [0x14011b1d0]
xor r8d, r8d
call fcn.14001fcf0
mov eax, dword [0x14011a380]
mov dword [0x140114474], esi
mov byte [0x14011bff0], dil
jmp 0x14000dd1f
xor edi, edi
mov esi, edi
cmp ecx, edx
jbe 0x14000dd2f
mov dword [0x14011bff4], edi
mov dword [0x14011a37c], eax
test esi, esi
jne 0x14000dd9e
movzx eax, byte [rbp + 0xf]
mov dword [rsp + 0x30], edi
lea r8, [0x1400e34f0]
mov byte [0x14011bd4e], al
mov rcx, qword [rbx]
inc byte [rbx + 0x22]
mov rdx, rcx
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.1400a33d0
dec byte [rbx + 0x22]
test eax, eax
jne 0x14000dd6a
mov byte [rbx + 0x27], al
jmp 0x14000dd9e
cmp byte [rbx + 0x27], 0
je 0x14000dd9e
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14000dd9e
movzx r8d, word [rbp + 4]
mov rcx, qword [0x140119798]
xor r9d, r9d
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rsi, qword [rsp + 0x1050]
mov rdi, qword [rsp + 0x1058]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1040
pop rbp
ret
Function at 0x14001a580
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2c0
xor edx, edx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rsi, rax
test rax, rax
je 0x14001a6dc
mov edx, edi
lea rcx, [0x1400e6f40]
nop dword [rax]
movzx eax, word [rdx + rcx]
add rdx, 2
mov word [rsp + rdx + 0x2e], ax
test ax, ax
jne 0x14001a5b0
lea rcx, [rsp + 0x94]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x14001a6cc
lea rax, [rsp + 0x2f0]
lea rdx, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a6cc
mov rcx, qword [rsp + 0x2f0]
lea rax, [rsp + 0x2e8]
lea rdx, [0x1400e6fa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x2e0], rbx
mov dword [rsp + 0x2e8], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x2f0]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2e0]
jne 0x14001a6cc
mov ecx, dword [rsp + 0x2e8]
test ecx, ecx
je 0x14001a6cc
shr ecx, 1
dec ecx
cmp word [rsp + rcx*2 + 0xb0], di
jne 0x14001a6a5
test ecx, ecx
je 0x14001a6cc
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0xb0], di
jne 0x14001a6b7
mov ecx, edx
test edx, edx
jne 0x14001a690
jmp 0x14001a6cc
inc ecx
cmp ecx, 0x104
jae 0x14001a6cc
mov word [rsp + rcx*2 + 0xb0], di
test ecx, ecx
je 0x14001a6cc
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rbp, rsi
je 0x14001a6dc
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rax, rdi
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret