joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008fc80
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x18008fcb8
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 + 0x38], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x40], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.18008f9d0
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x18008fdf6
mov qword [rsp + 0x30], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x18008fd70
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18008fde5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18008fdad
mov r10, qword [rdx]
cmp r10, rax
je 0x18008fda7
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 0x18008fde5
cmp r9, rdx
je 0x18008fdc1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18008fe0b
cmp r9, rdx
jne 0x18008fdb2
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, rdi
jne 0x18008fd20
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
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 0x18008fde5
Function at 0x18008fe40
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18008fbcc
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x18008fb5a
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x18008fe40
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x18008fb9a
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.18017f7ac
mov rcx, rbx
test rbx, rbx
jne 0x18008fb80
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.180091d10
add rsp, 0x20
pop rdi
ret
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x18008ff3e
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rsp + 0x60], rbx
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov rbx, r14
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
mov r13, qword [r14 + 8]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x70], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.18017f7ac
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x70]
je 0x18008ff4a
cmp rbx, rbp
jne 0x18008fef0
cmp qword [rsp + 0x68], r14
jne 0x18008ff1d
mov qword [r15], rbx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x18008ff59
mov qword [r15], r12
mov rax, r12
jmp 0x18008ff5c
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x18008ff1d
nop word [rax + rax]
movzx r15d, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r15, rax
movzx eax, byte [rbx + 0x11]
imul r15, rdx
xor r15, rax
movzx eax, byte [rbx + 0x12]
imul r15, rdx
xor r15, rax
movzx eax, byte [rbx + 0x13]
imul r15, rdx
xor r15, rax
imul r15, rdx
and r15, qword [rsi + 0x30]
shl r15, 4
add r15, qword [rsp + 0x78]
mov r14, qword [r15 + 8]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.18017f7ac
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x18008ffe8
cmp rbx, rbp
jne 0x18008ffc2
jmp 0x18008ff1a
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x18008ff70
jmp 0x18008ff1d
Function at 0x180098e50
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x180098f15
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180098f15
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x180098f2e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x180098f05
cmp byte [rcx], 0x5c
jne 0x180098efe
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x180098efe
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180098eec
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x180098efb
test r8b, 0x10
jne 0x180098efe
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x180098efe
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.180095420
test edi, edi
jne 0x180098e70
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.180095410
int3
Function at 0x18009ad70
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18009adb0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18023e740]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18009adee
cmp rsi, r14
jb 0x18009ade6
cmp rsi, r15
jae 0x18009ade6
cmp qword [rsi + 8], 0
jne 0x18009afb7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18009add1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18009ae82
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18009ae79
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18009ae79
cmp dword [rsp + 0x70], 0x10000
je 0x18009aefb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18009ae79
sub rbx, rbp
cmp rbx, r14
jae 0x18009ae40
test rsi, rsi
jne 0x18009af60
cmp rdi, r15
ja 0x18009af9f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
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 0x18009af9f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18009af9f
cmp dword [rsp + 0x70], 0x10000
je 0x18009af31
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18009aeb2
jmp 0x18009af9f
test rbx, rbx
je 0x18009ae79
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 0x18009af60
cmp rbx, r14
jae 0x18009ae20
jmp 0x18009ae82
test rdi, rdi
je 0x18009af9f
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 0x18009af60
cmp rdi, r15
jbe 0x18009ae90
jmp 0x18009af9f
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 0x18009af70
mov rax, qword [0x18023e740]
mov qword [rsi], rax
mov qword [0x18023e740], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18009b9a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18009bb5a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18009bae9
mov edi, 1
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18009baa3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18009baa3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18009baa3
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18009ba62
mov rcx, qword [0x18022b7a0]
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 0x18009bacc
jmp 0x18009ba93
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18009ba93
mov rcx, qword [0x18022b7a0]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18009bacc
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18009ba10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18009bae9
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18009bae9
mov rcx, qword [0x18022b7a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18009bb5a
cmp qword [rbx], r15
je 0x18009bb55
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18009bb55
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18009bb4e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18009b810
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18009bb10
mov eax, r15d
jmp 0x18009bb5f
mov eax, 9
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x18009bb80
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, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18023e730]
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 0x18009bbe4
mov eax, 0xa
jmp 0x18009bc77
test esi, esi
je 0x18009bc06
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 0x18009bc29
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18009bc29
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18009bc22
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18009bc29
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
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 rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18009bc90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18023e73c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x18009bcd7
mov rax, qword [0x18023e730]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18009bce4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x18009bcc0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x18009bcd7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18009b9a0
mov edi, eax
test eax, eax
jne 0x18009bdcf
mov r9d, dword [0x18023e73c]
cmp ebx, r9d
jae 0x18009bd5c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18023e730]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x18009bd55
mov edx, esi
mov ecx, ebx
call fcn.18009bb80
mov edi, eax
test eax, eax
jne 0x18009bd5c
mov r9d, dword [0x18023e73c]
inc ebx
cmp ebx, r9d
jb 0x18009bd20
cmp qword [rsp + 0x20], 0
je 0x18009bdcd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18009bdb9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
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 0x18009bdaa
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 0x18009bd80
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18022b7a0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x1800a0560
Capabilities:
Enumerate gui resources
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [0x18022d230], 0
jne 0x1800a059a
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
lea rcx, [0x18017b280]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x30]
mov qword [0x18022d230], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x18022d230]
jne 0x1800a05b9
mov ecx, 0x7a
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1800a05c9
cmp byte [0x18022cba1], 0
jne 0x1800a05c9
xor al, al
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x1800a5780
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1800a57d1
lea rcx, [0x18017f1f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800a5700]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800a57d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1800a57e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, dword [0x18022b1cc]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x18022cbdc], edx
jle 0x1800a58c1
lea rcx, [0x18022cbdc]
call fcn.18017f85c
cmp dword [0x18022cbdc], 0xffffffff
jne 0x1800a58c1
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x1800a58ae
mov r8, qword [r10 + 0x10]
mov rax, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rax
cmp byte [r8 + rax], r11b
jne 0x1800a5852
mov rdx, r11
test rax, rax
je 0x1800a5890
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8 + rdx]
xor ecx, r9d
imul r9d, ecx, 0x1000193
inc rdx
cmp rdx, rax
jb 0x1800a5870
cmp r9d, 0x7a1c884e
je 0x1800a589b
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x1800a5841
jmp 0x1800a58ae
lea r8, str.m_lifeState
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
mov r11d, eax
mov dword [0x18022cba4], r11d
lea rcx, [0x18022cbdc]
call fcn.18017f7f0
movsxd rax, dword [0x18022cba4]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1800a58f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, dword [0x18022b1cc]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x18022cbb8], edx
jle 0x1800a59d1
lea rcx, [0x18022cbb8]
call fcn.18017f85c
cmp dword [0x18022cbb8], 0xffffffff
jne 0x1800a59d1
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x1800a59be
mov r8, qword [r10 + 0x10]
mov rax, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rax
cmp byte [r8 + rax], r11b
jne 0x1800a5962
mov rdx, r11
test rax, rax
je 0x1800a59a0
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8 + rdx]
xor ecx, r9d
imul r9d, ecx, 0x1000193
inc rdx
cmp rdx, rax
jb 0x1800a5980
cmp r9d, 0x7c5cc931
je 0x1800a59ab
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x1800a5951
jmp 0x1800a59be
lea r8, str.m_nPlayerCond
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
mov r11d, eax
mov dword [0x18022cbe0], r11d
lea rcx, [0x18022cbb8]
call fcn.18017f7f0
movsxd rax, dword [0x18022cbe0]
add rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1800a59f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, dword [0x18022b1cc]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x18022cbb0], edx
jle 0x1800a5ad1
lea rcx, [0x18022cbb0]
call fcn.18017f85c
cmp dword [0x18022cbb0], 0xffffffff
jne 0x1800a5ad1
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x1800a5abe
mov r8, qword [r10 + 0x10]
mov rax, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rax
cmp byte [r8 + rax], r11b
jne 0x1800a5a62
mov rdx, r11
test rax, rax
je 0x1800a5aa0
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8 + rdx]
xor ecx, r9d
imul r9d, ecx, 0x1000193
inc rdx
cmp rdx, rax
jb 0x1800a5a80
cmp r9d, 0x7c5cc931
je 0x1800a5aab
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x1800a5a51
jmp 0x1800a5abe
lea r8, str.m_bFeignDeathReady
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
mov r11d, eax
mov dword [0x18022cbb4], r11d
lea rcx, [0x18022cbb0]
call fcn.18017f7f0
movsxd rax, dword [0x18022cbb4]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1800a5af0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, dword [0x18022b1cc]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x18022cbac], edx
jle 0x1800a5bd1
lea rcx, [0x18022cbac]
call fcn.18017f85c
cmp dword [0x18022cbac], 0xffffffff
jne 0x1800a5bd1
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x1800a5bbe
mov r8, qword [r10 + 0x10]
mov rax, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rax
cmp byte [r8 + rax], r11b
jne 0x1800a5b62
mov rdx, r11
test rax, rax
je 0x1800a5ba0
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8 + rdx]
xor ecx, r9d
imul r9d, ecx, 0x1000193
inc rdx
cmp rdx, rax
jb 0x1800a5b80
cmp r9d, 0x7c5cc931
je 0x1800a5bab
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x1800a5b51
jmp 0x1800a5bbe
lea r8, str.m_nPlayerCondEx2
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
mov r11d, eax
mov dword [0x18022cbc8], r11d
lea rcx, [0x18022cbac]
call fcn.18017f7f0
movsxd rax, dword [0x18022cbc8]
add rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1800a6580
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, dword [0x18022b1cc]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x18022cc00], edx
jle 0x1800a6661
lea rcx, [0x18022cc00]
call fcn.18017f85c
cmp dword [0x18022cc00], 0xffffffff
jne 0x1800a6661
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x1800a664e
mov r8, qword [r10 + 0x10]
mov rax, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rax
cmp byte [r8 + rax], r11b
jne 0x1800a65f2
mov rdx, r11
test rax, rax
je 0x1800a6630
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8 + rdx]
xor ecx, r9d
imul r9d, ecx, 0x1000193
inc rdx
cmp rdx, rax
jb 0x1800a6610
cmp r9d, 0x9dc483b8
je 0x1800a663b
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x1800a65e1
jmp 0x1800a664e
lea r8, str.m_vecOrigin
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
mov r11d, eax
mov dword [0x18022cbf4], r11d
lea rcx, [0x18022cc00]
call fcn.18017f7f0
movsxd rax, dword [0x18022cbf4]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1800a6680
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, dword [0x18022b1cc]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x18022cc4c], edx
jle 0x1800a6761
lea rcx, [0x18022cc4c]
call fcn.18017f85c
cmp dword [0x18022cc4c], 0xffffffff
jne 0x1800a6761
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x1800a674e
mov r8, qword [r10 + 0x10]
mov rax, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rax
cmp byte [r8 + rax], r11b
jne 0x1800a66f2
mov rdx, r11
test rax, rax
je 0x1800a6730
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8 + rdx]
xor ecx, r9d
imul r9d, ecx, 0x1000193
inc rdx
cmp rdx, rax
jb 0x1800a6710
cmp r9d, 0x9dc483b8
je 0x1800a673b
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x1800a66e1
jmp 0x1800a674e
lea r8, str.m_iTeamNum
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
mov r11d, eax
mov dword [0x18022cc58], r11d
lea rcx, [0x18022cc4c]
call fcn.18017f7f0
movsxd rax, dword [0x18022cc58]
add rax, rbx
add rsp, 0x20
pop rbx
ret