Function at 0x18001ce80
Capabilities:
Create thread
Encode data using xor
Generate random numbers using a mersenne twister

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
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.180062ed0
sub rsp, rax
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rbp + 0x13b0], rax
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], 0xa
mov qword [rbp + 0x10], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Capitalism]
movsd qword [rbp - 8], xmm0
movzx eax, word [0x18006d3b0]
mov word [rbp], ax
mov byte [rbp + 2], r15b
lea r8, [0x180098bd0]
mov edx, 3
lea rcx, [rbp - 8]
call fcn.18000d990
call fcn.1800328a0
lea rcx, [rbp - 8]
test al, al
je 0x18001d945
lea rdx, [0x180098c10]
call fcn.180023510
mov rcx, rax
call fcn.18001b4d0
mov ecx, 0x20
call fcn.18006243c
mov rsi, rax
mov qword [rsp + 0x70], rax
movdqa xmm0, xmmword [0x180073c40]
movdqu xmmword [rax], xmm0
movdqa xmm1, xmmword [0x180074670]
movdqu xmmword [rax + 0x10], xmm1
mov r12d, 1
mov ecx, r12d
call fcn.18006243c
mov r14, rax
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x60]
call fcn.1800079e0
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x18001cfb2
mov edi, 0xffffffff
mov ecx, edi
lock xadd dword [rdx + 8], ecx
cmp ecx, r12d
jne 0x18001cfb2
mov rbx, qword [rbp - 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, r12d
jne 0x18001cfb2
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + htons]
nop
mov rdx, qword [0x180098d00]
mov qword [0x180098d00], r14
test rdx, rdx
je 0x18001cfcb
call fcn.1800273e0
nop
mov qword [0x180324990], rsi
mov dil, 1
call fcn.180008400
test al, al
je 0x18001d155
mov ecx, reloc.WS2_32.dll_recv
call fcn.18006243c
mov rbx, rax
mov qword [rbp - 0x50], rax
lea rsi, vtable.VFTHookTemplate_struct_EntryHook_.0
mov qword [rax], rsi
mov qword [rax + 8], r15
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r15
mov ecx, 0x20
call fcn.18006243c
mov qword [rbp - 8], rax
mov qword [rbp + 8], reloc.WS2_32.dll_setsockopt
mov qword [rbp + 0x10], 0x1f
movups xmm0, xmmword [str.CS::NoUpdateInterface]
movups xmmword [rax], xmm0
mov ecx, dword [0x18006d428]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x18006d42c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea rcx, [rbp - 8]
call fcn.180008970
test rax, rax
je 0x18001d069
mov rdx, qword [rax]
mov rcx, rbx
call fcn.18003fee0
nop
mov qword [rsp + 0x70], rbx
mov rdx, qword [0x1803248c8]
cmp rdx, qword [0x1803248d0]
je 0x18001d08b
mov qword [rdx], rbx
add qword [0x1803248c8], 8
jmp 0x18001d09c
lea r8, [rsp + 0x70]
lea rcx, [0x1803248c0]
call fcn.1800407e0
mov ecx, reloc.WS2_32.dll_recv
call fcn.18006243c
mov rbx, rax
mov qword [rbp - 0x50], rax
mov qword [rax], rsi
mov qword [rax + 8], r15
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r15
mov ecx, 0x20
call fcn.18006243c
mov qword [rbp - 8], rax
mov qword [rbp + 8], 0x19
mov qword [rbp + 0x10], 0x1f
movups xmm0, xmmword [str.CS::CSBehCharaProxyDriver]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x18006d440]
movsd qword [rax + 0x10], xmm0
movzx ecx, byte [0x18006d448]
mov byte [rax + 0x18], cl
mov byte [rax + 0x19], 0
lea rcx, [rbp - 8]
call fcn.180008970
test rax, rax
je 0x18001d120
mov rdx, qword [rax]
mov rcx, rbx
call fcn.1800400e0
nop
mov qword [rsp + 0x70], rbx
mov rdx, qword [0x1803248c8]
cmp rdx, qword [0x1803248d0]
je 0x18001d142
mov qword [rdx], rbx
add qword [0x1803248c8], 8
jmp 0x18001d158
lea r8, [rsp + 0x70]
lea rcx, [0x1803248c0]
call fcn.1800407e0
jmp 0x18001d158
xor dil, dil
mov rbx, r15
xor eax, eax
lock cmpxchg dword [0x180324898], r12d
je 0x18001d18b
cmp rbx, 0x20
jae 0x18001d172
xor ecx, ecx
jmp 0x18001d175
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180324898], r12d
jne 0x18001d168
cmp qword [0x1803248a0], 0
jne 0x18001d1a9
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1803248a0], rax
mov eax, r15d
xchg dword [0x180324898], eax
lea r8, [0x180324998]
lea rdx, [0x180018df0]
mov rcx, qword [0x180324aa8]
call fcn.180055e50
movzx r14d, dil
test eax, eax
cmovne r14d, r15d
lea r8, [0x1803249b8]
lea rdx, [0x180018f30]
mov rcx, qword [0x180324ad0]
call fcn.180055e50
mov esi, eax
lea r8, [0x1803249b0]
lea rdx, [0x180018fe0]
mov rcx, qword [0x180324a88]
call fcn.180055e50
mov edi, eax
lea r8, [0x1803249a8]
lea rdx, [0x18001adf0]
mov rcx, qword [0x180324a68]
call fcn.180055e50
mov ebx, eax
call fcn.180056140
mov edx, r15d
movzx ecx, r14b
test esi, esi
cmove edx, ecx
mov r8d, r15d
movzx ecx, dl
test edi, edi
cmove r8d, ecx
xor edi, edi
mov edx, edi
movzx ecx, r8b
test ebx, ebx
cmove edx, ecx
test dl, dl
je 0x18001d963
lea rcx, [rbp - 0x50]
call fcn.180006cc0
mov rax, qword [rax]
mov dword [rbp + 0x13a4], 0xffffffff
mov dword [rbp + 0x24], eax
mov r8, r12
nop dword [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rbp + r8*4 + 0x24], eax
inc r8
cmp r8, 0x270
jb 0x18001d280
mov dword [rbp + 0x20], 0x270
mov r8d, 0x1388
lea rdx, [rbp + 0x20]
lea rcx, [0x180097030]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, reloc.WS2_32.dll_recv
call fcn.18006243c
lea rcx, [fcn.18001b1a0]
mov qword [rax], rcx
lea rcx, [0x18000d4e0]
mov qword [rax + 8], rcx
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x180047a70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x18001d900
cmp dword [rbp - 0x18], 0
je 0x18001d8f6
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18001d8f6
xorps xmm0, xmm0
movaps xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov ecx, 0x30
call fcn.18006243c
mov rbx, rax
mov qword [rbp - 0x50], rax
lea rdx, [0x180098c10]
mov rcx, rax
call fcn.180023510
lea rax, [fcn.18001b4d0]
mov qword [rbx + 0x20], rax
lea rax, [0x18000ed90]
mov qword [rbx + 0x28], rax
mov qword [rbp - 0x50], rbx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x180047aa0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x18001d8e7
cmp dword [rbp - 0x28], 0
je 0x18001d8dd
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18001d8dd
xorps xmm0, xmm0
movaps xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov ecx, 0x50
call fcn.18006243c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x70], rax
lea rax, str.wOF2
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0xa748
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], rdi
mov ecx, 0x20
call fcn.18006243c
mov qword [rbp - 8], rax
mov qword [rbp + 8], 0x18
mov qword [rbp + 0x10], 0x1f
movups xmm0, xmmword [str.AgmenaW1GForBandai.woff2]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x18006d488]
movsd qword [rax + 0x10], xmm0
mov byte [rax + 0x18], 0
mov r13, qword [rbp - 0x70]
mov qword [rsp + 0x70], r13
mov rbx, qword [r13 + 8]
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x40], edi
mov r14, r13
mov r15, qword [rbp + 0x10]
mov rsi, qword [rbp + 8]
mov r12, qword [rbp - 8]
cmp byte [rbx + 0x19], 0
jne 0x18001d4e4
xor r13d, r13d
nop word [rax + rax]
mov qword [rbp - 0x48], rbx
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 8]
cmp r15, 0xf
cmova rdx, r12
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x18001d4b2
mov rcx, qword [rcx]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001d530
cmp rdi, rsi
jb 0x18001d532
mov dword [rbp - 0x40], 1
mov r14, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r13b
je 0x18001d490
mov r13, qword [rsp + 0x70]
xor edi, edi
movabs rax, 0x333333333333333
cmp byte [r14 + 0x19], 0
jne 0x18001d54c
lea rdx, [r14 + 0x20]
mov rbx, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x18001d507
mov rdx, qword [rdx]
lea rcx, [rbp - 8]
cmp r15, 0xf
cmova rcx, r12
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001d53c
cmp rsi, rbx
jb 0x18001d542
jmp 0x18001d5cc
jns 0x18001d4ca
mov dword [rbp - 0x40], r13d
mov rbx, qword [rbx + 0x10]
jmp 0x18001d4d7
jns 0x18001d5cc
movabs rax, 0x333333333333333
cmp qword [rbp - 0x68], rax
je 0x18001d985
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdi
mov ecx, 0x50
call fcn.18006243c
mov qword [rbp - 0x78], rax
mov qword [rax + 0x30], rdi
mov qword [rax + 0x38], rdi
movups xmm0, xmmword [rbp - 8]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp + 8]
movups xmmword [rax + 0x30], xmm1
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 8], 0
mov qword [rax + 0x40], rdi
mov qword [rax + 0x48], rdi
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov word [rax + 0x18], 0
movups xmm0, xmmword [rbp - 0x48]
movaps xmmword [rbp - 0x80], xmm0
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.180037b70
mov r14, rax
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [r14 + 0x40], xmm0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x18001d613
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d60e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d60e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062350
lea rax, [0x18008e8a0]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x84d9
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov r12d, ntohs
mov qword [rbp + 8], r12
mov r13d, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x10], r13
movsd xmm0, qword [str.runebox.png]
movsd qword [rbp - 8], xmm0
movzx eax, word [0x18006d4a0]
mov word [rbp], ax
movzx eax, byte [0x18006d4a2]
mov byte [rbp + 2], al
mov byte [rbp + 3], 0
mov r15, qword [rbp - 0x70]
mov qword [rsp + 0x70], r15
mov rbx, qword [r15 + 8]
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x40], edi
mov rsi, r15
cmp byte [rbx + 0x19], 0
jne 0x18001d6dc
xor r15d, r15d
nop word [rax + rax]
mov qword [rbp - 0x48], rbx
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 8]
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x18001d6aa
mov rcx, qword [rcx]
mov r8, rdi
cmp r12, rdi
cmovb r8, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001d715
cmp rdi, r12
jb 0x18001d717
mov dword [rbp - 0x40], 1
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r15b
je 0x18001d690
mov r15, qword [rsp + 0x70]
xor edi, edi
cmp byte [rsi + 0x19], 0
jne 0x18001d727
lea rdx, [rsi + 0x20]
mov rbx, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x18001d6f4
mov rdx, qword [rdx]
lea rcx, [rbp - 8]
mov r8, r12
cmp rbx, r12
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001d721
cmp r12, rbx
jb 0x18001d727
jmp 0x18001d7ad
jns 0x18001d6c2
mov dword [rbp - 0x40], r15d
mov rbx, qword [rbx + 0x10]
jmp 0x18001d6cf
jns 0x18001d7ad
movabs rax, 0x333333333333333
cmp qword [rbp - 0x68], rax
je 0x18001d93f
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdi
mov ecx, 0x50
call fcn.18006243c
mov qword [rbp - 0x78], rax
mov qword [rax + 0x30], rdi
mov qword [rax + 0x38], rdi
movups xmm0, xmmword [rbp - 8]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp + 8]
movups xmmword [rax + 0x30], xmm1
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], r13
mov byte [rbp - 8], 0
mov qword [rax + 0x40], rdi
mov qword [rax + 0x48], rdi
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov word [rax + 0x18], 0
movups xmm0, xmmword [rbp - 0x48]
movaps xmmword [rbp - 0x80], xmm0
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.180037b70
mov rsi, rax
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rsi + 0x40], xmm0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x18001d7f3
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d7ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d7ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062350
lea rax, [rbp - 0x60]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rdi
mov ecx, 0x50
call fcn.18006243c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x70], rax
mov rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x68], rcx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov rax, qword [0x1803248e0]
test rax, rax
je 0x18001d85b
lock inc dword [rax + 8]
movups xmm0, xmmword [0x1803248d8]
movups xmmword [rbp - 0x80], xmm0
lea rdx, [0x180098bd0]
lea rcx, [rbp - 8]
call fcn.180023510
nop
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.180018a10
movzx eax, byte [0x18032467d]
test al, al
je 0x18001d89f
lea rcx, str.Created_by_thefifthmatt_n
call fcn.18000bc30
nop
mov r8, qword [rbp - 0x70]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.1800402e0
mov edx, 0x50
mov rcx, qword [rbp - 0x70]
call fcn.180062350
nop
cmp dword [rbp - 0x28], 0
je 0x18001d8d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x18], 0
je 0x18001d90f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, r12d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x28], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, r12d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x18], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rbp + 0x13b0]
xor rcx, rsp
call fcn.180062330
lea r11, [rsp + 0x14c0]
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
call fcn.18000bf70
nop
lea rdx, str.Required_addresses_not_found_in_this_version_of_Elden_Ring._See_logs_for_details
call fcn.1800234d0
nop
lea rdx, [0x180098bf0]
lea rcx, [rbp - 8]
call fcn.18000d8d0
nop
lea rdx, str.Could_not_hook_required_functions
lea rcx, [rbp - 8]
call fcn.1800234d0
nop
lea rdx, [0x180098bf0]
lea rcx, [rbp - 8]
call fcn.18000d8d0
nop
call fcn.18000bf70
int3