Function at 0x1400083a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x13f0]
mov eax, 0x14f0
call fcn.1400b2b00
sub rsp, rax
movaps xmmword [rsp + 0x14e0], xmm6
movaps xmmword [rsp + 0x14d0], xmm7
movaps xmmword [rsp + 0x14c0], xmm8
movaps xmmword [rsp + 0x14b0], xmm9
movaps xmmword [rsp + 0x14a0], xmm10
mov rax, qword [0x1400dd0c0]
xor rax, rsp
mov qword [rbp + 0x1390], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1384], 0xffffffff
mov dword [rbp + 4], eax
mov edx, 1
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 4], eax
inc rdx
cmp rdx, 0x270
jb 0x140008430
mov dword [rbp], 0x270
lea rcx, [rbp]
call fcn.14000ec30
shr eax, 0x10
add eax, eax
mov dword [0x140115878], eax
xor r15d, r15d
mov qword [0x140115c48], r15
mov dword [0x140115c50], r15d
mov word [0x140115c54], r15w
mov qword [0x140115978], r15
mov word [0x140115980], r15w
mov byte [0x140115982], r15b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140115c60], xmm0
movups xmmword [0x140115c70], xmm0
movups xmmword [0x140115c80], xmm0
movups xmmword [0x140115c90], xmm0
mov byte [0x140115ca0], al
mov dword [0x140115970], eax
movups xmmword [0x140115988], xmm0
mov qword [0x140115998], rax
mov dword [0x1401159a0], eax
mov byte [0x1401159a4], al
mov byte [0x140115974], al
lea rcx, [0x1401159b0]
call fcn.14005ad10
mov rax, qword [0x140115960]
test rax, rax
je 0x140008504
inc dword [rax + 0x3b0]
mov ecx, 0x3fa8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140008520
xor edx, edx
mov rcx, rax
call fcn.140010440
jmp 0x140008523
mov rax, r15
cmp qword [0x140115960], r15
jne 0x140008533
mov qword [0x140115960], rax
mov rcx, rax
call fcn.140016c80
mov rbx, qword [0x140115960]
mov qword [rbx + 0x20], r15
mov rsi, qword [rbx + 0xa8]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x30]
lea r14, str.C:WindowsFonts_segoeuisl.ttf
mov rcx, r14
call fcn.140011990
mov rdi, rax
mov r12d, 0xffff
test rax, rax
je 0x1400086cb
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x50], xmm1
mov qword [rbp + 0x80], rax
mov byte [rbp + 0xc], 1
mov dword [rbp + 0x18], 3
mov dword [rbp + 0x1c], 1
mov dword [rbp + 0x44], 0x7f7fffff
mov dword [rbp + 0x50], 0x3f800000
mov word [rbp + 0x54], r12w
movaps xmm3, xmmword [rbp]
movaps xmmword [rsp + 0x60], xmm3
movaps xmm4, xmmword [rbp + 0x10]
movaps xmmword [rsp + 0x70], xmm4
movaps xmmword [rbp - 0x80], xmm1
xorps xmm5, xmm5
movaps xmmword [rbp - 0x70], xmm5
movaps xmm6, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x60], xmm6
movaps xmm2, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x50], xmm2
xorps xmm7, xmm7
movaps xmmword [rbp - 0x40], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp - 0x30], xmm8
movsd xmm9, qword [rbp + 0x80]
movsd qword [rbp - 0x20], xmm9
movdqa xmm0, xmm2
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x140008683
lea r9, [0x1400c58d6]
nop dword [rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140008637
cmp al, 0x5c
je 0x140008637
mov r9, rcx
cmp rcx, r14
ja 0x140008620
movsd xmm0, qword [0x1400cb510]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, Ordinal_41
lea rcx, [rbp - 0x4a]
call fcn.140011730
movsd xmm9, qword [rbp - 0x20]
movaps xmm8, xmmword [rbp - 0x30]
movaps xmm7, xmmword [rbp - 0x40]
movaps xmm2, xmmword [rbp - 0x50]
movaps xmm6, xmmword [rbp - 0x60]
movaps xmm5, xmmword [rbp - 0x70]
movaps xmm1, xmmword [rbp - 0x80]
movaps xmm4, xmmword [rsp + 0x70]
movaps xmm3, xmmword [rsp + 0x60]
movaps xmmword [rbp], xmm3
movaps xmmword [rbp + 0x10], xmm4
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x30], xmm5
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x50], xmm2
movaps xmmword [rbp + 0x60], xmm7
movaps xmmword [rbp + 0x70], xmm8
movsd qword [rbp + 0x80], xmm9
mov qword [rbp], rdi
mov eax, dword [rsp + 0x30]
mov dword [rbp + 8], eax
mov dword [rbp + 0x14], 0x41c00000
lea rdx, [rbp]
mov rcx, rsi
call fcn.140031a00
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
mov byte [rsp + 0x6c], 1
mov dword [rbp - 0x5c], 0x7f7fffff
mov dword [rbp - 0x50], 0x3f800000
mov word [rbp - 0x4c], r12w
mov byte [rbp - 0x58], 1
mov byte [rbp - 0x80], 1
mov dword [rsp + 0x78], 3
mov dword [rsp + 0x7c], 3
lea rax, [0x1400c6b34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
movss xmm3, dword [0x1400cb568]
lea rdx, [0x1400dd180]
mov rcx, qword [rbx + 0xa8]
call fcn.140031cc0
mov rbx, qword [0x140115960]
mov dword [rbx + 0x1578], 0x41000000
mov dword [rbx + 0x157c], 0x41000000
mov dword [rbx + 0x1590], 0x3f000000
mov dword [rbx + 0x15ac], 0x40e00000
mov dword [rbx + 0x15b0], 0x40e00000
mov dword [rbx + 0x15b4], 0x40a00000
mov dword [rbx + 0x15b8], 0x3f800000
mov dword [rbx + 0x15f0], 0x40c00000
movdqa xmm0, xmmword [0x1400cbaa0]
movups xmmword [rbx + 0x1638], xmm0
movdqa xmm1, xmmword [0x1400cb750]
movups xmmword [rbx + 0x1648], xmm1
movdqa xmm0, xmmword [0x1400cb950]
movups xmmword [rbx + 0x1658], xmm0
movdqa xmm1, xmmword [0x1400cb680]
movups xmmword [rbx + 0x1688], xmm1
xorps xmm0, xmm0
movups xmmword [rbx + 0x1698], xmm0
movdqa xmm2, xmmword [0x1400cb9a0]
movups xmmword [rbx + 0x16a8], xmm2
movdqa xmm3, xmmword [0x1400cb850]
movups xmmword [rbx + 0x16b8], xmm3
movdqa xmm4, xmmword [0x1400cb9d0]
movups xmmword [rbx + 0x16c8], xmm4
movups xmmword [rbx + 0x16d8], xmm2
movdqa xmm0, xmmword [0x1400cb830]
movups xmmword [rbx + 0x16f8], xmm0
movdqa xmm1, xmmword [0x1400cb9c0]
movups xmmword [rbx + 0x16e8], xmm1
movdqa xmm0, xmmword [0x1400cb7b0]
movups xmmword [rbx + 0x1708], xmm0
movups xmmword [rbx + 0x1718], xmm2
movdqa xmm0, xmmword [0x1400cb940]
movups xmmword [rbx + 0x1728], xmm0
movups xmmword [rbx + 0x1738], xmm3
movups xmmword [rbx + 0x1748], xmm4
movdqa xmm0, xmmword [0x1400cb9b0]
movups xmmword [rbx + 0x1758], xmm0
movdqa xmm1, xmmword [0x1400cb720]
movups xmmword [rbx + 0x1768], xmm1
movups xmmword [rbx + 0x1778], xmm4
movdqa xmm0, xmmword [0x1400cb980]
movups xmmword [rbx + 0x1788], xmm0
movups xmmword [rbx + 0x1798], xmm4
movups xmmword [rbx + 0x17a8], xmm4
movups xmmword [rbx + 0x1848], xmm0
movups xmmword [rbx + 0x1858], xmm4
movups xmmword [rbx + 0x1868], xmm4
movdqa xmm0, xmmword [0x1400cb840]
movups xmmword [rbx + 0x17b8], xmm0
movdqa xmm1, xmmword [0x1400cb880]
movups xmmword [rbx + 0x17c8], xmm1
movups xmmword [rbx + 0x17d8], xmm4
movdqa xmm0, xmmword [0x1400cb960]
movups xmmword [rbx + 0x17e8], xmm0
movups xmmword [rbx + 0x17f8], xmm3
movups xmmword [rbx + 0x1808], xmm4
movdqa xmm0, xmmword [0x1400cb700]
movups xmmword [rbx + 0x1818], xmm0
movups xmmword [rbx + 0x1828], xmm3
movups xmmword [rbx + 0x1838], xmm4
movdqa xmm0, xmmword [0x1400cb800]
movups xmmword [rbx + 0x1898], xmm0
movups xmmword [rbx + 0x18a8], xmm4
movups xmmword [rbx + 0x18b8], xmm0
movups xmmword [rbx + 0x18c8], xmm4
movdqa xmm0, xmmword [0x1400cb7a0]
movups xmmword [rbx + 0x1928], xmm0
movdqa xmm1, xmmword [0x1400cb8a0]
movups xmmword [rbx + 0x1678], xmm1
mov rsi, qword [0x140115888]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140008b5a
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140008b5a
mov rax, qword [0x140115960]
test rax, rax
je 0x1400089af
inc dword [rax + 0x3b0]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400089dc
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x1400089df
mov rdi, r15
mov qword [rbx + 0xe8], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0xd8], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp - 0x10]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov qword [rbx + 0x120], rsi
mov dword [rbx + 0x3c], 9
mov dword [rbx + 0x40], Ordinal_41
mov dword [rbx + 0x44], Ordinal_41
mov dword [rbx + 0x48], Ordinal_41
mov dword [rbx + 0x4c], Ordinal_41
mov dword [rbx + 0x50], reloc.WLDAP32.dll_Ordinal_33
mov dword [rbx + 0x54], Ordinal_35
mov dword [rbx + 0x58], Ordinal_41
mov dword [rbx + 0x5c], reloc.WLDAP32.dll_Ordinal_35
mov dword [rbx + 0x60], reloc.WLDAP32.dll_Ordinal_45
mov dword [rbx + 0x64], reloc.WLDAP32.dll_Ordinal_46
mov dword [rbx + 0x68], 8
mov dword [rbx + 0x6c], reloc.WLDAP32.dll_Ordinal_32
mov dword [rbx + 0x70], reloc.WS2_32.dll_listen
mov dword [rbx + 0x74], reloc.WLDAP32.dll_Ordinal_27
mov dword [rbx + 0x78], reloc.WS2_32.dll_listen
mov dword [rbx + 0x7c], 0x41
mov dword [rbx + 0x80], 0x43
mov dword [rbx + 0x84], 0x56
mov dword [rbx + 0x88], 0x58
mov dword [rbx + 0x8c], 0x59
mov dword [rbx + 0x90], 0x5a
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x58], rax
mov rbx, r15
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140008b2e
inc rbx
cmp rbx, 5
jl 0x140008b10
jmp 0x140008b5a
mov qword [rdi + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [0x140115890]
mov rbx, qword [0x140115960]
test rbx, rbx
je 0x140008b73
inc dword [rbx + 0x3b0]
mov ecx, Ordinal_41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140008ba2
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140008ba5
mov rax, r15
mov qword [rbx + 0xf0], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0xe0], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov r8d, 0x18b52
lea rdx, [0x1400fb820]
mov rcx, qword [0x140115890]
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory]
test eax, eax
jne 0x140008c10
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
xor edx, edx
call qword [rax + 0x88]
mov rax, qword [rsp + 0x30]
mov qword [0x140115ce8], rax
jmp 0x140008c2c
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Error
lea rdx, str.Texture_Error...
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x140115cd0], 0x2ee
mov dword [0x140115cd4], 0x1ae
mov rax, qword [0x140114420]
cmp rax, qword [0x140114428]
je 0x140008c57
mov qword [0x140114428], rax
xorps xmm0, xmm0
movsd xmm1, qword [0x1400cb520]
ucomisd xmm0, xmm1
ja 0x140008c6e
sqrtpd xmm0, xmm1
jmp 0x140008c76
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
cvttsd2si esi, xmm0
lea eax, [rsi + 0x4a]
cdq
idiv esi
mov r14d, eax
lea ecx, [rsi + 1]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss xmm9, dword [0x1400cb5b8]
divss xmm9, xmm0
lea ecx, [rax + 1]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss xmm10, dword [0x1400cb5a4]
divss xmm10, xmm0
mov edi, r15d
test eax, eax
jle 0x140008dd1
movss xmm7, dword [0x1400cb530]
nop word [rax + rax]
mov ebx, r15d
inc edi
test esi, esi
jle 0x140008dc8
movd xmm8, edi
cvtdq2ps xmm8, xmm8
mulss xmm8, xmm10
nop dword [rax + rax]
lea eax, [rbx + 1]
mov ebx, eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm9
movss dword [rsp + 0x38], xmm0
movss dword [rsp + 0x3c], xmm8
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x64
sub r8d, ecx
sub r8d, 0x32
movd xmm6, r8d
cvtdq2ps xmm6, xmm6
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x64
sub r8d, ecx
sub r8d, 0x32
movd xmm1, r8d
cvtdq2ps xmm1, xmm1
mov rax, qword [0x140115960]
mulss xmm1, dword [rax + 0x18]
mulss xmm1, xmm7
mulss xmm6, dword [rax + 0x18]
mulss xmm6, xmm7
movss dword [rsp + 0x40], xmm1
movss dword [rsp + 0x44], xmm6
mov rdx, qword [0x140114428]
cmp rdx, qword [0x140114430]
je 0x140008db6
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdx], xmm0
mov eax, dword [rsp + 0x48]
mov dword [rdx + 0x10], eax
add qword [0x140114428], 0x14
jmp 0x140008dc0
lea r8, [rsp + 0x38]
call fcn.14000e220
cmp ebx, esi
jl 0x140008cf0
cmp edi, r14d
jl 0x140008cd0
cmp dword [0x1400dd148], 0xffffffff
je 0x140008de3
cmp dword [0x1400dd160], 0xffffffff
jne 0x140008e02
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x1400dd148], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x1400dd160], eax
mov dword [0x1400dd15c], 0x40400000
mov dword [0x1400dd150], 0x40400000
mov byte [0x140115868], r15b
mov byte [0x140115869], 1
mov byte [reloc.WS2_32.dll_accept], 1
mov byte [reloc.WS2_32.dll_accept], 1
mov dword [0x140115864], r15d
mov dword [0x1400dd14c], 0xfa
mov dword [0x1400dd16c], 2
mov dword [reloc.WLDAP32.dll_Ordinal_30], 0x1e
mov dword [reloc.WLDAP32.dll_Ordinal_60], 0x3c
mov rcx, qword [rbp + 0x1390]
xor rcx, rsp
call fcn.1400b1f50
lea r11, [rsp + 0x14f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop rbp
ret