joyce8/EMBER2024-capa huggingface dataset:
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, 0xb
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 0x140019fc0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x1401198e8], 0
je 0x140019fde
test cl, cl
jne 0x140019fde
movzx eax, byte [0x140119791]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x20], rdi
xor bl, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x8000
test di, ax
mov eax, 0x10
movzx ebx, bl
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a01b
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a02e
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a041
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a054
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a067
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a07a
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a08d
or bl, 0x80
cmp qword [0x1401198e8], 0
je 0x14001a120
movzx edi, bl
not dil
and dil, byte [0x140119791]
cmp byte [0x140119796], 0
je 0x14001a0ce
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14011844c]
cmp eax, 0x14
jae 0x14001a0ce
movzx eax, byte [0x140119796]
not al
and dil, al
test dil, dil
je 0x14001a120
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 0x14001a120
test byte [rcx + 0xc], dil
mov eax, 0
cmovne rcx, rax
mov qword [0x1401185e0], rcx
mov rdi, qword [rsp + 0x20]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x14001a520
Capabilities:
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
test rcx, rcx
je 0x14001a564
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x14001a564
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001a564
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
add rsp, 0x70
pop rbx
ret
Function at 0x14001a970
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push rsi
sub rsp, 0x158
movzx esi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rsi - 0x41]
mov rbx, rax
cmp dl, 0x19
ja 0x14001aaed
mov qword [rsp + 0x150], rbp
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x140], r12
call fcn.1400d07b0
xor edi, edi
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
lea ecx, [rdi + 0x6e]
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rbx
movzx ebp, di
cmp eax, 2
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
cmove bp, word [rsp + 0x180]
movzx ecx, sil
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r12d, eax
test eax, eax
jns 0x14001aa52
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x40]
lea ecx, [rdi + 0x6e]
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bp, bp
je 0x14001aabb
cmp bp, 0xa
jne 0x14001aa62
mov sil, 0xd
jmp 0x14001aa7f
lea rdx, [rsp + 0x170]
mov r9b, 1
mov r8, rbx
movzx ecx, bp
call fcn.14001adb0
movzx esi, al
test al, al
je 0x14001aabb
movzx edx, byte [rsp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.14001a140
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x40]
movzx ecx, sil
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbp, qword [rsp + 0x150]
test r12d, r12d
mov r12, qword [rsp + 0x140]
je 0x14001aad8
movzx edi, word [rsp + 0x180]
movzx eax, di
mov rdi, qword [rsp + 0x148]
add rsp, 0x158
pop rsi
pop rbx
ret
movzx ecx, sil
mov r8, rax
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x158
pop rsi
pop rbx
ret
Function at 0x14001ac30
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r12
sub rsp, 0x38
cmp word [rcx + 2], 0
mov rax, r9
movzx r12d, r8b
mov rbp, rcx
jne 0x14001ac6e
movzx ecx, word [rcx]
cmp cx, 0xa
jne 0x14001ac5c
mov al, 0xd
add rsp, 0x38
pop r12
pop rbp
ret
mov r9b, 1
mov r8, rax
add rsp, 0x38
pop r12
pop rbp
jmp fcn.14001adb0
mov qword [rsp + 0x58], rbx
movzx ebx, word [rcx]
test ebx, 0xffffff80
jne 0x14001ac91
mov edx, 2
mov ecx, ebx
call fcn.1400cbb48
test eax, eax
je 0x14001ac91
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x14001ad11
movzx ebx, word [rbp + 2]
test ebx, 0xffffff80
jne 0x14001acbb
mov edx, 2
mov ecx, ebx
call fcn.1400cbb48
test eax, eax
je 0x14001acbb
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x14001ad11
lea rcx, [rbp + 4]
lea rdx, [rsp + 0x50]
mov r8d, 0x10
call fcn.1400cc0d0
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x14001acf8
mov rbx, qword [rsp + 0x58]
xor edi, edi
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rbp
ret
mov rbx, qword [rsp + 0x58]
movzx edi, al
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rbp
ret
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
lea r14, str.Numpad0
xor edi, edi
lea r13, str.NumpadEnter
mov rbx, r14
mov esi, edi
mov rcx, qword [rbx]
mov rdx, rbp
call fcn.1400ca91c
test eax, eax
je 0x14001ad78
add rbx, 0x10
inc esi
cmp rbx, r13
jl 0x14001ad35
test r12b, r12b
je 0x14001ad58
xor al, al
jmp 0x14001ad85
xor edx, edx
mov rcx, rbp
call fcn.14001ab10
test ax, ax
je 0x14001ad72
movzx ecx, ax
call fcn.14001b6a0
movzx edi, al
movzx eax, dil
jmp 0x14001ad85
movsxd rax, esi
shl rax, 4
movzx eax, byte [rax + r14 + 8]
mov r13, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r12
pop rbp
ret

Function at 0x14001adb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdx, r8
movzx edi, r9b
movzx ebp, cx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rsi, ax
mov rdx, rsi
shr rdx, 8
cmp dl, 0xff
jne 0x14001ae29
cmp sil, 0xff
jne 0x14001ae29
test dil, dil
je 0x14001ae41
movzx edi, bp
test edi, 0xffffff80
jne 0x14001ae41
mov edx, 0x103
mov ecx, edi
call fcn.1400cbb48
test eax, eax
je 0x14001ae41
movzx ecx, bp
call fcn.14000c560
mov edx, 1
mov ecx, edi
movzx esi, al
call fcn.1400cbb48
test eax, eax
setne dl
test dl, 0x38
jne 0x14001ae41
test rbx, rbx
je 0x14001ae75
movzx eax, dl
and al, 6
cmp al, 6
jne 0x14001ae45
or byte [rbx], 8
jmp 0x14001ae65
xor al, al
jmp 0x14001ae79
test dl, 2
je 0x14001ae55
movzx eax, byte [rbx]
test al, 3
jne 0x14001ae55
or al, 1
mov byte [rbx], al
test dl, 4
je 0x14001ae65
movzx eax, byte [rbx]
test al, 0xc
jne 0x14001ae65
or al, 4
mov byte [rbx], al
test dl, 1
je 0x14001ae75
movzx eax, byte [rbx]
test al, 0x30
jne 0x14001ae75
or al, 0x10
mov byte [rbx], al
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b330
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edi, cl
movzx ebx, dl
lea rsi, [0x140000000]
lea eax, [rdi - 0x13]
cmp eax, 0x92
ja case.0x14001b36e.45
cdqe
movzx eax, byte [rsi + rax + 0x1b540]
mov ecx, dword [rsi + rax*4 + 0x1b4d4]
add rcx, rsi
jmp rcx
mov eax, 0x2a
jmp 0x14001b439
mov eax, 0x136
jmp 0x14001b439
mov eax, 0x1d
jmp 0x14001b439
mov eax, 0x11d
jmp 0x14001b439
mov eax, 0x38
jmp 0x14001b439
mov eax, 0x138
jmp 0x14001b439
mov eax, 0x15b
jmp 0x14001b439
mov eax, 0x15c
jmp 0x14001b439
mov eax, 0x45
jmp 0x14001b439
mov eax, 0x52
jmp 0x14001b439
mov eax, 0x4f
jmp 0x14001b439
mov eax, 0x50
jmp 0x14001b439
mov eax, 0x51
jmp 0x14001b439
mov eax, 0x4b
jmp 0x14001b439
mov eax, 0x4c
jmp 0x14001b439
mov eax, 0x4d
jmp 0x14001b439
mov eax, 0x47
jmp 0x14001b439
mov eax, 0x48
jmp 0x14001b439
mov eax, 0x49
jmp 0x14001b439
mov eax, 0x53
jmp 0x14001b439
mov eax, 0x145
jmp 0x14001b439
mov eax, 0x135
jmp 0x14001b439
mov eax, 0x37
jmp 0x14001b439
mov eax, 0x4a
jmp 0x14001b439
mov eax, 0x4e
jmp 0x14001b439
mov eax, 0x137
test bl, bl
jne 0x14001b48f
movzx eax, ax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r11d, eax
test ax, ax
je 0x14001b48f
lea eax, [rdi - 3]
cmp eax, 0xb4
ja case.0x14001b480.5
cdqe
movzx eax, byte [rsi + rax + 0x1b5e0]
mov ecx, dword [rsi + rax*4 + 0x1b5d4]
add rcx, rsi
jmp rcx
mov ecx, 0x100
or r11w, cx
test bl, bl
je 0x14001b4c0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, r11w
test bl, bl
je 0x14001b4c4
mov ecx, 0x100
or eax, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, r11w
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b6a0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cx
mov r8d, ebx
mov eax, ebx
cmp ebx, 0x11c
jg 0x14001b786
cmp eax, 0x11c
je 0x14001b77e
sub eax, 0x1d
cmp eax, 0x36
ja case.0x14001b7ab.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x1b878]
mov ecx, dword [rdx + rax*4 + 0x1b82c]
add rcx, rdx
jmp rcx
mov al, 0xa0
add rsp, 0x20
pop rbx
ret
mov al, 0xa2
add rsp, 0x20
pop rbx
ret
mov al, 0xa4
add rsp, 0x20
pop rbx
ret
mov al, 0x6a
add rsp, 0x20
pop rbx
ret
mov al, 0x6d
add rsp, 0x20
pop rbx
ret
mov al, 0x6b
add rsp, 0x20
pop rbx
ret
mov al, 0x2e
add rsp, 0x20
pop rbx
ret
mov al, 0xc
add rsp, 0x20
pop rbx
ret
mov al, 0x2d
add rsp, 0x20
pop rbx
ret
mov al, 0x26
add rsp, 0x20
pop rbx
ret
mov al, 0x28
add rsp, 0x20
pop rbx
ret
mov al, 0x25
add rsp, 0x20
pop rbx
ret
mov al, 0x27
add rsp, 0x20
pop rbx
ret
mov al, 0x24
add rsp, 0x20
pop rbx
ret
mov al, 0x23
add rsp, 0x20
pop rbx
ret
mov al, 0x21
add rsp, 0x20
pop rbx
ret
mov al, 0x22
add rsp, 0x20
pop rbx
ret
mov al, 0x13
add rsp, 0x20
pop rbx
ret
mov al, 0xd
add rsp, 0x20
pop rbx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x14001b7ab.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x1b8d8]
mov ecx, dword [rdx + rax*4 + 0x1b8b0]
add rcx, rdx
jmp rcx
mov al, 0xa1
add rsp, 0x20
pop rbx
ret
mov al, 0xa3
add rsp, 0x20
pop rbx
ret
mov al, 0xa5
add rsp, 0x20
pop rbx
ret
mov al, 0x5b
add rsp, 0x20
pop rbx
ret
mov al, 0x5c
add rsp, 0x20
pop rbx
ret
mov al, 0x90
add rsp, 0x20
pop rbx
ret
mov al, 0x6f
add rsp, 0x20
pop rbx
ret
mov al, 0x5d
add rsp, 0x20
pop rbx
ret
mov al, 0x2c
add rsp, 0x20
pop rbx
ret
mov eax, 0x100
test ax, bx
je 0x14001b818
movzx ecx, r8b
mov edx, 1
or ecx, 0xe000
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x14001b826
movzx ecx, bl
mov edx, 1
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x20
pop rbx
ret

Function at 0x14001b920
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x140118630], ecx
mov edx, 1
lea r8, [0x140118634]
nop word [rax + rax]
mov eax, dword [r8 - 4]
add r8, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
inc edx
mov dword [r8 - 4], ecx
cmp edx, 0x270
jl 0x14001b940
mov dword [0x140113a04], 1
mov dword [0x14011a460], 1
ret

Function at 0x14001c090
Capabilities:
Write clipboard data

Disassembly:
sub rsp, 0x38
movzx eax, byte [rcx + 0x23]
test al, al
jne 0x14001c0b8
mov rcx, qword [rcx + 0x10]
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov byte [rsp + 0x20], 1
call fcn.1400b14e0
add rsp, 0x38
ret
cmp al, 2
jne 0x14001c0ce
lea rcx, [0x1400e346c]
xor edx, edx
add rsp, 0x38
jmp fcn.1400060c0
cmp qword [0x140114480], 2
jae 0x14001c0fd
cmp qword [rcx + 0x18], 2
jae 0x14001c0fd
lea r8, [0x1400e346c]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x14011b1d0]
add rsp, 0x38
jmp fcn.140040740
xor r8d, r8d
lea edx, [r8 + 3]
call fcn.1400b1b90
mov eax, 1
add rsp, 0x38
ret
Function at 0x14001fcf0
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x160
cmp byte [0x14011c00b], 0
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov dword [rcx + 0xb44], edx
jne 0x14001fed4
cmp byte [rcx + 0xbb4], 0
je 0x14001fed4
mov rcx, qword [0x14011a308]
mov qword [rax + 8], rbx
mov dword [0x14011d10c], r8d
xor r8d, r8d
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r13
lea edx, [r8 + 1]
call fcn.140001820
lea rcx, [rsp + 0x60]
mov r8d, 0x7f
mov rdx, rax
call fcn.1400cd7f4
mov rbx, qword [0x1401144a8]
inc dword [0x140119934]
add rbx, 0x150
lea rdx, [0x140118220]
xor r13d, r13d
mov rcx, rbx
mov r8d, 0x150
mov word [rsp + 0x15e], r13w
mov qword [0x1401144a8], rbx
call fcn.1400cb2e0
lea rcx, [0x14011b1d0]
xor edx, edx
mov dword [rbx + 0x3c], r13d
call fcn.14001f650
cmp dword [0x140119980], r13d
mov qword [0x14011bd90], r13
je 0x14001fddf
mov rax, qword [0x140115e50]
lea rcx, [0x1400e346c]
test rax, rax
je 0x14001fdd9
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rdi + 0xb30]
mov r12d, dword [0x140114474]
mov byte [0x14011c00b], 1
mov dword [0x140114474], r13d
mov bl, 1
mov byte [0x14011639c], r13b
test rcx, rcx
je 0x14001fe20
call 0x1400a7a30
test eax, eax
je 0x14001fe20
cmp byte [0x14011639c], r13b
movzx ebx, bl
cmove ebx, r13d
mov byte [0x14011639c], 1
test bl, bl
je 0x14001fe7d
mov dword [rsp + 0x30], r13d
call 0x140068fb0
mov r9d, r13d
cmp qword [rdi + 0xb30], r9
mov qword [rsp + 0x20], rax
movsxd rax, dword [0x14011d10c]
lea rcx, [rdi + 0xae0]
lea rdx, [rsp + 0x20]
sete r9b
mov r8d, 2
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 1
call 0x1400a7c00
movzx ebx, bl
cmp eax, 3
cmove ebx, r13d
mov byte [0x14011c00b], r13b
mov r13, qword [rsp + 0x190]
test bl, bl
mov rbx, qword [rsp + 0x180]
jne 0x14001fec6
cmp esi, 0xffffffff
jle 0x14001fec6
lea rcx, [rsp + 0x60]
call fcn.140004b20
mov dword [0x140114474], r12d
mov r12, qword [rsp + 0x188]
mov eax, 8
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
mov r8d, ebp
mov edx, esi
mov rcx, rdi
call fcn.14001ff20
int3
cmp byte [0x14011639c], 0
jne 0x14001ff12
cmp edx, 6
jne 0x14001ff12
mov rax, qword [0x1401196d0]
mov ecx, dword [0x14011d10c]
mov byte [0x14011639c], 1
cmp word [rax], 0
lea eax, [rdx + 2]
cmovne ecx, r8d
mov dword [0x14011d10c], ecx
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
call fcn.14001ff20
int3
Function at 0x1400207e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
lea rdx, str._AUTOHOTKEY_SCRIPT_
mov r8d, 0xa
xor ecx, ecx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400208f1
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
test eax, eax
je 0x1400208f1
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400208f1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400208f1
mov ecx, 0x58
call fcn.1400cbd40
test rax, rax
je 0x14002088a
mov rcx, rax
call fcn.14001e550
mov rbx, rax
jmp 0x14002088c
xor ebx, ebx
mov dword [rsp + 0x50], 0xc
mov rax, qword [rbx]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsi], rbx
mov dword [rbx + 0xc], 0
call qword [rax + 8]
test al, al
je 0x1400208c8
lea rdx, [rsp + 0x50]
mov r8d, 0xfde9
mov rcx, rbx
call fcn.1400aab70
mov rax, qword [0x14011bd50]
inc dword [0x14011a468]
mov qword [0x140118628], rax
mov eax, 3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.Could_not_extract_script_from_EXE.
lea rcx, [0x14011b1d0]
mov r8, rdi
call fcn.140040740
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140041180
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
mov eax, 0x4030
call fcn.1400d23b0
sub rsp, rax
mov rbx, qword [rsp + 0x4070]
mov rbp, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x1400411ce
mov rbx, qword [rcx + 0x6a0]
test rbx, rbx
jne 0x1400411ce
mov ecx, dword [rcx + 0x2c8]
movzx eax, word [rdi + 0x2cc]
jmp 0x1400411d6
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
test edx, edx
je 0x1400412b7
movsxd r9, ecx
mov qword [rsp + 0x28], r8
lea rcx, [0x140118628]
mov r9, qword [rcx + r9*8]
movzx eax, ax
mov qword [rsp + 0x4050], r13
mov r13d, 0x2000
lea rcx, [rsp + 0x30]
lea r8, str._s___d__:___Warning:__s_n
mov edx, r13d
mov dword [rsp + 0x20], eax
call fcn.1400ad210
cmp word [rbp], 0
movsxd rcx, eax
lea rcx, [rsp + rcx*2 + 0x30]
je 0x14004124c
lea rdx, [rsp + 0x30]
mov rax, rcx
lea r8, str._____Specifically:__s_n
sub rax, rdx
mov r9, rbp
sar rax, 1
sub r13d, eax
mov edx, r13d
call fcn.1400ad210
mov r13, qword [rsp + 0x4050]
cmp esi, 3
jne 0x140041272
lea r9, [0x1400e8860]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call 0x1400401a0
jmp 0x1400412b7
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x1400412b7
test rbx, rbx
jne 0x1400412a3
mov rbx, qword [rdi + 0x6a0]
test rbx, rbx
jne 0x1400412a3
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.140040740
jmp 0x1400412b7
mov r9, rbp
mov r8d, 1
mov rdx, r12
mov rcx, rbx
call fcn.1400403f0
lea r11, [rsp + 0x4030]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140063e00
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400d23b0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140063e2d
lea rbx, [rsp + 0x20]
jmp 0x140063e32
test rbx, rbx
je 0x140063e41
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov rdx, rbx
call fcn.140079920
add rsp, 0x10020
pop rbx
ret

Function at 0x1400791d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x1400791e5
xor al, al
add rsp, 0x20
pop rbx
ret
dec edx
je 0x140079210
dec edx
movzx ecx, bl
je 0x1400791f8
call qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x140079236
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r11d, ax
and r11d, 1
movzx eax, r11b
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x14007921c
cmp bl, 3
jne 0x140079223
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x14007924c
cmp qword [0x1401198f0], 0
jne 0x14007926e
movzx ecx, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx r11d, ax
shr r11d, 0xf
and r11b, 1
movzx eax, r11b
add rsp, 0x20
pop rbx
ret
cmp qword [0x1401198e8], 0
je 0x14007922d
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.14001a220
test al, al
je 0x14007926e
mov cl, 1
call fcn.140019fc0
lea rcx, [0x1401197e0]
movzx eax, bl
movzx eax, byte [rax + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret
Function at 0x1400ae160
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400ae248
cmp word [rcx], 0
je 0x1400ae248
lea rdx, [0x140101830]
mov r8d, 4
call fcn.1400cc780
mov r8, rbx
test eax, eax
jne 0x1400ae1a3
lea r8, [rbx + 8]
test r8, r8
je 0x1400ae1e0
movzx edx, word [r8]
test dx, dx
je 0x1400ae1e0
lea rcx, [0x1400ee8c8]
mov eax, 0x3f
nop dword [rax]
cmp dx, ax
je 0x1400ae20d
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400ae1c0
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x1400ae1b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r11d, eax
test rdi, rdi
je 0x1400ae1f3
mov dword [rdi], eax
xor eax, eax
cmp r11d, 0xffffffff
setne al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400ae248
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test rdi, rdi
je 0x1400ae235
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x1400ae9d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400d23b0
sub rsp, rax
mov rdi, rdx
lea rdx, [rsp + 0x20]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x1400aea2f
lea rcx, [rbx + 1]
cmp rcx, 0x7fff
ja 0x1400aea2f
lea r8, [rbx + rbx + 2]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400cb2e0
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret