joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180043540
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18004358f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800d2a80]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800435cd
cmp rsi, r14
jb 0x1800435c5
cmp rsi, r15
jae 0x1800435c5
cmp qword [rsi + 8], 0
jne 0x180043797
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800435b0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180043662
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180043659
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180043659
cmp dword [rsp + 0x40], 0x10000
je 0x1800436db
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180043659
sub rbx, rbp
cmp rbx, r14
jae 0x180043620
test rsi, rsi
jne 0x180043740
cmp rdi, r15
ja 0x18004377f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18004377f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004377f
cmp dword [rsp + 0x40], 0x10000
je 0x180043711
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180043692
jmp 0x18004377f
test rbx, rbx
je 0x180043659
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180043740
cmp rbx, r14
jae 0x180043600
jmp 0x180043662
test rdi, rdi
je 0x18004377f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180043740
cmp rdi, r15
jbe 0x180043670
jmp 0x18004377f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180043750
mov rax, qword [0x1800d2a80]
mov qword [rsi], rax
mov qword [0x1800d2a80], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180064a70
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180044130
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
xor edx, edx
mov ecx, 4
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004425b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180044252
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180044234
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180044234
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180044234
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800441f2
mov rcx, qword [0x1800a7188]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180044252
jmp 0x180044227
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180044227
mov rcx, qword [0x1800a7188]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180044252
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800441a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800442b5
cmp dword [rbx + 0xc], esi
jbe 0x1800442b5
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800442ae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180043f80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180044270
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180064a70
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800442e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800d2a70]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180044353
mov eax, 0xa
jmp 0x1800443e6
test esi, esi
je 0x180044375
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180044398
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180044398
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180044391
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180044398
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180064a70
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180044410
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1800d2a7c]
mov ebx, edi
test ecx, ecx
je 0x18004454d
mov rax, qword [0x1800d2a70]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180044468
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180044440
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18004454d
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180044130
mov r8d, dword [0x1800d2a7c]
cmp ebx, r8d
jae 0x1800444d8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800d2a70]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800444d1
mov edx, esi
mov ecx, ebx
call fcn.1800442e0
mov edi, eax
test eax, eax
jne 0x1800444d8
mov r8d, dword [0x1800d2a7c]
inc ebx
cmp ebx, r8d
jb 0x1800444a0
cmp qword [rsp + 0x20], 0
je 0x18004454d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180044539
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004452a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180044500
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800a7188]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800478e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.180064a90
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180048310]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x180047959
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180064a70
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1800509b0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1800509e5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18004ded0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180050b26
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180050aa0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180050b15
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180050add
mov r10, qword [rdx]
cmp r10, rax
je 0x180050ad7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180050b15
cmp r9, rdx
je 0x180050af1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180050b37
cmp r9, rdx
jne 0x180050ae2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180050a50
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180050b15
Function at 0x18005a950
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
cmp byte [0x1800aa34b], 0
je 0x18005aa40
mov ecx, dword [0x1800aa338]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18005aa40
xorps xmm0, xmm0
mov qword [rbp + 0x10], 8
xor ebx, ebx
mov ecx, 8
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
call fcn.180064a90
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
lea rcx, [rax + 8]
mov qword [rbp - 0x10], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
add rax, 8
mov rcx, qword [0x1800aa280]
mov qword [rbp - 0x18], rax
call fcn.180048d40
test rax, rax
je 0x18005aa35
xorps xmm0, xmm0
mov qword [rsp + 0x58], rdi
lea rcx, [rax + 0x10a8]
mov qword [rbp - 0x10], rbx
lea rdx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.180048d40
mov ecx, dword [0x1800aa338]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18005aa30
movss xmm1, dword [0x1800aa34c]
lea rcx, [rdi + 0xd50]
addss xmm1, dword [0x1800998d4]
xorps xmm0, xmm0
mov qword [rbp - 0x10], rbx
lea r8, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.180049240
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
xorps xmm0, xmm0
mov qword [rbp + 0x10], 8
xor ebx, ebx
mov ecx, 8
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
call fcn.180064a90
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
lea rcx, [rax + 8]
mov qword [rbp - 0x10], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
add rax, 8
mov rcx, qword [0x1800aa280]
mov qword [rbp - 0x18], rax
call fcn.180048d40
test rax, rax
je 0x18005aa35
xorps xmm0, xmm0
mov qword [rbp - 0x10], rbx
lea rcx, [rax + 0x10a8]
lea rdx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.180048d40
movss xmm1, dword [0x1800998d4]
lea r8, [rbp - 0x20]
xorps xmm0, xmm0
mov qword [rbp - 0x10], rbx
movdqu xmmword [rbp - 0x20], xmm0
lea rcx, [rax + 0xd50]
call fcn.180049240
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x18005b2c0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
movzx r8d, byte [rdx]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r8, rax
mov r11, rdx
movzx eax, byte [rdx + 1]
mov r9, qword [r10 + 8]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 4]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 5]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 6]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 7]
mov rdx, qword [r10 + 0x30]
imul r8, rcx
xor r8, rax
imul r8, rcx
and rdx, r8
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov rcx, qword [rdx + 8]
cmp rcx, r9
je 0x18005b371
mov rax, qword [r11]
mov r8, qword [rdx]
cmp rax, qword [rcx + 0x10]
je 0x18005b373
nop
cmp rcx, r8
je 0x18005b371
mov rcx, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
jne 0x18005b360
jmp 0x18005b373
xor ecx, ecx
test rcx, rcx
je 0x18005b3ce
mov rax, qword [rdx]
cmp qword [rdx + 8], rcx
jne 0x18005b399
cmp rax, rcx
jne 0x18005b38f
mov qword [rdx], r9
mov qword [rdx + 8], r9
jmp 0x18005b3a4
mov r9, qword [rcx + 8]
mov qword [rdx + 8], r9
jmp 0x18005b3a4
cmp rax, rcx
jne 0x18005b3a4
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
dec qword [r10 + 0x10]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, 0x20
call fcn.180064e44
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x18005b840
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18005b875
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18004ded0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18005b9e4
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18005b95c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18005b9d3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x18005b999
mov r10, qword [rdx]
cmp r10, rax
je 0x18005b993
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18005b9d3
cmp r9, rdx
je 0x18005b9af
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x18005b9f5
cmp r9, rdx
jne 0x18005b9a0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18005b8e0
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18005b9d3
Function at 0x18005bea0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x370
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x18], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x20]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x28]
lea rdx, [rsp + 0x30]
sub eax, dword [rsp + 0x20]
mov r8d, 0x104
mov rcx, qword [rbx + 0x20]
mov dword [rbx + 0x28], eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
mov dword [rbx + 0x2c], eax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx + 0x20]
lea rax, [rsp + 0x30]
mov r8d, 0x104
mov qword [rbx + 0x38], rax
lea rdx, [rsp + 0x140]
call qword [sym.imp.USER32.dll_GetClassNameA]
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x140]
mov r9d, 0x104
mov qword [rbx + 0x40], rax
lea r8, [rsp + 0x250]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
lea rax, [rsp + 0x250]
mov qword [rbx + 0x48], rax
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180064a70
add rsp, 0x370
pop rbx
ret

Function at 0x18005bf90
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18005bfc9
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
movsxd rcx, dword [0x1800aa364]
cmp rax, rcx
je 0x18005bfc9
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [0x1800aa364], eax
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x18005c030
Capabilities:
Hide graphical window
Set console window title

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0x120], rax
cmp byte [0x1800a7169], 0
mov rbx, rcx
je 0x18005c068
lea rdx, str._____Console::InitializeConsole__failed_to_initialize_console_._n
call fcn.18005c110
jmp 0x18005c0e9
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov ecx, 1
mov qword [rbx + 0x10], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x180098a54]
lea rdx, str.CONOUT_
lea rcx, [0x1800a7190]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea r8, str.DEBUG_CONSOLE
lea rdx, str._DX11Base___s
lea rcx, [rsp + 0x20]
call fcn.18005d410
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rbx + 0x10]
xor edx, edx
mov byte [0x1800a7169], 1
mov byte [rbx], 0
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180064a70
add rsp, 0x130
pop rbx
ret
Function at 0x18005d400
Capabilities:
Resume thread

Disassembly:
mov edx, 1
xor ecx, ecx
jmp fcn.180044ba0

Function at 0x18005d5d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [0x1800a7170]
mov r14, rdx
lea rdx, [rsp + 0x28]
movsxd rbp, r8d
mov dword [rsp + 0x20], 0x428c0000
mov dword [rsp + 0x24], 0x41980000
movups xmm0, xmmword [rbx + 0x3b24]
lea rcx, [rbx + 0x4a80]
mov dword [rsp + 0x28], 0x15
movups xmmword [rsp + 0x2c], xmm0
call fcn.180020b40
xor edi, edi
cmp dword [rbx + 0x4a7c], 0x15
je 0x18005d650
mov qword [rbx + 0x3b24], rdi
mov qword [rbx + 0x3b2c], rdi
movss xmm1, dword [0x1800998d4]
mov ecx, 0xd
call fcn.1800055a0
lea r15, [0x180000000]
cmp byte [rbp + r15 + 0xaa370], dil
je 0x18005d67c
lea r8, [0x180087010]
jmp 0x18005d687
movsxd rax, dword [r14]
mov r8, qword [r15 + rax*8 + 0x90170]
mov r9d, ebp
lea rdx, str._s_d
lea rcx, [rsp + 0x40]
call fcn.180021850
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.180039a30
test al, al
je 0x18005d6d9
mov rax, rdi
cmp rax, 0x100
jae 0x18005d74c
mov byte [rax + r15 + 0xaa370], dil
inc rax
cmp rax, 0x100
jl 0x18005d6b7
mov byte [rbp + r15 + 0xaa370], 1
mov ebx, 1
mov ecx, ebx
call fcn.180005670
call fcn.1800054d0
cmp byte [rbp + r15 + 0xaa370], dil
je 0x18005d708
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x18005d72f
inc ebx
cmp ebx, 0x7c
jb 0x18005d6f4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180064a70
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp ebx, 0x1b
cmovne edi, ebx
mov dword [r14], edi
cmp rbp, 0x100
jae 0x18005d74c
mov byte [rbp + r15 + 0xaa370], 0
jmp 0x18005d708
call fcn.180064f80
int3