Function at 0x180004ba0
Capabilities:
Create thread
Encode data using xor
Link many functions at runtime
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x18006d3c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
cmp edx, 1
jne 0x180005499
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 1
call fcn.180055050
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x180005bf0]
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 0x18000548a
cmp dword [rbp - 0x18], edi
je 0x18000547e
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18000547e
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
call fcn.180004850
test al, al
jne 0x180004c5c
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 1
call fcn.180055050
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x180005c40]
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 0x18000546f
cmp dword [rbp - 0x28], 0
je 0x180005463
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180005463
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
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, [0x18005fd1c]
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 [rbp - 0x40], xmm0
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x38], edi
lea rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x180004d43
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.180005710
lea rdx, [0x1800058f0]
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 [rbp - 0x40]
jmp 0x180004d91
lea rdx, [rbp - 0x38]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rbp - 0x38]
test r8d, r8d
jne 0x180004d80
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.180005710
lea rdx, [0x1800058f0]
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 [rbp - 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x180004daf
cmp dword [rbp - 0x28], eax
jne 0x18000544b
cmp dword [rbp - 0x18], eax
jne 0x18000545c
xor eax, eax
jmp 0x180005406
lea rcx, [rbp - 0x40]
call fcn.18004ce50
lea r8, [0x18006de78]
mov edx, 1
lea rcx, [0x18006de68]
call qword [sym.imp.jvm.dll_JNI_GetCreatedJavaVMs]
test eax, eax
jne 0x180005435
cmp dword [0x18006de78], eax
je 0x180005435
mov rcx, qword [0x18006de68]
mov rax, qword [rcx]
mov r9, qword [rax + 0x30]
mov r8d, 0x10006
lea rdx, [0x18006de70]
call r9
mov dword [0x18006de50], eax
cmp eax, 0xfffffffe
jne 0x180004e29
mov rcx, qword [0x18006de68]
mov rax, qword [rcx]
mov r9, qword [rax + 0x20]
xor r8d, r8d
lea rdx, [0x18006de70]
call r9
call fcn.18004f000
test rax, rax
je 0x1800053e5
mov rcx, qword [0x18006de70]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov rdx, rax
mov qword [0x18006e338], rax
mov rcx, qword [0x18006de70]
mov rax, qword [rcx]
mov r10, qword [rax + 0x108]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x1800616ac]
call r10
mov rbx, rax
call fcn.18004f000
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x18006de70]
call fcn.180040de0
mov qword [rbp - 0x50], rax
movdqa xmm0, xmmword [0x180063070]
movdqu xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x180062d40]
movdqu xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [0x180063000]
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0x68af6aad
mov dword [rsp + 0x64], 0x74b376b1
mov word [rsp + 0x68], 0xb5
mov byte [rsp + 0x6a], 1
lea rcx, [rsp + 0x30]
call fcn.1800055e0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov ecx, 0x40
call fcn.180055050
mov rcx, rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], 0x39
mov qword [rbp - 0x78], 0x3f
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x20], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rax + 0x30], xmm1
movzx eax, byte [rsp + 0x68]
mov byte [rcx + 0x38], al
mov byte [rcx + 0x39], 0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.18004ed90
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x180004f92
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004f8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004f8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005508c
lea rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov r9, rax
test rax, rax
je 0x18000516c
movups xmm0, xmmword [str.eC_I]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x18005fe10]
movups xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [0x18005fe20]
movups xmmword [rbp - 0x70], xmm0
movzx eax, word [0x18005fe30]
mov word [rbp - 0x60], ax
movzx eax, byte [0x18005fe32]
mov byte [rbp - 0x5e], al
mov ecx, edi
cmp dword [0x18006d428], 2
jl 0x18000511c
movdqa xmm5, xmmword [0x180062d10]
movdqa xmm4, xmmword [0x180063050]
movdqa xmm6, xmmword [str.3333]
movdqa xmm0, xmmword [str.6666666666666666]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rsp + 0x70]
mov r8d, dword [rbp - 0x50]
movdqa xmm7, xmmword [0x180062d30]
nop dword [rax]
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, 0x30
jl 0x180005030
cmp ecx, 0x33
jge 0x18000515e
movsxd rax, ecx
lea r8, [rsp + 0x70]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x33
jl 0x180005130
lea rdx, [rsp + 0x70]
mov rcx, r9
call qword [sym.imp.USER32.dll_SetWindowTextA]
cmp qword [0x18006e1f0], 0
jne 0x180005232
mov ecx, 0x18
call fcn.180055050
mov rbx, rax
mov qword [rbp - 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 0x1800051ca
xor edx, edx
lea rcx, str.GLFW30
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbx], rax
test rax, rax
je 0x18000522b
lea r8, [0x18004bac0]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [0x18006e5d0], rax
call fcn.180051230
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 0x18000522b
lea r8, [rbx + 0x10]
lea rdx, [0x18004bb70]
mov rcx, rax
call fcn.180051360
xor ecx, ecx
call fcn.180051840
mov qword [0x18006e1f0], 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 0x1800053e5
lea rdx, [0x18005fd68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006de90], rax
test rax, rax
je 0x1800053e5
call fcn.180001fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002630
lea rdx, [0x180002f30]
lea rcx, [0x18006de90]
call fcn.1800026d0
call fcn.1800020a0
lea rdx, [0x18005fd70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006de88], rax
lea rdx, [0x18005fd80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006de48], rax
lea rdx, str.wglSwapBuffers
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006de80], rax
lea rdx, [0x18005fd68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006de98], rax
lea rdx, str.glScalef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006de58], rax
lea rdx, str.glTranslatef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006de40], rax
call fcn.180050fb0
call fcn.180001fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002630
lea rdx, [0x180004420]
lea rcx, [0x18006de88]
call fcn.1800026d0
lea rdx, [0x180004480]
lea rcx, [0x18006de48]
call fcn.1800026d0
lea rdx, [0x180004020]
lea rcx, [0x18006de98]
call fcn.1800026d0
lea rdx, [0x180003f90]
lea rcx, [0x18006de80]
call fcn.1800026d0
lea rdx, [0x1800042a0]
lea rcx, [0x18006de40]
call fcn.1800026d0
lea rdx, [0x180004370]
lea rcx, [0x18006de58]
call fcn.1800026d0
call fcn.1800020a0
test eax, eax
sete dil
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1800053d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp - 0x28], 0
jne 0x18000544b
cmp dword [rbp - 0x18], 0
jne 0x18000545c
mov eax, edi
jmp 0x180005406
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1800053f5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp - 0x28], 0
jne 0x18000544b
cmp dword [rbp - 0x18], 0
jne 0x18000545c
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180055030
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180005445
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp - 0x28], 0
je 0x180005452
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x18], 0
je 0x180004da8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, 1
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, 1
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
test edx, edx
jne 0x180005401
call fcn.180001fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002630
lea rdx, [0x180004420]
lea rcx, [0x18006de88]
call fcn.180002a80
lea rdx, [0x180004480]
lea rcx, [0x18006de48]
call fcn.180002a80
lea rdx, [0x180004020]
lea rcx, [0x18006de98]
call fcn.180002a80
lea rdx, [0x180003f90]
lea rcx, [0x18006de80]
call fcn.180002a80
lea rdx, [0x1800042a0]
lea rcx, [0x18006de40]
call fcn.180002a80
lea rdx, [0x180004370]
lea rcx, [0x18006de58]
call fcn.180002a80
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.1800020a0
test eax, eax
sete dil
mov eax, edi
jmp 0x180005406