Function at 0x180004890
Capabilities:
Encode data using xor
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0xa0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x18002b3c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp edx, 1
jne 0x180004f10
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x180023f6c]
lea rdx, str.CONOUT_
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor edi, edi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], edi
lea rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x18000494d
lea rdx, str.Failed_to_get_window
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180010e60
lea rdx, [0x180011040]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [rsp + 0x60]
jmp 0x18000499f
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x68]
test r8d, r8d
jne 0x18000498d
lea rdx, str.Failed_to_get_process_ID
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180010e60
lea rdx, [0x180011040]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x180004ebd
lea rcx, [rsp + 0x60]
call fcn.180012d80
lea r8, [0x18002be18]
mov edx, 1
lea rcx, [0x18002be08]
call qword [sym.imp.jvm.dll_JNI_GetCreatedJavaVMs]
test eax, eax
jne 0x180004eb8
cmp dword [0x18002be18], eax
je 0x180004eb8
mov rcx, qword [0x18002be08]
mov rax, qword [rcx]
mov r9, qword [rax + 0x30]
mov r8d, 0x10006
lea rdx, [0x18002be10]
call r9
mov dword [0x18002bdf0], eax
cmp eax, 0xfffffffe
jne 0x180004a23
mov rcx, qword [0x18002be08]
mov rax, qword [rcx]
mov r9, qword [rax + 0x20]
xor r8d, r8d
lea rdx, [0x18002be10]
call r9
call fcn.180014f30
test rax, rax
je 0x180004ecf
mov rcx, qword [0x18002be10]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov rdx, rax
mov qword [0x18002c2c8], rax
mov rcx, qword [0x18002be10]
mov rax, qword [rcx]
mov r10, qword [rax + 0x108]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x18002495c]
call r10
mov rbx, rax
call fcn.180014f30
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x18002be10]
call fcn.18000bfd0
lea rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov r9, rax
test rax, rax
je 0x180004c5e
movups xmm0, xmmword [str.t_OTX]
movups xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [0x180024030]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x180024038]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x18002403c]
mov byte [rsp + 0x4c], al
mov ecx, edi
cmp dword [0x18002b428], 2
jl 0x180004c0c
movdqa xmm5, xmmword [0x1800255d0]
movdqa xmm4, xmmword [0x1800258b0]
movdqa xmm6, xmmword [str.9999]
movdqa xmm0, xmmword [0x180025600]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x30]
movdqa xmm7, xmmword [0x1800255f0]
mov r8d, dword [rsp + 0x50]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, r8d
paddb xmm3, xmm0
movd xmm0, dword [rdx + 4]
xorps xmm3, xmm0
movd dword [rdx + 4], xmm3
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x180004b20
cmp ecx, 0x1d
jge 0x180004c50
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1d
jl 0x180004c20
lea rdx, [rsp + 0x30]
mov rcx, r9
call qword [sym.imp.USER32.dll_SetWindowTextA]
cmp qword [0x18002c180], 0
jne 0x180004d25
mov ecx, 0x18
call fcn.18001af80
mov rbx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
xor edx, edx
lea rcx, str.LWJGL
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbx], rax
test rax, rax
jne 0x180004cbd
xor edx, edx
lea rcx, str.GLFW30
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbx], rax
test rax, rax
je 0x180004d1e
lea r8, [0x180011a00]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [0x18002c518], rax
call fcn.180017160
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.wglSwapBuffers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
test rax, rax
je 0x180004d1e
lea r8, [rbx + 0x10]
lea rdx, [0x180011ab0]
mov rcx, rax
call fcn.180017290
xor ecx, ecx
call fcn.180017770
mov qword [0x18002c180], rbx
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
lea rcx, str.OpenGL32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rsi, rsi
je 0x180004ecf
lea rdx, [0x180023fb8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002be30], rax
test rax, rax
je 0x180004ecf
call fcn.180001fb0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002620
lea rdx, [0x180002ee0]
lea rcx, [0x18002be30]
call fcn.1800026c0
call fcn.180002090
lea rdx, [0x180023fc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002be28], rax
lea rdx, [0x180023fd0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002bde8], rax
lea rdx, str.wglSwapBuffers
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002be20], rax
lea rdx, [0x180023fb8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002be38], rax
lea rdx, str.glScalef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002bdf8], rax
lea rdx, str.glTranslatef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002bdd8], rax
call fcn.180016ee0
call fcn.180001fb0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002620
lea rdx, [0x1800047c0]
lea rcx, [0x18002be28]
call fcn.1800026c0
lea rdx, [0x180004820]
lea rcx, [0x18002bde8]
call fcn.1800026c0
lea rdx, [0x1800043c0]
lea rcx, [0x18002be38]
call fcn.1800026c0
lea rdx, [0x180004330]
lea rcx, [0x18002be20]
call fcn.1800026c0
lea rdx, [0x180004640]
lea rcx, [0x18002bdd8]
call fcn.1800026c0
lea rdx, [0x180004710]
lea rcx, [0x18002bdf8]
call fcn.1800026c0
call fcn.180002090
test eax, eax
sete dil
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x180004ecb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180004ee4
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180004edf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18001af60
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rdi
ret
test edx, edx
jne 0x180004edf
call fcn.180001fb0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002620
lea rdx, [0x1800047c0]
lea rcx, [0x18002be28]
call fcn.180002a70
lea rdx, [0x180004820]
lea rcx, [0x18002bde8]
call fcn.180002a70
lea rdx, [0x1800043c0]
lea rcx, [0x18002be38]
call fcn.180002a70
lea rdx, [0x180004330]
lea rcx, [0x18002be20]
call fcn.180002a70
lea rdx, [0x180004640]
lea rcx, [0x18002bdd8]
call fcn.180002a70
lea rdx, [0x180004710]
lea rcx, [0x18002bdf8]
call fcn.180002a70
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.180002090
xor edi, edi
test eax, eax
sete dil
mov eax, edi
jmp 0x180004ee4