joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006470c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x140064754
lea edi, [rsi + 0xd]
jmp 0x14006480f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14006480f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x18]
mov rcx, r8
mov rdi, qword [rbp - 0x20]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x140064794
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x18], rax
jmp 0x1400647d5
jbe 0x1400647d5
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x1400647b8
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140040dd4
mov rdi, qword [rbp - 0x20]
jmp 0x1400647d5
sub rdx, rcx
je 0x1400647d1
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x18], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140064801
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006480f
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.140003904
mov edi, esi
lea rcx, [rbp - 0x20]
call fcn.14001e804
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140065270
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400b1340], eax
call fcn.140065710
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b1340], 0
jne case.default.0x1400652c6
mov ecx, 1
call fcn.140065710
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
test byte [rdx + 0x54706e21], ch
invalid
Function at 0x140004030
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x58
mov qword [rsp], r8
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rdx
movabs rdx, 0xcbf29ce484222325
add rcx, rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rax, qword [rsp]
cmp qword [rsp + 0x28], rax
jge 0x1400040ec
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x140004088
mov al, byte [rsp + 0x3f]
and al, 0x7f
mov byte [rsp + 0x3f], al
mov rax, qword [rsp + 0x38]
test rax, rax
sete cl
and cl, 1
movzx ecx, cl
or rax, rcx
add rsp, 0x58
ret

Function at 0x140009de0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x80], rcx
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x140009e2c
mov rax, qword [rsp + 0x38]
mov qword [rax], 0
xor eax, eax
add rsp, 0x88
ret
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x68]
setl al
and al, 1
cmp al, 0
je 0x140009f3f
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x60]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x5c], ecx
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], r9
mov rax, qword [rax + 8]
lea rcx, str.C:_Users_dduvall_Software_odin_dev_2024_03_core_os_file_windows.odin
mov edx, 0x5b
mov r8d, 0x30
mov qword [rsp + 0x20], rax
call fcn.140004130
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rdx, rax
mov r8d, dword [rsp + 0x5c]
lea r9, [rsp + 0x7c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x7c], 0
setbe al
and al, 1
cmp al, 0
jne 0x140009f06
cmp dword [rsp + 0x58], 0
jne 0x140009f2c
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x38]
mov eax, eax
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x50]
mov qword [rcx], rdx
add rsp, 0x88
ret
mov eax, dword [rsp + 0x7c]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
jmp 0x140009e4b
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x88
ret
Function at 0x14000aed0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x38]
call sub.KERNEL32.dll_GetFileSizeEx
cmp eax, 0
jne 0x14000af15
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rdx
add rsp, 0x48
ret

Function at 0x14000af30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x14000affe
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.C:_Users_dduvall_Software_odin_dev_2024_03_core_os_file_windows.odin
mov edx, 0xe5
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140004430
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_ReadFile
cmp eax, 0
jne 0x14000b106
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret
Function at 0x14000b160
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x14000b22e
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.C:_Users_dduvall_Software_odin_dev_2024_03_core_os_file_windows.odin
mov edx, 0xfd
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140004430
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_WriteFile
cmp eax, 0
jne 0x14000b336
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret
Function at 0x140013360
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x1400133b8
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rax], 0
xor eax, eax
add rsp, 0x78
ret
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x48]
setl al
and al, 1
cmp al, 0
je 0x1400134c6
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x3c], ecx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rax]
add rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x3c]
lea r9, [rsp + 0x5c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x5c], 0
setbe al
and al, 1
cmp al, 0
jne 0x14001347c
cmp dword [rsp + 0x38], 0
jne 0x1400134b3
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x28]
mov eax, eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
mov eax, dword [rsp + 0x5c]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
jmp 0x1400133f8
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
Function at 0x1400422a0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1400bd0d0], 0
jne 0x1400422b5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400416a0
jmp 0x1400471f0
push rbx
sub rsp, 0xa0
mov rax, qword [0x1400baf38]
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 0x14004728a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140047255
mov rbx, qword [0x1400bd4c0]
test rbx, rbx
je 0x14004726b
mov rcx, rbx
call fcn.140041c40
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140047243
jmp 0x14004726b
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 0x140047230
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x140047387
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 0x14004737f
movdqa xmm0, xmmword [0x1400a90a0]
xor ebx, ebx
movdqa xmm1, xmmword [0x1400a90b0]
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, [0x1400beba8]
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 0x14004734e
cmp byte [rbp + rdi + 0x88], 1
jne 0x14004734e
call fcn.140048540
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400438e0
inc rbx
cmp rbx, 4
jl 0x140047310
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 [0x1400bf548]
test rbx, rbx
je 0x14004740c
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 0x1400473ce
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14004740c
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.14004d4a0
add rsp, 0xa0
pop rbx
ret
Function at 0x140044e50
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400baf38]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, pe_nt_image_headers64
call fcn.14004e5e0
xor edx, edx
lea rcx, [0x1400bee62]
mov r8d, 0x6d1
call fcn.14004e5e0
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x1400bebe8]
xor r13d, r13d
lea r12, [0x1400bef02]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x140044ff5
cmp ebx, 0x140
jb 0x140044f70
cmp ebx, 0x14e
ja 0x140044f70
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x140044f7f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140044fc2
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140044ff5
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x140044ed2
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14004d4a0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140046560
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x140046590
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140044630
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140046d50
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.140047d90
test eax, eax
je 0x140046ea3
cmp dword [rdi], 0
je 0x140046e11
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x140046db0
call fcn.14004aba0
test eax, eax
je 0x140046ea3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14004a720
jmp 0x140046df6
cmp eax, 0x36002
jne 0x140046dd4
call fcn.14004bfa0
test eax, eax
je 0x140046ea3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14004ba90
jmp 0x140046df6
cmp eax, 0x36003
jne 0x140046dfe
call fcn.14004cde0
test eax, eax
je 0x140046ea3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14004cba0
test eax, eax
je 0x140046ea3
mov rdx, rdi
mov rcx, rbx
call fcn.140042a50
test eax, eax
je 0x140046ea3
cmp qword [rbx + 0x48], 0
je 0x140046e76
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.140047b50
mov rcx, rbx
call fcn.1400484a0
cmp dword [rsi + 0x2c], 0
je 0x140046e9c
mov rcx, rbx
call fcn.140043660
mov eax, 1
jmp 0x140046ea5
cmp dword [rsi + 0x14], 0
je 0x140046e9c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x140046e9c
mov rcx, rbx
call fcn.140046f80
mov eax, 1
jmp 0x140046ea5
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 0x1400471f0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1400bd0d0], 0
jne 0x1400422b5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400416a0
jmp 0x1400471f0
push rbx
sub rsp, 0xa0
mov rax, qword [0x1400baf38]
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 0x14004728a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140047255
mov rbx, qword [0x1400bd4c0]
test rbx, rbx
je 0x14004726b
mov rcx, rbx
call fcn.140041c40
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140047243
jmp 0x14004726b
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 0x140047230
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x140047387
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 0x14004737f
movdqa xmm0, xmmword [0x1400a90a0]
xor ebx, ebx
movdqa xmm1, xmmword [0x1400a90b0]
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, [0x1400beba8]
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 0x14004734e
cmp byte [rbp + rdi + 0x88], 1
jne 0x14004734e
call fcn.140048540
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400438e0
inc rbx
cmp rbx, 4
jl 0x140047310
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 [0x1400bf548]
test rbx, rbx
je 0x14004740c
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 0x1400473ce
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14004740c
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.14004d4a0
add rsp, 0xa0
pop rbx
ret