Function at 0x140005800
Capabilities:
Create thread
Enumerate process modules
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x540
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
xor esi, esi
movabs rax, 0xef16e3600a985220
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0xe0], rax
movabs rax, 0x89429a1be6117c28
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0xe8], rax
movabs rax, 0x6bc46839987f2889
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0xf0], rax
movabs rax, 0x5dd462f1027cff57
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0xf8], rax
movabs r14, 0x88788a0e64f93173
mov qword [rbp + 8], r14
mov rax, qword [rbp + 8]
mov qword [rbp + 0x140], rax
movabs r15, 0xfa37c83b947e1a08
mov qword [rbp + 8], r15
mov rax, qword [rbp + 8]
mov qword [rbp + 0x148], rax
movabs rax, 0x45b0065cf1136bfd
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x150], rax
movabs rax, 0x5dd462f102198732
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x158], rax
vmovdqu ymm0, ymmword [rbp + 0xe0]
vpxor ymm1, ymm0, ymmword [rbp + 0x140]
vmovdqa ymmword [rbp + 0xe0], ymm1
lea rax, [rbp + 0xe0]
mov qword [rbp + 8], rax
lea rdx, [rbp + 8]
vzeroupper
call fcn.140007930
movabs r12, 0xed11e64d108a4421
movabs r13, 0xfa37ad43f1506e66
nop word [rax + rax]
mov qword [rbp], r12
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x120], rax
mov qword [rbp], r15
mov rax, qword [rbp]
mov qword [rbp + 0x128], rax
movdqa xmm0, xmmword [rbp + 0x80]
pxor xmm0, xmmword [rbp + 0x120]
movdqa xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0x180], 0x130
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov edi, esi
cmp rax, 0xffffffffffffffff
je 0x140005a1d
lea rdx, [rbp + 0x180]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140005a14
nop dword [rax + rax]
lea rax, [rbp + 0x80]
lea r8, [rbp + 0x1ac]
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400059f4
inc rax
test ecx, ecx
jne 0x1400059e1
test edx, edx
je 0x140005a0e
lea rdx, [rbp + 0x180]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400059d0
jmp 0x140005a14
mov edi, dword [rbp + 0x188]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x140005940
mov qword [rbp], r12
mov rax, qword [rbp]
mov qword [rbp + 0x100], rax
movabs rax, 0x9e17ad43f1506e66
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x108], rax
movabs rax, 0x6bd4632892761f98
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x110], rax
movabs r12, 0x5dd462f102198732
mov qword [rbp], r12
mov rax, qword [rbp]
mov qword [rbp + 0x118], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x160], rax
mov qword [rbp], r15
mov rax, qword [rbp]
mov qword [rbp + 0x168], rax
movabs r13, 0x45b0065cf1136bfd
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x170], rax
mov qword [rbp], r12
mov rax, qword [rbp]
mov qword [rbp + 0x178], rax
vmovdqu ymm0, ymmword [rbp + 0x100]
vpxor ymm1, ymm0, ymmword [rbp + 0x160]
vmovdqa ymmword [rbp + 0x100], ymm1
lea rax, [rbp + 0x100]
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x10]
vzeroupper
call fcn.140007930
movsxd rax, edi
mov qword [0x1400504c8], rax
call fcn.140008410
test al, al
jne 0x140005be7
movabs rax, 0xfc58ee6b08905035
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x40], rax
movabs rax, 0x8853e84ff10d3a67
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x48], rax
movabs rax, 0x37d1727c83761d94
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x50], rax
movabs rax, 0x5dd462f12c6de255
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x10], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x10], r15
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x10], r13
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x10], r12
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x38], rax
vmovdqu ymm0, ymmword [rbp + 0x20]
vpxor ymm1, ymm0, ymmword [rbp + 0x40]
vmovdqa ymmword [rbp + 0x40], ymm1
lea rax, [rbp + 0x40]
mov qword [rbp + 0x20], rax
lea rdx, [rbp + 0x20]
vzeroupper
call fcn.140007340
mov eax, 1
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rbp + 0x2b0], 0x238
mov edx, dword [0x1400504c8]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005c14
mov qword [0x140050428], rsi
jmp 0x140005c8d
mov rdi, rsi
lea rdx, [rbp + 0x2b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140005c74
lea rdx, [rbp + 0x2b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
je 0x140005c74
nop
lea rdx, [rbp + 0x2e0]
lea rcx, str.GameAssembly.dll
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140005c6d
lea rdx, [rbp + 0x2b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140005c40
jmp 0x140005c74
mov rdi, qword [rbp + 0x2c8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140050428], rdi
test rdi, rdi
jne 0x140005db5
movabs rax, 0xed0bf94f01945034
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0xa0], rax
movabs rax, 0x8f58ab1bed127865
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0xa8], rax
movabs rax, 0x279072339f330f91
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0xb0], rax
movabs rax, 0x73b00c846d7fa757
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0xb8], rax
movabs rax, 0xb30341f46a95a8b7
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0xc0], rax
movabs rax, 0x5e9b5054ace7830e
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0x20], r14
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x20], r15
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x20], r13
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x20], r12
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x58], rax
movabs rax, 0xc323269a05e7ff97
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x60], rax
movabs rax, 0x5ea42327c984ec7c
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x68], rax
vmovdqu ymm0, ymmword [rbp + 0x40]
vpxor ymm1, ymm0, ymmword [rbp + 0xa0]
vmovdqa ymmword [rbp + 0xa0], ymm1
vmovdqa xmm2, xmmword [rbp + 0xc0]
vpxor xmm2, xmm2, xmmword [rbp + 0x60]
vmovdqa xmmword [rbp + 0xc0], xmm2
lea rax, [rbp + 0xa0]
jmp 0x140005bb1
call fcn.140002c00
test al, al
jne 0x140005dcf
lea rdx, str.Failed_to_create_overlay.
call fcn.140007530
jmp 0x140005bc1
mov ecx, 8
call fcn.14003a288
lea rcx, [0x140003890]
mov qword [rax], rcx
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140008330]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x40], rax
test rax, rax
je 0x140006271
cmp dword [rbp + 0x48], 0
jne 0x140005e27
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rbp + 0x20], xmm0
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140005e47
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
cmp byte [0x140050078], 0
je 0x140005fe3
mov ebx, 0x50004
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, byte [0x140050078]
test ax, ax
cmovne ecx, esi
mov byte [0x140050078], cl
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jle 0x140005f0b
nop dword [rax + rax]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [rbp + 0xa8]
cmp eax, 0x12
ja 0x140005eea
bt ebx, eax
jb 0x140005f0b
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jg 0x140005ec0
mov rax, qword [0x1400504e0]
test rax, rax
je 0x140005f20
mov rcx, qword [rax + 0x98]
jmp 0x140005f23
mov rcx, rsi
cmp qword [rcx + 0x48], 0
jne 0x140005f2f
call fcn.140034860
call fcn.1400358d0
call fcn.14000f350
mov rcx, qword [0x1400504a8]
mov rax, qword [rcx]
lea r8, [0x140050568]
mov rdx, qword [0x140050438]
call qword [rax + 0x190]
cmp qword [0x140050420], 0
je 0x140005f70
cmp qword [0x140050490], 0
je 0x140005f70
call fcn.140004620
call fcn.140011410
mov rcx, qword [0x1400504a8]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x140050438]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rax, qword [0x1400504e0]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
add rax, 0x48
mov rcx, rsi
cmp byte [rax], sil
cmovne rcx, rax
call fcn.140033b00
mov rcx, qword [0x140050498]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [rax + 0x40]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x140050078], 0
jne 0x140005e61
mov byte [0x14005048d], 0
mov rbx, qword [0x1400504e0]
test rbx, rbx
je 0x140005fff
mov rdi, qword [rbx + 0x98]
jmp 0x140006002
mov rdi, rsi
call fcn.140034c20
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140006016
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140006024
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140006033
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x98], rsi
and dword [rbx + 0xc], 0xfffffff7
mov r8, qword [0x1400504e0]
test r8, r8
je 0x1400060b0
mov r9d, dword [r8 + 0x3f58]
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400060a5
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], esi
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400504e0]
test rax, rax
je 0x1400060ce
mov rdi, qword [rax + 0x90]
jmp 0x1400060d1
mov rdi, rsi
lea rbx, [rax + 8]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400060eb
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1400504e0]
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x88], rsi
and dword [rbx + 4], 0xfffffff8
test rax, rax
je 0x14000615c
mov r9d, dword [rax + 0x3f58]
lea r8, [rax + 0x60e8]
movsx rdx, word [r8 + 8]
lea rcx, [rdx*8 + 0xc]
add rcx, r8
cmp dword [rcx], r9d
je 0x140006154
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 8], cx
movsx rax, cx
lea rcx, [rax*8 + 0xc]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], esi
inc word [rcx + 6]
inc dword [r8 + 4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400504e0]
mov qword [0x1400504e0], rbx
call fcn.14000d340
mov qword [0x1400504e0], rsi
test rbx, rbx
je 0x140006201
mov rcx, rbx
call fcn.140022c10
mov r8, qword [0x1400504e0]
test r8, r8
je 0x1400061f8
mov r9d, dword [r8 + 0x3f58]
movsx r10, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x1400061ed
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], esi
inc word [rdx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140050438]
test rcx, rcx
je 0x140006213
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140050498]
test rcx, rcx
je 0x140006225
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400504a8]
test rcx, rcx
je 0x140006237
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400504b0]
test rcx, rcx
je 0x140006249
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400504a0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x140050458]
mov rcx, qword [0x140050480]
call qword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
jmp 0x140005bc6
mov dword [rbp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3