joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001875
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400018a8
mov eax, 0
jmp 0x1400019ed
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400018d4
mov eax, 0
jmp 0x1400019ed
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xf8]
test eax, eax
je 0x1400018ec
mov eax, 0
jmp 0x1400019ed
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 0x108
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001965
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001973
mov eax, 0
jmp 0x1400019ed
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x54]
mov ecx, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp - 0x14], 0
jmp 0x1400019d9
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov r8d, eax
mov rax, qword [rbp - 8]
add rax, r8
mov r8, rcx
mov rcx, rax
call sym.memcpy
add qword [rbp - 0x10], 0x28
add dword [rbp - 0x14], 1
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x14], eax
jl 0x140001998
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret

Function at 0x140001ea0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x141ddf0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400020c0
mov rax, qword [0x141ddf0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001f5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001fe7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001f40
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14000211d
mov rax, qword [0x141ddf0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x141ddf0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002102
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001fe0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002070
add dword [0x141ddf0a4], 1
cmp ebx, 8
jae 0x140002018
test bl, 4
jne 0x1400020d0
test ebx, ebx
je 0x140002009
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400020f0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140002009
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000204a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x141ddf0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001f67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140002009
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140002009
mov rax, qword [0x141ddf0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002630
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x141ddf100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x141ddf0e0]
test rbx, rbx
je 0x140002684
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000267b
test r12, r12
je 0x14000267b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002660
lea rcx, [0x141ddf100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400028b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1400028c0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400028d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002915
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000290c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002917
add rax, 0x28
cmp rax, r9
jne 0x1400028f8
xor eax, eax
ret

Function at 0x1400029c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x141ddc700]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002a39
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002a39
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002a36
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140002a2d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002a39
add r8, 0x28
cmp r8, r9
jne 0x140002a18
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x141ddc700]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140002b8f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002b8f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140002b8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b98
add rax, 0x28
cmp rax, r9
jne 0x140002b70
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002bb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x141ddc700]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002c28
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002c28
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002c28
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002c28
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002c1c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002c30
add rdx, 0x28
cmp rdx, r10
jne 0x140002c08
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002c40
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002c4e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002c25
test r8d, r8d
jg 0x140002c38
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400049d0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rbx, qword [0x1401144a8]
movzx r12d, r9b
movzx edi, r8b
movzx esi, dl
mov ebp, ecx
test r8b, r8b
je 0x140004a17
inc dword [0x140119934]
add rbx, 0x150
mov qword [0x1401144a8], rbx
lea rdx, [0x140118220]
mov rcx, rbx
mov r8d, 0x150
call fcn.1400cb2e0
mov dword [rbx + 0x3c], ebp
test dil, dil
je 0x140004a42
lea rcx, [0x14011b1d0]
xor edx, edx
call fcn.14001f650
xor edi, edi
cmp dword [0x140119980], edi
mov qword [0x14011bd90], rdi
je 0x140004a76
mov rax, qword [0x140115e50]
lea rcx, [0x1400e346c]
test rax, rax
je 0x140004a70
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test sil, sil
jne 0x140004b02
cmp byte [rbx + 0x12e], dil
jne 0x140004aaa
cmp r12b, 0x65
sete dil
mov byte [rbx + 0x12e], dil
test dil, dil
je 0x140004aaa
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x14011bd9c], 0
je 0x140004abc
cmp dword [0x14011bd98], 0
jne 0x140004ac5
cmp byte [rbx + 0x12e], 0
je 0x140004b02
cmp byte [rbx + 0x12e], 0
mov byte [rbx + 0x12c], 0
jne 0x140004b02
cmp dword [0x14011bd9c], 0
jge 0x140004aea
mov dword [rbx + 0x120], 0xffffffff
jmp 0x140004b02
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x11c], eax
mov eax, dword [0x14011bd9c]
mov dword [rbx + 0x120], eax
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 0x1400060c0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp qword [0x14011be40], 0
mov rbx, rdx
mov rsi, rcx
je 0x1400060e7
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rdi
test rcx, rcx
je 0x140006157
mov eax, 0xffffffff
cmp rdx, rax
jne 0x140006110
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
mov ebx, ebx
test rbx, rbx
je 0x140006157
lea rdx, [rbx + 1]
lea rcx, [0x14011be28]
call fcn.140006180
test rax, rax
jne 0x14000613a
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [0x14011be40]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400cd7f4
xor r11d, r11d
mov word [rdi + rbx*2], r11w
lea rcx, [0x14011be28]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp fcn.140006240
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, str.Link_Source
lea rcx, [rsp + 0x20]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
call fcn.1400cab74
test eax, eax
je 0x1400065a7
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, str.Native
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x14000659c
lea rdx, str.MSDEVLineSelect
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, str.AHK_Keybd
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, str.AHK_Mouse
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, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
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, str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
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 0x140016cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
cmp dword [0x14011a3bc], 2
movzx ebp, r8b
mov ebx, edx
sete sil
movzx edi, cx
test sil, sil
je 0x140016d4a
movzx ecx, cx
lea rdx, [rsp + 0x30]
test ecx, 0xffffff80
je 0x140016d37
mov eax, gethostbyname
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call fcn.1400ca670
movzx edi, word [rsp + 0xa8]
test ebx, ebx
jle 0x140016e18
mov qword [rsp + 0xa0], r12
xor r12d, r12d
nop dword [rax]
cmp dword [0x14011a3bc], r12d
jne 0x140016dca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401144a8]
sub eax, dword [0x14011bda4]
cmp eax, dword [rcx + 0x118]
jbe 0x140016dca
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140016dbe
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140114474], r12d
call fcn.140001a70
mov dword [0x140114474], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14011bda4], eax
test sil, sil
je 0x140016ddb
lea rcx, [rsp + 0x30]
call fcn.140016e30
jmp 0x140016de7
movzx edx, bpl
movzx ecx, di
call fcn.140014c20
cmp dword [0x14011a3bc], 2
mov rax, qword [0x1401144a8]
jne 0x140016dff
mov ecx, dword [rax + 0x80]
jmp 0x140016e02
mov ecx, dword [rax + 0x7c]
call fcn.1400192b0
dec rbx
jne 0x140016d60
mov r12, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016e30
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x14011a3bc], 0
mov qword [rsp + 0x40], rbx
mov rsi, rcx
je 0x140016e53
movzx ebx, byte [0x1401185ef]
jmp 0x140016fab
cmp qword [0x1401198e8], 0
je 0x140016e69
movzx ebx, byte [0x140119791]
jmp 0x140016fab
mov ecx, 0xa0
mov qword [rsp + 0x48], rdi
xor bl, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x8000
movzx ebx, bl
test di, ax
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016ea1
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016eb4
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016ec7
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016eda
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016eed
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016f00
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016f13
or bl, 0x80
cmp qword [0x1401198e8], 0
je 0x140016fa6
movzx edi, bl
not dil
and dil, byte [0x140119791]
cmp byte [0x140119796], 0
je 0x140016f54
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14011844c]
cmp eax, 0x14
jae 0x140016f54
movzx eax, byte [0x140119796]
not al
and dil, al
test dil, dil
je 0x140016fa6
movzx edx, byte [0x140119793]
movzx eax, dil
lea rcx, [0x1401197e0]
not al
and byte [0x140119791], al
and byte [0x140119792], al
and dl, al
mov byte [0x140119793], dl
call fcn.14001a140
mov rcx, qword [0x1401185e0]
test rcx, rcx
je 0x140016fa6
test byte [rcx + 0xc], dil
mov eax, 0
cmovne rcx, rax
mov qword [0x1401185e0], rcx
mov rdi, qword [rsp + 0x48]
movzx ecx, bl
xor r9d, r9d
xor r8d, r8d
and cl, 0xc4
movzx edx, bl
mov dword [rsp + 0x28], 0xffc3d44f
or cl, 4
mov byte [rsp + 0x20], 1
call fcn.140019770
movzx eax, word [rsi]
mov rbx, qword [rsp + 0x40]
cmp ax, 0x30
jb 0x140017016
nop dword [rax]
cmp ax, 0x39
ja 0x140017016
movzx edx, byte [rsi]
xor r8d, r8d
xor r9d, r9d
lea ecx, [r8 + 2]
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.1400172d0
movzx eax, word [rsi + 2]
add rsi, 2
cmp ax, 0x30
jae 0x140016fe0
xor r8d, r8d
xor r9d, r9d
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.1400172d0
add rsp, 0x30
pop rsi
ret