joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400be230
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1450
call fcn.1400ef950
sub rsp, rax
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x1440], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov ecx, 0xa0
call fcn.1400eecd0
mov rbx, rax
mov qword [rsp + 0x28], rax
mov qword [rax], r14
mov byte [rax + 8], r14b
mov dword [rax + 0xc], r14d
mov qword [rax + 0x48], r14
mov qword [rax + 0x90], r14
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x1434], 0xffffffff
mov dword [rsp + 0xb4], eax
mov ecx, 1
nop dword [rax]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0xb4], edx
inc rcx
cmp rcx, 0x270
jb 0x1400be2c0
mov dword [rsp + 0xb0], 0x270
lea rcx, [rsp + 0xb0]
call fcn.1400c2880
mov ecx, eax
lea rax, [rcx + rcx*2]
add rax, rax
cmp eax, 3
ja 0x1400be32b
nop dword [rax + rax]
lea rcx, [rsp + 0xb0]
call fcn.1400c2880
mov ecx, eax
lea rax, [rcx + rcx*2]
add rax, rax
cmp eax, 4
jb 0x1400be310
shr rax, 0x20
inc eax
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x50], r14d
lea r15, vtable.std::_Func_impl_no_alloc_void____cdecl___void___void___.0
mov qword [rsp + 0x30], r15
lea r12, [0x140023560]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400c1940
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400be383
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov dword [rbx + 0x98], r14d
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0xa8], rax
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x70]
call fcn.1400c1940
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400be3d2
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
lea rax, [rsp + 0x70]
cmp rcx, rax
setne dl
call r8
nop
mov qword [rdi], rbx
mov rax, rdi
mov rcx, qword [rsp + 0x1440]
xor rcx, rsp
call fcn.1400eecb0
lea r11, [rsp + 0x1450]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400be410
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov ecx, 1
call fcn.1400eecd0
mov ecx, 0x202
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov rdi, rax
mov byte [rax], 0
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400be63d
xor edx, edx
lea rcx, str.wireguard.dll
mov r8d, 0xa00
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1401b2020], rax
test rax, rax
je 0x1400be637
lea rdx, str.WireGuardCreateAdapter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20d8], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardOpenAdapter
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20d0], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardCloseAdapter
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20c8], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardGetAdapterLUID
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20a8], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardGetRunningDriverVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20b8], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardDeleteDriver
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b2098], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardSetLogger
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20f0], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardSetAdapterLogging
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20a0], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardGetAdapterState
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20e8], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardSetAdapterState
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20b0], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardGetConfiguration
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20e0], rax
test rax, rax
je 0x1400be62a
mov rcx, qword [0x1401b2020]
lea rdx, str.WireGuardSetConfiguration
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b20c0], rax
test rax, rax
je 0x1400be62a
mov byte [rdi], 1
jmp 0x1400be63d
mov rcx, qword [0x1401b2020]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rax, rbx
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400eecb0
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1e0
pop rdi
ret
Function at 0x1400c1ec0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push r13
push r15
sub rsp, 0x30
mov qword [rsp + 0x50], rbx
mov r15, rdx
mov qword [rsp + 0x58], rsi
mov r13, rcx
mov rsi, qword [r8 + 0x10]
mov r9, r8
mov qword [rsp + 0x60], rdi
mov rdi, r8
mov qword [rsp + 0x28], r12
mov r12, qword [r8 + 0x18]
cmp r12, 0xf
jbe 0x1400c1efb
mov r9, qword [r8]
xor ebp, ebp
movabs r8, 0xcbf29ce484222325
mov ecx, ebp
test rsi, rsi
je 0x1400c1f34
movabs rdx, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
xor r8, rax
imul r8, rdx
cmp rcx, rsi
jb 0x1400c1f20
mov rcx, qword [r13 + 0x30]
mov rax, qword [r13 + 0x18]
and rcx, r8
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r13 + 8]
je 0x1400c1fa2
mov qword [rsp + 0x20], r14
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x1400c1f72
mov rdx, qword [rdx]
mov rcx, rdi
cmp r12, 0xf
jbe 0x1400c1f7e
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x1400c1f8f
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400c1f9a
cmp rbx, r14
je 0x1400c1f9d
mov rbx, qword [rbx + 8]
jmp 0x1400c1f60
mov rbp, rbx
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rbp, rbp
je 0x1400c1fcb
mov qword [r15], rbp
mov rax, r15
add rsp, 0x30
pop r15
pop r13
pop rbp
ret
mov rax, qword [r13 + 8]
mov qword [r15], rax
mov rax, r15
add rsp, 0x30
pop r15
pop r13
pop rbp
ret
Function at 0x1400c2880
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400c28e1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400c28a0
mov ecx, dword [r9]
jmp 0x1400c29cb
cmp ecx, 0x4e0
jb 0x1400c29cb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400c2900
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400c2950
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400c2cf0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov esi, ecx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400c2d4f
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400c2d56
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400c2e61
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x20], xmm1
xor ebx, ebx
mov qword [rsp + 0x30], rbx
cmp dword [rsp + 0x60], esi
jne 0x1400c2d95
mov rdx, qword [rsp + 0x28]
cmp rdx, rax
je 0x1400c2d86
mov eax, dword [rsp + 0x48]
mov dword [rdx], eax
add qword [rsp + 0x28], 4
jmp 0x1400c2d95
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.14003aef0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400c2dae
mov rax, qword [rsp + 0x30]
jmp 0x1400c2d68
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400c2de3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rax, rcx
sar rax, 2
test rax, rax
je 0x1400c2e21
nop dword [rax]
mov ecx, dword [rcx + rbx*4]
call fcn.1400c2cf0
inc rbx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rax, rcx
sar rax, 2
cmp rbx, rax
jb 0x1400c2e00
test rcx, rcx
je 0x1400c2e5f
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c2e5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c2e5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400eef54
mov al, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400eecb0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400c32b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov ecx, 0x104
lea rdx, [rsp + 0x30]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400c3356
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.GetCurrentDirectory_failed_with_error:
mov qword [rsp + 0x268], rbx
call fcn.140004790
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400c3120]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
lea rdx, [0x14013e104]
movups xmmword [rdi], xmm0
xor r8d, r8d
mov qword [rdi + 0x10], rsi
mov rcx, rdi
mov qword [rdi + 0x18], rsi
call fcn.140004140
mov rbx, qword [rsp + 0x268]
jmp 0x1400c3387
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x18], rsi
inc r8
cmp word [rax + r8*2], si
jne 0x1400c3370
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140004140
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400eecb0
mov rsi, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x1400c4000
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0xc8], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8d, 0x12
lea rdx, str.VPNTunnel_UnixxVPN
lea rcx, [rsp + 0x58]
call fcn.140004140
nop
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400c4140
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x1400c40aa
lea rcx, [rsp + 0x58]
call fcn.1400040d0
jmp 0x1400c414a
lea r8, [rsp + 0xa8]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
xor ebx, ebx
cmp ebx, 0xb4
jge 0x1400c40f8
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400c40f8
cmp dword [rsp + 0xac], 1
je 0x1400c40f8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x1400c40c2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400c4112
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x1400c416f
mov byte [0x1401b2128], 0
jmp 0x1400c4125
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x1400c4136
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0x58]
call fcn.1400040d0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400eecb0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1400264d0
nop
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400c3780
lea rdx, [0x14016a800]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400c69d0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140177fd0], 0
jne 0x1400c69e5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400c6e80
jmp 0x1400c9a60
push rbx
sub rsp, 0xa0
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400c9afa
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1400c9ac5
mov rbx, qword [0x1401783c0]
test rbx, rbx
je 0x1400c9adb
mov rcx, rbx
call fcn.1400c60f0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400c9ab3
jmp 0x1400c9adb
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400c9aa0
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400c9bf7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1400c9bef
movdqa xmm0, xmmword [0x140119b70]
xor ebx, ebx
movdqa xmm1, xmmword [0x140119b80]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x140179aa8]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x1400c9bbe
cmp byte [rbp + rdi + 0x88], 1
jne 0x1400c9bbe
call fcn.1400cb5e0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400c79c0
inc rbx
cmp rbx, 4
jl 0x1400c9b80
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x14017a448]
test rbx, rbx
je 0x1400c9c7c
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x1400c9c3e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x1400c9c7c
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400eecb0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400c9310
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, r9
mov r8, r9
mov rsi, rdx
mov rbx, rcx
call fcn.1400cae30
test eax, eax
je 0x1400c9463
cmp dword [rdi], 0
je 0x1400c93d1
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x1400c9370
call fcn.1400d0960
test eax, eax
je 0x1400c9463
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1400d04e0
jmp 0x1400c93b6
cmp eax, 0x36002
jne 0x1400c9394
call fcn.1400d1d60
test eax, eax
je 0x1400c9463
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1400d1850
jmp 0x1400c93b6
cmp eax, 0x36003
jne 0x1400c93be
call fcn.1400d2ba0
test eax, eax
je 0x1400c9463
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1400d2960
test eax, eax
je 0x1400c9463
mov rdx, rdi
mov rcx, rbx
call fcn.1400c5780
test eax, eax
je 0x1400c9463
cmp qword [rbx + 0x48], 0
je 0x1400c9436
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
call fcn.1400ca950
mov rcx, rbx
call fcn.1400cb540
cmp dword [rsi + 0x2c], 0
je 0x1400c945c
mov rcx, rbx
call fcn.1400c76b0
mov eax, 1
jmp 0x1400c9465
cmp dword [rsi + 0x14], 0
je 0x1400c945c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x1400c945c
mov rcx, rbx
call fcn.1400c9540
mov eax, 1
jmp 0x1400c9465
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c9a60
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140177fd0], 0
jne 0x1400c69e5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400c6e80
jmp 0x1400c9a60
push rbx
sub rsp, 0xa0
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400c9afa
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1400c9ac5
mov rbx, qword [0x1401783c0]
test rbx, rbx
je 0x1400c9adb
mov rcx, rbx
call fcn.1400c60f0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400c9ab3
jmp 0x1400c9adb
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400c9aa0
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400c9bf7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1400c9bef
movdqa xmm0, xmmword [0x140119b70]
xor ebx, ebx
movdqa xmm1, xmmword [0x140119b80]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x140179aa8]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x1400c9bbe
cmp byte [rbp + rdi + 0x88], 1
jne 0x1400c9bbe
call fcn.1400cb5e0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400c79c0
inc rbx
cmp rbx, 4
jl 0x1400c9b80
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x14017a448]
test rbx, rbx
je 0x1400c9c7c
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x1400c9c3e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x1400c9c7c
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400eecb0
add rsp, 0xa0
pop rbx
ret