joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a631c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1400a63e0
lea rcx, [0x1409d88a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14095db90]
jmp 0x1400a63a6
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400a63a3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x14095db90]
mov rdx, rsi
call fcn.14011d820
jmp 0x1400a63a6
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400a6373
mov rdi, qword [0x140957500]
lea rcx, [0x14095db90]
lea rdx, [rdi + 1]
mov qword [0x140957500], rdx
lea edx, [rbx + 0x20]
call fcn.14011d868
lea rcx, [0x1409d88a0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a6904
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x1400a6980
movsxd rdx, ecx
lea rcx, [0x1400a6864]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x14095dba0]
test rbx, rbx
je 0x1400a69f3
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400a6976
cmp byte [rbx + 0x20], 0
je 0x1400a6976
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400a693c
jmp 0x1400a69f3
mov rbx, qword [0x14095dba0]
test rbx, rbx
je 0x1400a69f3
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400a69eb
cmp byte [rbx + 0x21], 0
je 0x1400a69af
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400a69db
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14095dba0]
call fcn.14011d820
mov rbx, rsi
test rsi, rsi
jne 0x1400a698c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400a7100
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1409d8940]
call fcn.14011cde0
test rax, rax
je 0x1400a713d
cmp dword [rax + 0x28], 0
je 0x1400a713d
mov rcx, qword [rax + 0x18]
mov r9d, ebx
mov r8d, dword [rcx + 4]
mov edx, dword [rcx]
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.1400a6d10
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.14011e040
Function at 0x1400c51f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1400c525f
mov rcx, qword [rbp + 0x18]
lea r9, [rsp + 0x50]
and dword [rsp + 0x50], 0
mov r8d, edi
and qword [rsp + 0x20], 0
sub r8d, ebx
movsxd rdx, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400c5251
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1400c525b
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x1400c525f
jmp 0x1400c521c
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c530c
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x1400c5710
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r9d
mov edi, ecx
mov r13d, r8d
mov ebp, eax
mov r14d, eax
cmp edx, 0x18
je 0x1400c584c
cmp edx, 2
je 0x1400c584c
mov rcx, qword [0x14095ba28]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x34]
mov rbx, rax
lea r8d, [rcx + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400c5835
mov r15, qword [rsp + 0x90]
mov esi, ecx
mov r12d, edi
cmp dword [rsp + 0x38], 2
jne 0x1400c582d
cmp r13d, 0xffffffff
je 0x1400c57ba
cmp r14d, r13d
jae 0x1400c582d
add r14d, 2
test edi, edi
jne 0x1400c57e5
mov rcx, qword [0x14095ba28]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x1400c582d
cmp ax, 0xd
je 0x1400c5805
mov word [rsi + rbx], ax
inc ebp
add rsi, 2
inc r12d
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x34]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x1400c57a8
mov r15d, dword [rsp + 0xa8]
movsxd rax, ebp
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1401b0470
jmp 0x1400c591e
mov r8, rcx
xor edx, edx
mov rcx, qword [0x14095ba28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov r13d, edi
mov rsi, qword [rsp + 0x90]
mov rbx, rax
xor eax, eax
mov r12d, eax
jmp 0x1400c587d
xor eax, eax
cmp r15d, 0xffffffff
je 0x1400c5888
cmp r14d, r15d
jae 0x1400c58f2
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c58f2
cmp dword [rsp + 0x38], 1
jne 0x1400c58f2
inc r14d
test edi, edi
jne 0x1400c58d6
mov rcx, qword [0x14095ba28]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
mov edi, 0x1000
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x1400c58f2
cmp al, 0xd
je 0x1400c587b
mov byte [r12 + rbx], al
inc ebp
inc r12
inc r13d
dec edi
jmp 0x1400c587b
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
mov edx, r15d
movsxd rax, ebp
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x1400c5919
call fcn.1401b04d0
jmp 0x1400c591e
call fcn.1401b0290
mov rcx, qword [0x14095ba28]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c53a0
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
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x1400c53ce
dec edi
mov edx, ebx
mov ecx, edi
call fcn.14011de60
lea r8d, [rdi + 1]
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c5480
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x1409d89e0]
call fcn.14011cbd8
mov rsi, rax
or edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
mov rdx, rax
movzx r8d, word [rax]
test r8w, r8w
je 0x1400c55b7
mov rcx, qword [rsp + 0x30]
jmp 0x1400c54d1
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x1400c54c9
mov r11d, 1
cmp r8w, 0x22
jne 0x1400c5520
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400c557f
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x1400c551a
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x1400c54fe
test r8w, r8w
jmp 0x1400c557f
test r8w, r8w
je 0x1400c558f
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x1400c557b
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x1400c5571
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400c5571
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x1400c5571
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x1400c5555
movzx r10d, r8w
test r8w, r8w
jne 0x1400c5529
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x1400c5595
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x1400c559e
test rbx, rbx
jne 0x1400c55c1
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x1400c54d1
test rbx, rbx
jne 0x1400c55d5
movsxd rax, edi
jmp 0x1400c55da
test r9, r9
je 0x1400c55d5
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x1400c55da
mov dword [rbx], ebp
mov rax, rdx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c55f0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1409d89e0]
call fcn.14011cbd8
xor ecx, ecx
add rsp, 0x28
jmp fcn.1400c5480
Function at 0x1400c5684
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
xor ebp, ebp
mov rcx, qword [0x1409d89e0]
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14011cbd8
test ebx, ebx
js 0x1400c56b3
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.1400c5480
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.14011de60
mov ecx, ebp
jmp 0x1400c56ef
test edi, edi
je 0x1400c56f4
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x1400c56e2
inc ecx
jmp 0x1400c56e9
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x1400c56d1
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.14011df10
Function at 0x1400c6eb0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140956ae8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, SafeArrayGetLBound
lea r8, [0x1400c6dcc]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14011cf10
xor r8d, r8d
mov qword [0x14095dbf0], rax
xor edx, edx
mov ecx, ebx
call fcn.14011cc70
xor ebx, ebx
mov qword [0x1409d8a60], rax
cmp word [0x14095dbe8], bx
jne 0x1400c6fe5
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400c6f2a
movzx eax, di
jmp 0x1400c6f2c
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x14095dbe8], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14095dbf8], rax
test rax, rax
je 0x1400c6fe5
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095dbf8]
lea rdx, str.freeaddrinfo
mov qword [0x14095dbc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095dbf8]
lea rdx, str.getnameinfo
mov qword [0x14095dbd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095dbf8]
lea rdx, str.WSAStringToAddressA
mov qword [0x14095dbd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14095dbc8], rbx
mov qword [0x14095dbe0], rax
je 0x1400c6fe5
cmp qword [0x14095dbd0], rbx
je 0x1400c6fe5
cmp qword [0x14095dbd8], rbx
je 0x1400c6fe5
mov ecx, dword [0x14095dbec]
test rax, rax
cmovne ecx, edi
mov dword [0x14095dbec], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401b0740
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x1400c71a8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x1400c7270
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
je 0x1400c7270
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14095ba28]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400c7267
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x68], ebp
jne 0x1400c7255
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.1400c747c
mov rbx, rax
mov rcx, qword [0x14095ba28]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ef7c0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x1409d6200], 0
jne 0x1400ef897
lea rdx, [0x1409d5cf8]
mov dword [0x1409d6200], 1
xor ecx, ecx
mov dword [0x1409d8ae0], 0x40
call fcn.1401603f0
test eax, eax
jne 0x1400ef897
lea edx, [rax + 0x40]
lea ecx, [rdx + 0x40]
lea r8, [0x1400ef6f0]
call fcn.14011cf10
mov rcx, qword [0x14095ba28]
mov edx, 8
mov qword [0x1409d5ce8], rax
movsxd rax, dword [0x1409d8ae0]
imul r8, rax, 0x468
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [0x1409d5cf8]
mov qword [0x1409d8b00], rax
call fcn.140160390
mov rcx, rax
mov qword [0x1409d8ac0], rax
call fcn.14015dad0
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1400efcb0]
mov edx, 0x2000
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400ef88d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1409d5cf0], 1
mov rax, qword [0x1409d5ce8]
add rsp, 0x38
ret

Function at 0x1400f0450
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov ebp, edx
mov rsi, rcx
call fcn.140151190
lea rax, [0x1409576c0]
mov rdx, rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140151500
test eax, eax
jne 0x1400f0548
mov ecx, 0x20000
mov qword [rsi + 0x60], 0
call fcn.1401b0ff4
mov ecx, 0x20000
mov qword [rsi + 0x48], rax
call fcn.1401b0ff4
mov rcx, qword [rsi + 0x48]
mov edx, 0x20000
mov qword [rsi + 0x50], rax
mov dword [rsi + 0x74], ebx
mov rbx, qword [rsp + 0x78]
mov dword [rsi + 0x70], edi
mov r8, rbx
mov rdi, qword [rsp + 0x70]
mov dword [rsi + 0x68], 1
mov dword [rsi + 0x6c], ebp
mov qword [rsi + 0x80], rdi
mov qword [rsi + 0x88], rbx
call rdi
mov rcx, qword [rsi + 0x50]
mov r8, rbx
mov edx, 0x20000
mov dword [rsi + 0x58], eax
call rdi
lea rcx, [rsp + 0x50]
mov dword [rsi + 0x5c], eax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400f0560]
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rsi
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400f0548
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [rsi + 0x78], 1
jmp 0x1400f054a
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400f27e4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1409d8760]
call fcn.14011cde0
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x1400f2864
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400f2829
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400f2864
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.14011de60
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.14008787c
sub edi, eax
mov ecx, edi
call fcn.14011df10
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f3618
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 2
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 4
or edi, 2
bt ax, 0xf
cmovae edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [rsp + 0x30]
movzx ecx, ax
mov rsi, qword [rsp + 0x38]
mov eax, edi
or eax, 4
bt cx, 0xf
cmovae eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1400f3cc0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140956ae8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx]
lea rdx, [rbp - 0x18]
xor r12d, r12d
mov r13d, r12d
call qword [sym.imp.USER32.dll_GetClientRect]
test rbx, rbx
jne 0x1400f3d14
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
lea r13d, [r12 + 1]
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.1400fb30c
test byte [rdi + 0x28], 8
mov qword [rbp - 0x20], rax
je 0x1400f3e48
call qword [sym.imp.USER32.dll_GetFocus]
cmp qword [rdi], rax
jne 0x1400f3e48
mov r15d, dword [rbp - 0x10]
mov r14d, dword [rbp - 0xc]
sub r15d, dword [rbp - 0x18]
sub r14d, dword [rbp - 0x14]
test r15d, r15d
jle 0x1400f3e9a
test r14d, r14d
jle 0x1400f3e9a
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x1400f3e9a
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
test rax, rax
je 0x1400f3e3d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9, qword [rdi + 0x20]
xor eax, eax
test r9, r9
je 0x1400f3dd2
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov dword [rsp + 0x40], eax
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x1400f3dea
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x18]
mov rcx, rsi
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
add dword [rbp - 0x18], 2
lea rdx, [rbp - 0x18]
add dword [rbp - 0x14], 2
mov rcx, rsi
sub dword [rbp - 0x10], 2
sub dword [rbp - 0xc], 2
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r15d
and dword [rsp + 0x38], 0
xor r8d, r8d
and dword [rsp + 0x30], 0
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1400f3e9a
mov r9, qword [rdi + 0x20]
test r9, r9
je 0x1400f3e82
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov dword [rsp + 0x40], r12d
xor edx, edx
mov dword [rsp + 0x38], r12d
mov rcx, rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x1400f3e9a
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x18]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.1400fb2e8
test r13d, r13d
je 0x1400f3eb7
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401b0740
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f3edc
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, 0x30
mov r12d, r9d
mov ebp, r8d
mov r13, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetMessagePos]
mov rcx, qword [rdi]
mov edx, 0xfffffff4
mov ebx, eax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rcx, qword [rdi]
mov r15, rax
call fcn.1400fb5c0
mov rcx, rax
call fcn.1400fdc40
mov rcx, qword [0x1409d63a8]
mov r14, rax
call fcn.14011d054
movsx ecx, bx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov rsi, rax
shr ebx, 0x10
movsx ecx, bx
mov dword [rsp + 0x64], ecx
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, SafeArrayGetLBound
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
or edi, 2
bt ax, 0xf
cmovae edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [rsp + 0x60]
movzx ebx, ax
mov eax, 0x8000
mov dword [rsi], ecx
mov ecx, dword [rsp + 0x64]
and bx, ax
mov dword [rsi + 4], ecx
call fcn.1400f3618
mov dword [rsi + 8], eax
mov ecx, edi
movzx eax, word [rsp + 0x80]
or ecx, 4
test bx, bx
mov dword [rsi + 0x18], eax
lea rax, [0x1400f4014]
mov dword [rsi + 0xc], ebp
cmove ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsi + 0x10], ecx
mov r9, r13
mov ecx, 0x332c
mov dword [rsi + 0x14], r12d
mov r8, r14
mov qword [rsp + 0x20], rsi
mov rdx, r15
call fcn.1401021bc
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400fa618
Capabilities:
Get graphical window text

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, 0x20
mov r14, rcx
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
or rbp, 0xffffffffffffffff
mov rsi, rax
cmp rax, rbp
je 0x1400fa6cc
mov rcx, qword [r14]
lea edx, [rbp - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x1400fa6cc
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x14095ba28]
xor edx, edx
movsxd rbx, eax
lea r8, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
lea r8d, [rbx + 1]
xor eax, eax
mov rdx, rdi
mov word [rdi], ax
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [r14]
mov r9, rdi
mov r8, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x14095ba28]
mov r8, rdi
cmp rax, rbp
cmove rsi, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret