joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004cbd4
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004cc04
xor eax, eax
jmp 0x14004ccc7
mov rbp, rbx
cmp word [rax], si
je 0x14004cc29
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004cc10
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004cc0c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400463f4
movsxd r14, eax
test eax, eax
jne 0x14004cc67
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004cbfd
mov rcx, r14
call fcn.14004504c
mov rdi, rax
test rax, rax
jne 0x14004cc80
xor ecx, ecx
call fcn.1400436f4
jmp 0x14004cc5c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400463f4
test eax, eax
jne 0x14004ccb1
mov rcx, rdi
call fcn.1400436f4
jmp 0x14004ccbb
xor ecx, ecx
call fcn.1400436f4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14004cce4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004cd6b
mov rsi, rbx
cmp word [rax], bp
je 0x14004cd2a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004cd14
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004cd10
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004504c
mov rdi, rax
test rax, rax
je 0x14004cd58
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140055ab0
mov rbp, rdi
xor ecx, ecx
call fcn.1400436f4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004fe88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140044c00
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14004ff29
cmp ebx, dword [rsp + 0x30]
je 0x14004ff22
test esi, esi
je 0x14004ff22
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004fefd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004ff0a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004fee7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004ff0e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004ff2b
mov eax, 1
jmp 0x14004ff2b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400530b4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003400c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005313e
cmp byte [rbp - 0x21], r15b
je 0x140053139
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140053174
call fcn.1400439f8
test eax, eax
jne 0x140053160
cmp byte [rbp - 0x21], r15b
je 0x140053158
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140053174
cmp byte [rbp - 0x21], r15b
je 0x140053171
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003b340
test eax, eax
jne 0x140053214
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003400c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400531b3
cmp byte [rbp - 0x21], r15b
je 0x1400531e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400531e8
call fcn.1400439f8
test eax, eax
jne 0x1400531d4
cmp byte [rbp - 0x21], r15b
je 0x1400531cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400531e8
cmp byte [rbp - 0x21], r15b
je 0x1400531e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003b340
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140053214
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140053217
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140053225
mov rcx, rdi
call fcn.1400436f4
cmp byte [rbp + 0x3f], r15b
je 0x140053234
mov rcx, qword [rbp + 0x27]
call fcn.1400436f4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140054f80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140054fa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140054fa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400171e4
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
mov rax, 8
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400171ee
sub rsp, 0x28
mov dword [0x140089001], 0x4f
mov dword [0x140089001], 0x50
mov byte [rsp + 0x28], 0
mov dword [0x140089001], 0x52
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentProcess
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_OpenProcessToken
and rax, rax
je 0x14001737e
mov dword [0x140089001], 0x53
lea rax, [rsp + 0x38]
mov dword [0x140089001], 0x55
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and rax, rax
je 0x140017360
mov dword [0x140089001], 0x56
lea rax, [rsp + 0x40]
mov dword [0x140089001], 0x59
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
mov dword [0x140089001], 0x5a
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 4], eax
mov dword [0x140089001], 0x5b
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 8], eax
mov dword [0x140089001], 0x5c
push rbp
pop rbp
mov dword [rbp + 0xc], 2
mov dword [0x140089001], 0x5e
lea rax, [rsp + 0x60]
mov rax, rax
push rax
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0x10
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
add rsp, 0x30
mov rax, rax
push rax
pop rax
mov byte [rsp + 0x28], al
mov dword [0x140089001], 0x5f
mov dword [0x140089001], 0x60
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x140089001], 0x61
mov dword [0x140089001], 0x62
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x1400173ab
add rsp, 0x68
pop r15
pop rbp
ret

Function at 0x1400181c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
mov dword [0x140089001], 0x100002b
mov dword [0x140089001], 0x100002c
push qword [rsp + 0x40]
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14001820f
mov dword [0x140089001], 0x100002d
mov rax, 1
jmp 0x140018226
mov dword [0x140089001], 0x100002e
mov dword [0x140089001], 0x100002f
xor rax, rax
add rsp, 0x30
pop r15
ret

Function at 0x14001d028
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400d6d70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001d082
mov r8, qword [0x140089165]
mov rcx, qword [0x1400d5f50]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400d6d70]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140016754
lea rcx, section..text
mov rdx, rbx
call fcn.14001d4b4
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14001d08c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d6d70], eax
add rsp, 0x28
jmp fcn.14001d028
Function at 0x14001f3e8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001f526
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x14001f4c7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140020078
mov rsi, rax
test rax, rax
je 0x14001f51d
mov rcx, qword [0x1400d6e60]
mov rdx, r13
call fcn.1400324fc
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.14002001c
mov rcx, rsi
mov rbx, rax
call fcn.14001fff4
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.14001fd50
mov qword [rbp], rax
test rax, rax
je 0x14001f4bd
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x14001f51d
mov rcx, rsi
call fcn.140020030
jmp 0x14001f51d
mov rcx, qword [0x1400d5f50]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001f51d
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.14001fd48
mov rcx, qword [0x1400d5f50]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x14001f3e8
Function at 0x14001f544
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001f526
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x14001f4c7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140020078
mov rsi, rax
test rax, rax
je 0x14001f51d
mov rcx, qword [0x1400d6e60]
mov rdx, r13
call fcn.1400324fc
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.14002001c
mov rcx, rsi
mov rbx, rax
call fcn.14001fff4
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.14001fd50
mov qword [rbp], rax
test rax, rax
je 0x14001f4bd
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x14001f51d
mov rcx, rsi
call fcn.140020030
jmp 0x14001f51d
mov rcx, qword [0x1400d5f50]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001f51d
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.14001fd48
mov rcx, qword [0x1400d5f50]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x14001f3e8
Function at 0x14001f8dc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14d, edx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [0x1400d6e60]
mov edi, r8d
xor r12d, r12d
call fcn.14003259c
mov rbx, rax
test rax, rax
je 0x14001f8c0
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r12
je 0x14001f7be
mov rcx, r13
call fcn.14001fed8
jmp 0x14001f73c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r12b
jne 0x14001f731
mov rcx, qword [rbx + 0x20]
call fcn.140020054
mov esi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r14d
mov byte [rbx + 0x2c], sil
call fcn.14001f54c
lea r11, [rsp + 0x88]
lea r8, [0x14001f5f8]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], r12d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14001f799
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x14001f7a8
mov edx, edi
mov rcx, r13
call fcn.14001ffec
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, esi
jmp 0x14001f86c
mov esi, 1
mov ebp, r12d
test sil, r14b
cmovne ebp, esi
test r14b, 2
je 0x14001f879
mov rcx, rax
call fcn.14001f8e8
lea rcx, [rbx + 8]
lea edx, [rsi + 0x1f]
call fcn.140032ed8
mov rcx, qword [0x1400d6f78]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r12, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x14001f8c0
mov rcx, qword [rsp + 0x30]
mov byte [r12 + 9], bpl
mov byte [r12 + 8], sil
mov qword [r12], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp edi, 0xffffffff
je 0x14001f856
mov r8, r12
mov edx, edi
mov rcx, r13
call fcn.14001ff08
jmp 0x14001f864
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x14001f8c0
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp edi, 0xffffffff
je 0x14001f89e
mov edx, edi
mov rcx, r13
call fcn.14001ffec
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x14001f8c0
mov r12, rsi
mov byte [rbx + 0x2c], sil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r12
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
or r8d, 0xffffffff
xor edx, edx
jmp 0x14001f6d8
Function at 0x1400202cc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140020343
movsxd rdx, ecx
lea rcx, [0x140020228]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400d6e70]
test rbx, rbx
je 0x1400203b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140020339
cmp byte [rbx + 0x20], 0
je 0x140020339
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400202ff
jmp 0x1400203b6
mov rbx, qword [0x1400d6e70]
test rbx, rbx
je 0x1400203b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400203ae
cmp byte [rbx + 0x21], 0
je 0x140020372
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14002039e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400d6e70]
call fcn.140032f1c
mov rbx, rdi
test rdi, rdi
jne 0x14002034f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140024328
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1400d7fd0]
call fcn.14003259c
mov rsi, rax
test rax, rax
je 0x1400243a1
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140024366
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400243a1
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140033330
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.1400333e0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140029624
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140029739
mov eax, dword [rsp + 0x30]
dec eax
je 0x140029716
dec eax
jne 0x140029739
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140029691
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14002970f
dec eax
je 0x140029708
dec eax
je 0x1400296de
dec eax
jne 0x140029739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400296d2
dec eax
je 0x1400296c6
dec eax
jne 0x140029739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x140029739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x140029739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x140029739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140029701
dec eax
je 0x1400296fa
dec eax
jne 0x140029739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x140029739
mov ebx, 0x3c
jmp 0x140029739
mov ebx, 0x32
jmp 0x140029739
mov ebx, 0x14
jmp 0x140029739
mov ebx, 5
jmp 0x140029739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140029734
cmp eax, 0xa
je 0x14002972d
cmp eax, 0x5a
jne 0x140029739
lea ebx, [rax - 0x32]
jmp 0x140029739
mov ebx, 0x1e
jmp 0x140029739
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14002ac6c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14002ad15
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14002ad15
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002ad15
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002ad15
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002ad15
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14002ad15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14002adbf
test rbx, rbx
je 0x14002ad54
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002ad47
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002ad47
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14002ad54
mov edx, 1
mov rcx, rbx
call fcn.14002ac18
test rdi, rdi
je 0x14002ad6e
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14002adbf
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14002adbf
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14002adbf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14002adbf
mov rcx, qword [0x1400d8000]
lea rdx, [rdi - 1]
call fcn.14003259c
test rax, rax
je 0x14002adbf
mov rax, qword [rax + 0x10]
jmp 0x14002adc1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002afdc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140033330
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14002b01b
cmp byte [rbx + rdi - 1], 0x5c
je 0x14002b01b
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.1400333e0
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret