joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f2860
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400f289a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400f289f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400f28e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400f28e8
dec r8
sub rdx, 1
jne 0x1400f28ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400f30ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400f2978
mov ebx, eax
test eax, eax
jne 0x1400f30dc
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400f313f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f3136
test al, 0x10
je 0x1400f3136
bt eax, 0xa
jae 0x1400f312f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400f3150
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400f312b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400f312b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400f3136
and dword [rsp + 0x3c], 0
jmp 0x1400f313b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001490
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]
je 0x1400498a4
mov dword [rdi + 0x298], eax
mov dword [rdi + 0x29c], ecx
cmp r14d, 1
jge 0x1400498b5
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 0x1400498d2
test r14d, r14d
je 0x140001561
mov dword [rdi + 0x2a0], r12d
cmp ebx, dword [rdi + 0x2a4]
jne 0x140049959
test r14d, r14d
je 0x140001578
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
cmp ecx, dword [rdi + 0x29c]
je 0x14000150d
jmp 0x1400014f7
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov rcx, rsi
mov r8, rdi
mov edx, 0xfffffff5
call fcn.1400a8efc
nop
jmp 0x14000150d
cmp r14d, 1
jl 0x140001555
cmp byte [rdi + 0x2e0], al
je 0x140001555
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 0x140049906
mov edx, 0xfffffff9
jmp 0x140049947
mov edx, 0xfffffff8
call fcn.1400a8efc
xor eax, eax
cmp byte [rdi + 0x2a8], al
je 0x14004994e
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 0x140049947
mov edx, 0xfffffff4
call fcn.1400a8efc
xor eax, eax
mov byte [rdi + 0x2a8], al
jmp 0x140001555
cmp r14d, 1
jl 0x14000156d
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 0x140049984
mov edx, 0xfffffff6
call fcn.1400a8efc
nop
jmp 0x14000156d
Function at 0x1400022a0
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.140048f00
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.1400080e8
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.140004238
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14004a542
mov eax, dword [0x1400f04c0]
test eax, eax
je 0x14004a564
mov r15d, 1
lea rcx, [0x1400f2230]
cmp eax, r15d
je 0x14004a570
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400f04c0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400f04e8]
call fcn.1400029f4
test al, al
je 0x14004a594
mov al, byte [0x1400f2230]
lea r9, [rbp + 0x1ffb8]
mov rcx, qword [0x1400f04e8]
lea r8, [rbp + 0xff70]
mov dil, byte [0x1400f2231]
mov edx, 0x7fff
mov byte [0x1400f04c4], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400f04a0]
call fcn.140006784
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400f04c0]
lea rdx, [0x1400f04e8]
call fcn.140002a8c
test eax, eax
jne 0x14004a5a0
cmp dil, r15b
je 0x14004a5c3
call fcn.140002674
call fcn.1400027ac
cmp byte [0x1400f04c4], 0
jne 0x1400023df
lea rcx, [0x1400f0e60]
call fcn.140004ce4
mov edx, r15d
lea rcx, [0x1400f0510]
call fcn.140010fd0
cmp byte [0x1400f04c4], 0
jne 0x140002403
lea rcx, [0x1400f0e60]
call fcn.140004814
lea rcx, [0x1400f2230]
call fcn.1400024d4
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.140008b2c
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, reloc.WSOCK32.dll_recv
lea r8, [0x1400dc24c]
lea rdx, str.This_is_a_third_party_compiled_AutoIt_script.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x14000241a
or dword [0x1400f03b0], 0xffffffff
jmp 0x14000240f
mov r8, qword [0x1400f04c8]
or r9d, 0xffffffff
mov edx, r15d
call fcn.14000cc78
mov al, byte [0x1400f03b8]
mov byte [0x1400f2232], al
jmp 0x14000239c
mov dword [0x1400f03b0], r15d
jmp 0x14000240f
lea rcx, [0x1400f2230]
call fcn.1400024d4
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400f03b0], r15d
jmp 0x14000241a
call fcn.14006d46c
test al, al
jne 0x1400023c0
cmp byte [rbp + 0x1ffb0], al
jne 0x1400023c0
lea rcx, [rsp + 0x50]
call fcn.140004118
lea rdx, [0x1400d8714]
lea rcx, [rsp + 0x30]
call fcn.14000d5e4
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14004a62b
lea rdx, [0x1400dc280]
call fcn.140005e6c
lea rdx, [0x1400f04e8]
lea rcx, [rsp + 0x30]
call fcn.1400066b4
lea rdx, [0x1400dc280]
lea rcx, [rsp + 0x30]
jmp 0x14004a62e
mov rdx, rsi
call fcn.140005e6c
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.140008b2c
nop
jmp 0x140002403
Function at 0x1400027ac
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x10], 0
lea rdx, str.AutoIt_v3
mov rax, qword [0x1400f03a8]
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 [0x1400f03a8]
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 [0x1400f0400], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [0x1400f0400]
xor edx, edx
mov qword [0x1400f03f8], rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400f0400]
xor edx, edx
add rsp, 0x68
jmp qword [sym.imp.USER32.dll_ShowWindow]

Function at 0x140003058
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 0x140003083
movzx ecx, byte [rdx + r10]
inc rdx
imul r8d, r8d, 0x21
add r8d, ecx
cmp rdx, r9
jl 0x14000306f
mov eax, r8d
ret
Function at 0x140005268
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 0x14004b72a
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.140034bcc
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 0x14000529a

Function at 0x1400059f0
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 0x140005ab0
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140005ab0
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 0x140005ab0
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 0x140005a85
mov eax, dword [rsp + 0x60]
shr eax, 1
mov ecx, eax
mov dword [rsp + 0x60], eax
cmp eax, esi
jae 0x140005aa7
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 0x140005a83
xor al, al
jmp 0x140005a92
Function at 0x140008d40
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 0x140008de9
xor edi, edi
test rsi, rsi
je 0x140008d92
mov eax, dword [rbx + 0x14]
cmp eax, dword [rbx + 0x10]
je 0x140008dae
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 0x140008d71
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 0x140008d92
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140008d92
mov dword [rbx + 0x10], eax
xor eax, eax
mov dword [rbx + 0x14], 0
jmp 0x140008d76
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 0x140008d67
Function at 0x140022778
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r12, r9
mov rdi, r8
mov r13, rdx
mov ebx, 1
mov ebp, esi
cmp qword [rdx + 8], rsi
je 0x1400228cf
mov r10, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
mov byte [r9], sil
mov r9d, esi
mov byte [r10], sil
mov byte [r15], sil
mov byte [r14], sil
mov dword [r8], esi
movsxd rdx, r9d
mov rcx, r13
call fcn.140004e08
movzx ecx, word [rax]
lea eax, [rcx - 0x21]
cmp ax, 0x3d
jbe 0x140069c10
lea eax, [r9 + 1]
mov rcx, r13
mov dword [rsp + 0x70], eax
call fcn.140004e08
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x140069cc6
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.140008390
mov ecx, 0x7d
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
mov rdx, r13
call fcn.1400228d4
test al, al
je 0x1400228c6
lea rsi, [0x1400c72f0]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsi]
call fcn.140028d98
test eax, eax
je 0x14002286e
add ebp, ebx
lea rax, [0x1400c7608]
add rsi, 8
cmp rsi, rax
jl 0x14002284b
cmp ebp, 0x63
je 0x140069c57
movsxd rax, ebp
lea rcx, [0x140000000]
cmp byte [rax + rcx + 0xc7280], 0
jne 0x1400228cb
movzx eax, byte [rax + rcx + 0xc7210]
mov dword [rdi], eax
lea rcx, [rsp + 0x20]
call fcn.140008b2c
mov eax, dword [rdi]
movzx ecx, al
mov al, bl
mov dword [rdi], ecx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov bl, sil
jmp 0x140022895
xor bl, bl
jmp 0x140022895
xor al, al
jmp 0x1400228a8
movabs r8, 0x2000000000000405
bt r8, rax
jae 0x1400227f9
cmp cx, 0x2b
jne 0x140069c30
mov byte [r12], bl
jmp 0x140069c4f
cmp cx, 0x5e
jne 0x140069c3b
mov byte [r14], bl
jmp 0x140069c4f
cmp cx, 0x21
jne 0x140069c46
mov byte [r15], bl
jmp 0x140069c4f
cmp cx, 0x23
jne 0x140069c4f
mov byte [r10], bl
add r9d, ebx
jmp 0x1400227de
mov edx, 2
cmp dword [rsp + 0x70], edx
jne 0x140069c72
mov rcx, r13
call fcn.140004e08
lea ecx, [rdx + 0x7b]
cmp word [rax], cx
je 0x140069c81
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140008834
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rdi], ecx
cmp ecx, 0xffffffff
jne 0x140069ca1
lea rcx, [rsp + 0x20]
call fcn.140008b2c
nop
jmp 0x1400228cf
bt ecx, 9
jae 0x140069caa
mov byte [r14], bl
bt ecx, 0xa
jae 0x140069cb3
mov byte [r15], bl
bt ecx, 8
jae 0x140022895
mov byte [r12], bl
jmp 0x140022895
call qword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x1400228cf
bt eax, 9
jae 0x140069ce1
mov byte [r14], bl
bt eax, 0xa
jae 0x140069cea
mov byte [r15], bl
bt eax, 8
jae 0x1400228a1
mov byte [r12], bl
jmp 0x1400228a1
Function at 0x140022c00
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 0x140023b08
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 0x14006a58e
mov eax, dword [0x1400f0da8]
cmp eax, 0xffffffff
je 0x140023bdc
movsxd rcx, eax
mov rax, qword [0x1400f0d90]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp byte [rbx + 0x6a], 0
mov rbp, qword [rbx]
je 0x140023b5c
cmp dword [rbx + 0x2b8], 0
mov byte [rbx + 0x6a], 0
jge 0x14006a5a8
cmp edi, 8
jg 0x14006a605
je 0x140023b8e
test edi, edi
je 0x14006a5f1
cmp edi, 1
je 0x140023b8e
mov edx, 6
cmp edi, 2
je 0x140023bd3
cmp edi, 3
je 0x140023bca
jle 0x140023bb5
cmp edi, 5
jg 0x14006a5d0
cmp byte [rbx + 0x68], 0
jne 0x140023bdc
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea eax, [rdi - 4]
test eax, 0xfffffffb
je 0x140023bb1
mov rcx, rbp
call fcn.140023be0
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 0x14006a670
mov byte [rbx + 0x68], 1
jmp 0x14006a5d8
xor eax, eax
jmp 0x140023bba
mov rdx, r8
lea rcx, [0x1400f0cf0]
call fcn.14001df94
mov dword [0x1400f0da8], eax
jmp 0x140023b28
cmp byte [rbx + 0x2c4], 0
je 0x140023b5c
mov r8d, dword [rbx + 0x2c0]
mov rdx, rbx
call fcn.1400afde4
mov byte [rbx + 0x2c4], 0
jmp 0x140023b5c
cmp edi, edx
jne 0x140023bb5
cmp byte [rbx + 0x68], 0
je 0x140023bdc
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x140023bb5
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbx + 0x68], 0
jmp 0x140023bb5
mov edx, edi
sub edx, 9
je 0x14006a670
sub edx, 0x37
je 0x14006a65c
sub edx, 1
je 0x14006a658
sub edx, 1
je 0x14006a645
cmp edx, 1
jne 0x140023bb5
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 0x140023bb5
mov rcx, rbp
mov byte [rbx + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
nop
jmp 0x140023bb5
xor edx, edx
jmp 0x14006a661
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
nop
jmp 0x140023bb5
cmp byte [rbx + 0x68], 0
je 0x140023bdc
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.140023be0
nop
jmp 0x140023bb5
Function at 0x140023be0
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
je 0x14006a694
xor ebx, ebx
test rax, rax
jne 0x140023c26
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
jne 0x14006a69e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x14006a6bc
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 0x14006a6b2
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
jne 0x140023d70
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]
mov eax, ebx
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
mov ebx, 4
jmp 0x140023d2a
mov eax, 1
jmp 0x140023d57
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x140023c37
mov ebx, 3
jmp 0x140023d2a
mov ebx, 2
jmp 0x140023d55
Function at 0x140023fc0
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 [0x1400f03b7]
mov rdi, rdx
mov rsi, rcx
call fcn.14003270c
mov ecx, eax
mov edx, 0x8000
call fcn.140032534
cmp dword [rdi + 0x10], 0xb
mov ebp, eax
je 0x14006a6c6
lea rcx, [rsp + 0x20]
call fcn.140008e18
mov rcx, rdi
call fcn.14000becc
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.140024240
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400b6b44]
mov rcx, rsi
call fcn.140024090
movsxd rbx, eax
test r14b, r14b
jne 0x14006a6f4
lea rcx, [rsp + 0x20]
call fcn.140008b2c
mov rcx, rsi
call fcn.140032bac
mov rcx, rsi
call fcn.14003270c
mov ecx, 0x4000
cmp ebp, 0xffffffff
cmove ebp, ecx
mov ecx, eax
mov edx, ebp
call fcn.140032534
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.1400817ac
mov rcx, rdi
movsxd rbx, eax
call fcn.140081754
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call fcn.140032974
mov rbx, rax
jmp 0x14002404d
mov rcx, rdi
call fcn.14000becc
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140024043

Function at 0x1400244a0
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.140048f00
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.140006784
add rsp, 0x10020
pop rbx
ret

Function at 0x1400291b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140028f1c