Function at 0x18009c5b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13b0]
mov eax, 0x14b0
call fcn.1800c1020
sub rsp, rax
movaps xmmword [rsp + 0x14a0], xmm6
movaps xmmword [rsp + 0x1490], xmm8
mov rax, qword [0x1801300c0]
xor rax, rsp
mov qword [rbp + 0x1388], rax
mov rsi, rdx
xor ebx, ebx
cmp byte [rcx + 0xc], bl
je 0x18009d25a
cmp byte [0x18022bd54], bl
jne 0x18009d25a
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1348], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1358], xmm1
movdqu xmmword [rbp + 0x1368], xmm0
lea rdx, [rbp + 0x1348]
mov rcx, rsi
call fcn.1800af350
test al, al
je 0x18009d24e
mov ecx, dword [0x18022bdc4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18009d247
cmp byte [0x18022f948], bl
jne 0x18009d24e
mov byte [0x18022f948], 1
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1310], xmm1
mov qword [rbp + 0x1320], rbx
mov r8, rsi
lea rdx, [rbp + 0x1338]
mov rcx, qword [rbp + 0x1358]
call fcn.1800abd70
nop
mov r8, rsi
lea rdx, [rbp + 0x1328]
mov rcx, qword [rbp + 0x1348]
call fcn.1800b0c20
nop
mov r12, qword [rbp + 0x1338]
mov qword [rsp + 0x48], r12
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r9
test al, al
je 0x18009c6e4
mov dword [rsp + 0x40], ebx
jmp 0x18009c703
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b5820
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], ebx
mov r14d, 0xffffffff
lea r12, vtable.std::_Ref_count_obj2_class_ItemPotion_.0
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1300], xmm0
mov r9d, dword [rsp + 0x44]
mov r8, rsi
lea rdx, [rbp + 0x1300]
mov rcx, qword [rbp + 0x1338]
call fcn.1800a2db0
nop
mov r13, qword [rbp + 0x1300]
test r13, r13
je 0x18009c888
mov rdx, rsi
mov rcx, r13
call fcn.1800a3ff0
test al, al
je 0x18009c888
mov r8, rsi
lea rdx, [rsp + 0x58]
mov rcx, r13
call fcn.1800a3ab0
nop
mov rax, qword [rax]
mov rdi, qword [rax + 8]
mov ecx, 0x20
call fcn.1800c01a8
mov r15, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
mov qword [rax], r12
lea rbx, [rax + 0x10]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.1800a45b0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x1378], xmm0
mov qword [rbp + 0x1378], rbx
mov qword [rbp + 0x1380], r15
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x18009c811
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18009c80a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009c80a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov r13, qword [rbp + 0x1300]
mov r8, qword [r13 + 8]
mov rdx, rsi
mov rcx, qword [rbp + 0x1378]
call fcn.1800a4ba0
test al, al
je 0x18009c85a
mov rdx, qword [rbp + 0x1318]
cmp rdx, qword [rbp + 0x1320]
je 0x18009c848
mov eax, dword [rsp + 0x44]
mov dword [rdx], eax
add qword [rbp + 0x1318], 4
jmp 0x18009c85a
lea r8, [rsp + 0x44]
lea rcx, [rbp + 0x1310]
call fcn.1800641b0
nop
mov eax, r14d
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x18009c888
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov eax, r14d
lock xadd dword [r15 + 0xc], eax
cmp eax, 1
jne 0x18009c888
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x1308]
test rcx, rcx
je 0x18009c8ca
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009c8ca
mov rbx, qword [rbp + 0x1308]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009c8ca
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp eax, 9
jl 0x18009c720
mov rax, qword [rbp + 0x1318]
cmp qword [rbp + 0x1310], rax
mov r12, qword [rsp + 0x48]
je 0x18009d162
mov r15, qword [rbp + 0x1358]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r15 + 8]
mov rcx, rsi
call r9
test al, al
je 0x18009c91d
xorps xmm0, xmm0
jmp 0x18009c937
lea r9, str.getMaxHealth
mov r8, qword [r15 + 8]
mov rdx, rsi
mov rcx, qword [0x180227f60]
call fcn.1800b4cb0
movd xmm8, dword [0x180227c60]
cvtdq2ps xmm8, xmm8
divss xmm8, dword [0x1801144a4]
mulss xmm8, xmm0
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r15 + 8]
mov rcx, rsi
call r9
test al, al
je 0x18009c972
xorps xmm0, xmm0
jmp 0x18009c98c
lea r9, str.getHealth
mov r8, qword [r15 + 8]
mov rdx, rsi
mov rcx, qword [0x180227f60]
call fcn.1800b4cb0
movaps xmm6, xmm8
subss xmm6, xmm0
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r15 + 8]
mov rcx, rsi
call r9
test al, al
je 0x18009c9b4
xorps xmm0, xmm0
jmp 0x18009c9ce
lea r9, str.getHealth
mov r8, qword [r15 + 8]
mov rdx, rsi
mov rcx, qword [0x180227f60]
call fcn.1800b4cb0
comiss xmm0, xmm8
jae 0x18009d162
cmp byte [0x18022bda6], 0
je 0x18009ca3d
call fcn.1800bfa8c
mov dword [rbp + 0x12f4], 0xffffffff
mov dword [rsp + 0x74], eax
mov edx, 1
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x74], eax
inc rdx
cmp rdx, 0x270
jb 0x18009ca00
mov dword [rsp + 0x70], 0x270
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x1310]
lea rdx, [rsp + 0x50]
call fcn.180098720
cmp dword [0x180227bf8], 2
jne 0x18009cda8
mov rbx, qword [rbp + 0x1318]
sub rbx, qword [rbp + 0x1310]
sar rbx, 2
test rbx, rbx
je 0x18009d162
movaps xmm0, xmm6
mulss xmm0, dword [0x1801141c4]
call fcn.1800eb5c4
cvttss2si edi, xmm0
test edi, edi
je 0x18009d162
cmp rbx, 1
je 0x18009ca90
cmp edi, 1
jne 0x18009cc00
mov rax, qword [rbp + 0x1310]
mov ebx, dword [rax]
mov ecx, dword [0x180227bc4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009cae0
mov dword [rsp + 0x20], ebx
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b6910
mov ecx, dword [0x180227bdc]
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1300], xmm0
mov r8, rsi
lea rdx, [rbp + 0x1300]
mov rcx, qword [rbp + 0x1358]
call fcn.1800abec0
nop
mov rbx, qword [rbp + 0x1328]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [rbx + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009cb72
mov rax, qword [rbp + 0x1300]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x1368]
mov rcx, qword [rax + 8]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.sendUseItem
mov r8, qword [rbx + 8]
mov rdx, rsi
mov rcx, qword [0x180228260]
call fcn.1800b4420
mov ecx, dword [0x180227bc4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009cbbe
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b6910
nop
mov rcx, qword [rbp + 0x1308]
test rcx, rcx
je 0x18009cc00
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009cc00
mov rbx, qword [rbp + 0x1308]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009cc00
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbp + 0x1318]
sub rax, qword [rbp + 0x1310]
sar rax, 2
cmp rax, 1
jbe 0x18009cda8
cmp edi, 1
jle 0x18009cda8
mov r13, qword [rbp + 0x1328]
xor edi, edi
nop
mov ecx, dword [0x180227bc4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbp + 0x1310]
mov ebx, dword [rax + rdi]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009cc81
mov dword [rsp + 0x20], ebx
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b6910
mov ecx, dword [0x180227bdc]
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1300], xmm0
mov r8, rsi
lea rdx, [rbp + 0x1300]
mov rcx, qword [rbp + 0x1358]
call fcn.1800abec0
nop
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r13 + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009cd0d
mov rax, qword [rbp + 0x1300]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x1368]
mov rcx, qword [rax + 8]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.sendUseItem
mov r8, qword [r13 + 8]
mov rdx, rsi
mov rcx, qword [0x180228260]
call fcn.1800b4420
nop
mov rcx, qword [rbp + 0x1308]
test rcx, rcx
je 0x18009cd4f
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009cd4f
mov rbx, qword [rbp + 0x1308]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009cd4f
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 4
cmp rdi, 8
jl 0x18009cc30
mov ecx, dword [0x180227bc4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009cda8
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b6910
cmp dword [0x180227bf8], 0
jne 0x18009cfc3
mulss xmm6, dword [0x1801141c4]
movaps xmm0, xmm6
call fcn.1800eb5c4
cvttss2si edx, xmm0
test edx, edx
je 0x18009d162
mov rcx, qword [rbp + 0x1318]
sub rcx, qword [rbp + 0x1310]
sar rcx, 2
movsxd rax, edx
cmp rax, rcx
cmovbe ecx, edx
test ecx, ecx
jle 0x18009cf76
xor edi, edi
movsxd r13, ecx
nop dword [rax]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r15 + 8]
mov rcx, rsi
call r9
test al, al
je 0x18009ce20
xorps xmm0, xmm0
jmp 0x18009ce3a
lea r9, str.getHealth
mov r8, qword [r15 + 8]
mov rdx, rsi
mov rcx, qword [0x180227f60]
call fcn.1800b4cb0
comiss xmm0, xmm8
jae 0x18009cf76
mov rax, qword [rbp + 0x1310]
mov ebx, dword [rax + rdi*4]
mov ecx, dword [0x180227bc4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009ce95
mov dword [rsp + 0x20], ebx
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b6910
mov ecx, dword [0x180227bdc]
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1300], xmm0
mov r8, rsi
lea rdx, [rbp + 0x1300]
mov rcx, qword [rbp + 0x1358]
call fcn.1800abec0
nop
mov rbx, qword [rbp + 0x1328]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [rbx + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009cf28
mov rax, qword [rbp + 0x1300]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x1368]
mov rcx, qword [rax + 8]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.sendUseItem
mov r8, qword [rbx + 8]
mov rdx, rsi
mov rcx, qword [0x180228260]
call fcn.1800b4420
nop
mov rcx, qword [rbp + 0x1308]
test rcx, rcx
je 0x18009cf6a
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009cf6a
mov rbx, qword [rbp + 0x1308]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009cf6a
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + 8]
inc rdi
cmp rdi, r13
jl 0x18009ce00
mov ecx, dword [0x180227bc4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r9
mov edi, dword [rsp + 0x40]
test al, al
jne 0x18009cfc7
mov dword [rsp + 0x20], edi
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b6910
jmp 0x18009cfc7
mov edi, dword [rsp + 0x40]
cmp dword [0x180227bf8], 1
jne 0x18009d156
mov rax, qword [rbp + 0x1318]
mov rcx, qword [rbp + 0x1310]
sub rax, rcx
test rax, 0xfffffffffffffffc
je 0x18009d162
mov ebx, dword [rcx]
mov ecx, dword [0x180227bc4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009d03a
mov dword [rsp + 0x20], ebx
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b6910
mov ecx, dword [0x180227bdc]
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1300], xmm0
mov r8, rsi
lea rdx, [rbp + 0x1300]
mov rcx, qword [rbp + 0x1358]
call fcn.1800abec0
nop
mov rbx, qword [rbp + 0x1328]
mov rax, qword [rsi]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [rbx + 8]
mov rcx, rsi
call r9
test al, al
jne 0x18009d0cc
mov rax, qword [rbp + 0x1300]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x1368]
mov rcx, qword [rax + 8]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.sendUseItem
mov r8, qword [rbx + 8]
mov rdx, rsi
mov rcx, qword [0x180228260]
call fcn.1800b4420
mov ecx, dword [0x180227bc4]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsi]
mov r10, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r12 + 8]
mov rcx, rsi
call r10
test al, al
jne 0x18009d114
mov dword [rsp + 0x20], edi
lea r9, str.currentItem
mov r8, qword [r12 + 8]
mov rdx, rsi
mov rcx, qword [0x180227ed0]
call fcn.1800b6910
nop
mov rcx, qword [rbp + 0x1308]
test rcx, rcx
je 0x18009d156
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009d156
mov rbx, qword [rbp + 0x1308]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009d156
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + 8]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rbp + 0x1330]
test rcx, rcx
je 0x18009d1a5
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009d1a5
mov rbx, qword [rbp + 0x1330]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009d1a5
mov rcx, qword [rbp + 0x1330]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x1340]
test rcx, rcx
je 0x18009d1e7
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009d1e7
mov rbx, qword [rbp + 0x1340]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x18009d1e7
mov rcx, qword [rbp + 0x1340]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x1310]
test rcx, rcx
je 0x18009d24e
mov rax, qword [rbp + 0x1320]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009d22a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009d294
call fcn.1800c0080
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1310], xmm0
mov qword [rbp + 0x1320], 0
jmp 0x18009d24e
mov byte [0x18022f948], 0
lea rcx, [rbp + 0x1348]
call fcn.180062440
mov rcx, qword [rbp + 0x1388]
xor rcx, rsp
call fcn.1800c0060
lea r11, [rsp + 0x14b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm8, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800ca864
nop
int3