joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e018
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004e062
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004e062
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004e062
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004e062
cmp dword [rcx + 0x84], 0xe
jbe 0x14004e062
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004e064
xor al, al
add rsp, 0x28
ret
Function at 0x140001990
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rbx, qword [rdx]
mov rsi, rcx
lea rcx, [rbp + 0x30]
mov r14d, r8d
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp + 0x30]
lea rdx, [rbp + 0x30]
mov dword [rdi + 0x290], eax
mov rcx, rbx
mov eax, dword [rbp + 0x34]
mov dword [rdi + 0x294], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rbp + 0x30]
mov ecx, dword [rbp + 0x34]
cmp eax, dword [rdi + 0x298]
jne 0x140001a8b
cmp ecx, dword [rdi + 0x29c]
jne 0x140001a8b
mov ecx, dword [rsi + 0x18]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [rsi + 0x1c]
mov ebx, 0x8000
movzx r15d, ax
mov r12d, 0
and r15w, bx
setne r12b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx r13d, ax
mov eax, 0
and r13w, bx
mov ebx, eax
setne bl
cmp r12d, dword [rdi + 0x2a0]
jne 0x140049491
test r14d, r14d
je 0x140001a57
mov dword [rdi + 0x2a0], r12d
cmp ebx, dword [rdi + 0x2a4]
jne 0x140049518
test r14d, r14d
je 0x140001a6e
mov dword [rdi + 0x2a4], ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rdi + 0x298], eax
mov dword [rdi + 0x29c], ecx
cmp r14d, 1
jl 0x140001a03
jmp 0x140049474
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov rcx, rsi
mov r8, rdi
mov edx, 0xfffffff5
call fcn.1400a8360
nop
jmp 0x140001a03
cmp r14d, 1
jl 0x140001a4b
cmp byte [rdi + 0x2e0], al
je 0x140001a4b
mov eax, dword [rbp + 0x34]
mov r8, rdi
mov r9d, dword [rbp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x20], eax
test r15w, r15w
je 0x1400494c5
mov edx, 0xfffffff9
jmp 0x140049506
mov edx, 0xfffffff8
call fcn.1400a8360
xor eax, eax
cmp byte [rdi + 0x2a8], al
je 0x14004950d
mov rcx, qword [rdi]
lea edx, [rax - 0x10]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r9d, dword [rbp + 0x30]
mov r8, rdi
bt eax, 0x18
mov rcx, rsi
mov eax, dword [rbp + 0x34]
mov edx, 0xfffffffa
mov dword [rsp + 0x20], eax
jb 0x140049506
mov edx, 0xfffffff4
call fcn.1400a8360
xor eax, eax
mov byte [rdi + 0x2a8], al
jmp 0x140001a4b
cmp r14d, 1
jl 0x140001a63
mov eax, dword [rbp + 0x34]
mov r8, rdi
mov r9d, dword [rbp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x20], eax
mov edx, 0xfffffff7
test r13w, r13w
jne 0x140049543
mov edx, 0xfffffff6
call fcn.1400a8360
nop
jmp 0x140001a63
Function at 0x140003bfc
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x10], 0
lea rdx, str.AutoIt_v3
mov rax, qword [0x1400ef398]
mov r9d, 0xcf0000
mov qword [r11 - 0x18], rax
mov r8, rdx
and qword [r11 - 0x20], 0
mov eax, 0x80000000
and qword [r11 - 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
and qword [rsp + 0x58], 0
lea rdx, str.edit
mov rcx, qword [0x1400ef398]
mov r9d, 0x50b008c4
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], 1
xor ecx, ecx
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov qword [0x1400ef3f0], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [0x1400ef3f0]
xor edx, edx
mov qword [0x1400ef3e8], rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400ef3f0]
xor edx, edx
add rsp, 0x68
jmp qword [sym.imp.USER32.dll_ShowWindow]
Function at 0x140004114
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1ff70]
mov eax, 0x20070
call fcn.140048790
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.14000c970
xor bl, bl
lea rdx, [rsp + 0x70]
mov ecx, 0x7fff
mov byte [rbp + 0x1ffa0], bl
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [rbp + 0x1ffb0]
mov rdx, rsi
call fcn.140004390
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14004a7bc
mov eax, dword [0x1400ef4a0]
test eax, eax
je 0x14004a7de
mov r15d, 1
lea rcx, [0x1400f1260]
cmp eax, r15d
je 0x14004a7ea
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400ef4a0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400ef4c8]
call fcn.1400042f8
test al, al
je 0x14004a80e
mov al, byte [0x1400f1260]
lea r9, [rbp + 0x1ffb8]
mov rcx, qword [0x1400ef4c8]
lea r8, [rbp + 0xff70]
mov dil, byte [0x1400f1261]
mov edx, 0x7fff
mov byte [0x1400ef4a4], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400ef480]
call fcn.14000c614
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400ef4a0]
lea rdx, [0x1400ef4c8]
call fcn.140002b4c
test eax, eax
jne 0x14004a81a
cmp dil, r15b
je 0x14004a83d
call fcn.140003ac4
call fcn.140003bfc
cmp byte [0x1400ef4a4], 0
jne 0x140004253
lea rcx, [0x1400efe90]
call fcn.140004d3c
mov edx, r15d
lea rcx, [0x1400ef4f0]
call fcn.140010f10
cmp byte [0x1400ef4a4], 0
jne 0x140004277
lea rcx, [0x1400efe90]
call fcn.1400040b0
lea rcx, [0x1400f1260]
call fcn.140004b00
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.140009250
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, reloc.WSOCK32.dll_recv
lea r8, [0x1400db22c]
lea rdx, str.This_is_a_third_party_compiled_AutoIt_script.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x14000428e
or dword [0x1400ef3a0], 0xffffffff
jmp 0x140004283
mov r8, qword [0x1400ef4a8]
or r9d, 0xffffffff
mov edx, r15d
call fcn.1400085a0
mov al, byte [0x1400ef3a8]
mov byte [0x1400f1262], al
jmp 0x140004210
mov dword [0x1400ef3a0], r15d
jmp 0x140004283
lea rcx, [0x1400f1260]
call fcn.140004b00
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400ef3a0], r15d
jmp 0x14000428e
call fcn.14006ccdc
test al, al
jne 0x140004234
cmp byte [rbp + 0x1ffb0], al
jne 0x140004234
lea rcx, [rsp + 0x50]
call fcn.1400047e8
lea rdx, [0x1400d76f4]
lea rcx, [rsp + 0x30]
call fcn.14000e3e4
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14004a8a5
lea rdx, [0x1400db260]
call fcn.140004990
lea rdx, [0x1400ef4c8]
lea rcx, [rsp + 0x30]
call fcn.14000ca68
lea rdx, [0x1400db260]
lea rcx, [rsp + 0x30]
jmp 0x14004a8a8
mov rdx, rsi
call fcn.140004990
mov rbx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rsp + 0x50]
lea rdx, str.runas
mov rcx, rax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rsp + 0x30]
call fcn.140009250
nop
jmp 0x140004277
Function at 0x14000616c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov esi, r9d
mov rbp, r8
test r8, r8
je 0x14000622c
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x14000622c
lea rax, [r11 - 0x18]
mov word [rdi], bx
lea r9d, [rbx + 1]
mov qword [r11 - 0x28], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000622c
mov rcx, qword [rsp + 0x30]
lea eax, [rsi + rsi]
mov dword [rsp + 0x60], eax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006201
mov eax, dword [rsp + 0x60]
shr eax, 1
mov ecx, eax
mov dword [rsp + 0x60], eax
cmp eax, esi
jae 0x140006223
mov eax, ecx
mov word [rdi + rcx*2], bx
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea eax, [rsi - 1]
mov word [rdi + rax*2], bx
jmp 0x1400061ff
xor al, al
jmp 0x14000620e
Function at 0x140006c48
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
mov r10, r9
cmp byte [rcx + 0x20], 0
mov r11, r8
mov rbx, rdx
jne 0x14004b738
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.14003445c
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x30]
imul r10d, r11d
mov rax, qword [rcx]
mov r8d, r10d
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rax, qword [rsp + 0x30]
jmp 0x140006c7a

Function at 0x140008034
Capabilities:
Hash data using djb2

Disassembly:
mov eax, dword [rdx + 8]
mov r8d, 0x1505
mov r10, qword [rdx]
add eax, eax
xor edx, edx
movsxd r9, eax
test eax, eax
jle 0x14000805f
movzx ecx, byte [rdx + r10]
inc rdx
imul r8d, r8d, 0x21
add r8d, ecx
cmp rdx, r9
jl 0x14000804b
mov eax, r8d
ret
Function at 0x1400095d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140009679
xor edi, edi
test rsi, rsi
je 0x140009622
mov eax, dword [rbx + 0x14]
cmp eax, dword [rbx + 0x10]
je 0x14000963e
mov rcx, qword [rbx + 8]
movsxd rdx, eax
movzx edx, byte [rdx + rcx]
mov byte [rdi + rbp], dl
inc rdi
inc dword [rbx + 0x14]
mov eax, dword [rbx + 0x14]
cmp rdi, rsi
jb 0x140009601
add qword [rbx + 0x18], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx]
mov r8d, 0x10000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140009622
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140009622
mov dword [rbx + 0x10], eax
xor eax, eax
mov dword [rbx + 0x14], 0
jmp 0x140009606
mov qword [rcx + 0x10], 0
lea r8, [rsp + 0x40]
mov rcx, qword [rcx]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x18], rax
jmp 0x1400095f7
Function at 0x14001df64
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov r12, r9
mov rsi, r8
mov rdi, rdx
mov ebx, 1
cmp qword [rdx + 8], rbp
je 0x14001e0a6
mov r10, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
and dword [r8], ebp
mov byte [r9], bpl
xor r9d, r9d
mov byte [r10], bpl
mov byte [r15], bpl
mov byte [r14], bpl
movsxd rdx, r9d
mov rcx, rdi
call fcn.14001e3a8
movzx ecx, word [rax]
lea eax, [rcx - 0x21]
cmp ax, 0x3d
jbe 0x14006151e
lea eax, [r9 + 1]
mov rcx, rdi
mov dword [rsp + 0x70], eax
call fcn.14001e3a8
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x1400615b9
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.1400082fc
mov ecx, 0x7d
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
mov rdx, rdi
call fcn.14001e0ac
test al, al
je 0x14001e0a2
lea rdi, [0x1400c62d0]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rdi]
call fcn.140028628
test eax, eax
je 0x14001e04f
add ebp, ebx
lea rax, [0x1400c65e8]
add rdi, 8
cmp rdi, rax
jl 0x14001e02c
cmp ebp, 0x63
je 0x140061565
movsxd rax, ebp
lea rcx, [0x140000000]
cmp byte [rax + rcx + 0xc6260], 0
jne 0x14001e0a2
movzx eax, byte [rax + rcx + 0xc61f0]
mov dword [rsi], eax
lea rcx, [rsp + 0x20]
call fcn.140009250
mov eax, dword [rsi]
movzx ecx, al
mov al, bl
mov dword [rsi], ecx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor bl, bl
jmp 0x14001e076
xor al, al
jmp 0x14001e089
movabs r8, 0x2000000000000405
bt r8, rax
jae 0x14001dfde
cmp cx, 0x2b
jne 0x14006153e
mov byte [r12], bl
jmp 0x14006155d
cmp cx, 0x5e
jne 0x140061549
mov byte [r14], bl
jmp 0x14006155d
cmp cx, 0x21
jne 0x140061554
mov byte [r15], bl
jmp 0x14006155d
cmp cx, 0x23
jne 0x14006155d
mov byte [r10], bl
add r9d, ebx
jmp 0x14001dfc3
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140008530
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rsi], ecx
cmp ecx, 0xffffffff
jne 0x140061594
lea rcx, [rsp + 0x20]
call fcn.140009250
nop
jmp 0x14001e0a6
bt ecx, 9
jae 0x14006159d
mov byte [r14], bl
bt ecx, 0xa
jae 0x1400615a6
mov byte [r15], bl
bt ecx, 8
jae 0x14001e076
mov byte [r12], bl
jmp 0x14001e076
call qword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x14001e0a6
bt eax, 9
jae 0x1400615d4
mov byte [r14], bl
bt eax, 0xa
jae 0x1400615dd
mov byte [r15], bl
bt eax, 8
jae 0x14001e082
mov byte [r12], bl
jmp 0x14001e082
Function at 0x140022aac
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov word [rcx + 8], 1
mov eax, 5
mov dword [rcx], eax
mov rbx, rcx
mov dword [rcx + 4], eax
xor edx, edx
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov dword [rcx + 0x20], eax
mov dword [rcx + 0xc], 4
lea ecx, [rax + 0x5b]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x35], al
lea ecx, [rdx + 0x10]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, QueryPathOfRegTypeLib
mov byte [rbx + 0x32], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, QueryPathOfRegTypeLib
mov byte [rbx + 0x33], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x34], al
lea ecx, [rdx + 0x11]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x30], al
lea ecx, [rdx + 0x12]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 0x31], al
add rsp, 0x20
pop rbx
ret

Function at 0x1400235a4
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14b, byte [0x1400ef3a7]
mov rdi, rdx
mov rsi, rcx
call fcn.140031f9c
mov ecx, eax
mov edx, 0x8000
call fcn.140031dc4
cmp dword [rdi + 0x10], 0xb
mov ebp, eax
je 0x140069c62
lea rcx, [rsp + 0x20]
call fcn.1400096a8
mov rcx, rdi
call fcn.14000f884
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.1400238e0
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400b5b4c]
mov rcx, rsi
call fcn.140023674
movsxd rbx, eax
test r14b, r14b
jne 0x140069c90
lea rcx, [rsp + 0x20]
call fcn.140009250
mov rcx, rsi
call fcn.14003243c
mov rcx, rsi
call fcn.140031f9c
mov ecx, 0x4000
cmp ebp, 0xffffffff
cmove ebp, ecx
mov ecx, eax
mov edx, ebp
call fcn.140031dc4
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov rcx, rdi
call fcn.140080f84
mov rcx, rdi
movsxd rbx, eax
call fcn.140080f2c
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call fcn.140032204
mov rbx, rax
jmp 0x140023631
mov rcx, rdi
call fcn.14000f884
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140023627

Function at 0x140023b40
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.140048790
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000c614
add rsp, 0x10020
pop rbx
ret
Function at 0x140023bfc
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov edi, edx
test r8, r8
jne 0x140069e20
mov eax, dword [0x1400efdd8]
cmp eax, 0xffffffff
je 0x140023cd0
movsxd rcx, eax
mov rax, qword [0x1400efdc0]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp byte [rbx + 0x6a], 0
mov rbp, qword [rbx]
je 0x140023c50
cmp dword [rbx + 0x2b8], 0
mov byte [rbx + 0x6a], 0
jge 0x140069e3a
cmp edi, 8
jg 0x140069e97
je 0x140023c82
test edi, edi
je 0x140069e83
cmp edi, 1
je 0x140023c82
mov edx, 6
cmp edi, 2
je 0x140023cc7
cmp edi, 3
je 0x140023cbe
jle 0x140023ca9
cmp edi, 5
jg 0x140069e62
cmp byte [rbx + 0x68], 0
jne 0x140023cd0
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea eax, [rdi - 4]
test eax, 0xfffffffb
je 0x140023ca5
mov rcx, rbp
call fcn.140023cd4
mov byte [rbx + 0x68], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov byte [rbx + 0x68], 1
jmp 0x140069f02
mov byte [rbx + 0x68], 1
jmp 0x140069e6a
xor eax, eax
jmp 0x140023cae
mov rdx, r8
lea rcx, [0x1400efd20]
call fcn.1400026f4
mov dword [0x1400efdd8], eax
jmp 0x140023c1c
cmp byte [rbx + 0x2c4], 0
je 0x140023c50
mov r8d, dword [rbx + 0x2c0]
mov rdx, rbx
call fcn.1400af1b0
mov byte [rbx + 0x2c4], 0
jmp 0x140023c50
cmp edi, edx
jne 0x140023ca9
cmp byte [rbx + 0x68], 0
je 0x140023cd0
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x140023ca9
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbx + 0x68], 0
jmp 0x140023ca9
mov edx, edi
sub edx, 9
je 0x140069f02
sub edx, 0x37
je 0x140069eee
sub edx, 1
je 0x140069eea
sub edx, 1
je 0x140069ed7
cmp edx, 1
jne 0x140023ca9
xor ecx, ecx
mov byte [rbx + 0x69], 0
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
nop
jmp 0x140023ca9
mov rcx, rbp
mov byte [rbx + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
nop
jmp 0x140023ca9
xor edx, edx
jmp 0x140069ef3
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
nop
jmp 0x140023ca9
cmp byte [rbx + 0x68], 0
je 0x140023cd0
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.140023cd4
nop
jmp 0x140023ca9
Function at 0x140023cd4
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x140069f26
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
xor ebx, ebx
test rax, rax
jne 0x140069f3f
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140069f5a
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006a084
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r14d
mov r8d, esi
mov edx, eax
mov r15d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006a052
lea esi, [rax + 0x12]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x14006a057
lea ebx, [rsi - 0xe]
jmp 0x14006a057
mov ebx, 3
xor r8d, r8d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x14006a089
mov ebx, 2
mov eax, ebx
jmp 0x140023d06

Function at 0x140028a48
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400287ac
Function at 0x1400409cc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14004086c
call fcn.14003a9a4
mov dword [rax], socket
call fcn.14003a884
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140040854
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140040854
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14004089e
lock or dword [rax + 0x14], 0x10
jmp 0x140040854
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400408bb
mov rcx, qword [rbp + 0x10]
call fcn.140045f4c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140031f9c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400402a4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140040912
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140040854
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14004097e
mov rcx, qword [rbp + 0x10]
call fcn.140031f9c
cmp eax, 0xffffffff
je 0x140040965
mov rcx, qword [rbp + 0x10]
call fcn.140031f9c
cmp eax, 0xfffffffe
je 0x140040965
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140031f9c
movsxd rdi, eax
lea rsi, [0x1400ee870]
mov rcx, rbx
sar rdi, 6
call fcn.140031f9c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14004096c
lea rax, [0x1400e92f0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004097e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400409b4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400409b0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400409b0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140040857
jmp 0x140040824