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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
cmp edx, 1
jne 0x1800053bb
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 1
call fcn.180054190
mov qword [rbp + 7], rax
lea rcx, [rbp + 0x3f]
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 + 0x37], rax
test rax, rax
je 0x1800053ac
cmp dword [rbp + 0x3f], edi
je 0x1800053a0
movaps xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1800053a0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x37], xmm0
call fcn.180004850
test al, al
jne 0x180004c55
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 1
call fcn.180054190
mov qword [rbp + 7], rax
lea rcx, [rbp + 0x2f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x180005c90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
test rax, rax
je 0x180005391
cmp dword [rbp + 0x2f], 0
je 0x180005385
movaps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180005385
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x27], 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, [0x18005ecd4]
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 + 0x17], xmm0
mov qword [rbp + 0x17], rdi
mov dword [rbp + 0x1f], edi
lea rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x180004d3c
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.180005630
lea rdx, [0x180005810]
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 + 0x17]
jmp 0x180004d8a
lea rdx, [rbp + 0x1f]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rbp + 0x1f]
test r8d, r8d
jne 0x180004d79
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.180005630
lea rdx, [0x180005810]
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 + 0x1f]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x17], rax
test rax, rax
jne 0x180004da8
cmp dword [rbp + 0x2f], eax
jne 0x18000536d
cmp dword [rbp + 0x3f], eax
jne 0x18000537e
xor eax, eax
jmp 0x180005332
lea rcx, [rbp + 0x17]
call fcn.18004bf80
lea r8, [0x18006ce58]
mov edx, 1
lea rcx, [0x18006ce48]
call qword [sym.imp.jvm.dll_JNI_GetCreatedJavaVMs]
test eax, eax
jne 0x180005357
cmp dword [0x18006ce58], eax
je 0x180005357
mov rcx, qword [0x18006ce48]
mov rax, qword [rcx]
mov r9, qword [rax + 0x30]
mov r8d, 0x10006
lea rdx, [0x18006ce50]
call r9
mov dword [0x18006ce30], eax
cmp eax, 0xfffffffe
jne 0x180004e22
mov rcx, qword [0x18006ce48]
mov rax, qword [rcx]
mov r9, qword [rax + 0x20]
xor r8d, r8d
lea rdx, [0x18006ce50]
call r9
call fcn.18004e140
test rax, rax
je 0x180005311
mov rcx, qword [0x18006ce50]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov rdx, rax
mov qword [0x18006d318], rax
mov rcx, qword [0x18006ce50]
mov rax, qword [rcx]
mov r10, qword [rax + 0x108]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x180060624]
call r10
mov rbx, rax
call fcn.18004e140
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x18006ce50]
call fcn.1800406c0
mov qword [rbp + 7], rax
movdqa xmm0, xmmword [0x180061f20]
movdqu xmmword [rbp - 0x69], xmm0
movdqa xmm1, xmmword [0x180061f10]
movdqu xmmword [rbp - 0x59], xmm1
movdqa xmm0, xmmword [0x180061c30]
movdqu xmmword [rbp - 0x49], xmm0
mov dword [rbp - 0x39], 0x2fea2dec
mov dword [rbp - 0x35], 0x33f631e8
mov dword [rbp - 0x31], 0xf235f4
mov byte [rbp - 0x2d], 1
lea rcx, [rbp - 0x69]
call fcn.180005500
lea r8, [rbp - 0x2e]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x19]
call fcn.180005850
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.18004dec0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x180004f39
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004f34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004f34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800541cc
movdqa xmm0, xmmword [0x180061ef0]
movdqa xmmword [rbp - 0x69], xmm0
movdqa xmm1, xmmword [0x180061f00]
movdqa xmmword [rbp - 0x59], xmm1
movdqa xmm0, xmmword [0x180061f90]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [0x180061fa0]
movdqa xmmword [rbp - 0x39], xmm1
mov dword [rbp - 0x29], 0xf93cfb3a
mov dword [rbp - 0x25], 0x100c73e
mov rax, rdi
nop
lea ecx, [rax + 0x1b]
xor byte [rbp + rax - 0x69], cl
lea ecx, [rax + 0x1c]
xor byte [rbp + rax - 0x68], cl
lea ecx, [rax + 0x1d]
xor byte [rbp + rax - 0x67], cl
lea ecx, [rax + 0x1e]
xor byte [rbp + rax - 0x66], cl
lea ecx, [rax + 0x1f]
xor byte [rbp + rax - 0x65], cl
lea ecx, [rax + 0x20]
xor byte [rbp + rax - 0x64], cl
lea ecx, [rax + 0x21]
xor byte [rbp + rax - 0x63], cl
lea ecx, [rax + 0x22]
xor byte [rbp + rax - 0x62], cl
lea ecx, [rax + 0x23]
xor byte [rbp + rax - 0x61], cl
lea ecx, [rax + 0x24]
xor byte [rbp + rax - 0x60], cl
lea ecx, [rax + 0x25]
xor byte [rbp + rax - 0x5f], cl
lea ecx, [rax + 0x26]
xor byte [rbp + rax - 0x5e], cl
lea ecx, [rax + 0x27]
xor byte [rbp + rax - 0x5d], cl
lea ecx, [rax + 0x28]
xor byte [rbp + rax - 0x5c], cl
add rax, 0xe
cmp rax, 0x46
jb 0x180004f80
mov byte [rbp - 0x22], 0
lea r8, [rbp - 0x23]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x19]
call fcn.180005850
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.18004dec0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x18000504e
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005049
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005049
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800541cc
lea rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov r8, rax
test rax, rax
je 0x180005098
mov eax, dword [0x18005ed88]
mov dword [rbp + 7], eax
movzx ecx, byte [0x18005ed8c]
mov byte [rbp + 7], 0x4c
xor byte [rbp + 8], 0x34
xor byte [rbp + 9], 0x35
xor byte [rbp + 0xa], 0x36
xor cl, 0x37
mov byte [rbp + 0xb], cl
lea rdx, [rbp + 7]
mov rcx, r8
call qword [sym.imp.USER32.dll_SetWindowTextA]
cmp qword [0x18006d1d0], 0
jne 0x18000515e
mov ecx, 0x18
call fcn.180054190
mov rbx, rax
mov qword [rbp + 7], 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 0x1800050f6
xor edx, edx
lea rcx, str.GLFW30
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbx], rax
test rax, rax
je 0x180005157
lea r8, [0x18004abf0]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [0x18006d5b0], rax
call fcn.180050370
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 0x180005157
lea r8, [rbx + 0x10]
lea rdx, [0x18004aca0]
mov rcx, rax
call fcn.1800504a0
xor ecx, ecx
call fcn.180050980
mov qword [0x18006d1d0], rbx
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea rcx, str.OpenGL32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
test rbx, rbx
je 0x180005311
lea rdx, [0x18005ed20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006ce70], rax
test rax, rax
je 0x180005311
call fcn.180001fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002630
lea rdx, [0x180002f30]
lea rcx, [0x18006ce70]
call fcn.1800026d0
call fcn.1800020a0
lea rdx, [0x18005ed28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006ce68], rax
lea rdx, [0x18005ed38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006ce28], rax
lea rdx, str.wglSwapBuffers
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006ce60], rax
lea rdx, [0x18005ed20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006ce78], rax
lea rdx, str.glScalef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006ce38], rax
lea rdx, str.glTranslatef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006ce20], rax
call fcn.1800500f0
call fcn.180001fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002630
lea rdx, [0x180004420]
lea rcx, [0x18006ce68]
call fcn.1800026d0
lea rdx, [0x180004480]
lea rcx, [0x18006ce28]
call fcn.1800026d0
lea rdx, [0x180004020]
lea rcx, [0x18006ce78]
call fcn.1800026d0
lea rdx, [0x180003f90]
lea rcx, [0x18006ce60]
call fcn.1800026d0
lea rdx, [0x1800042a0]
lea rcx, [0x18006ce20]
call fcn.1800026d0
lea rdx, [0x180004370]
lea rcx, [0x18006ce38]
call fcn.1800026d0
call fcn.1800020a0
test eax, eax
sete dil
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x180005301
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp + 0x2f], 0
jne 0x18000536d
cmp dword [rbp + 0x3f], 0
jne 0x18000537e
mov eax, edi
jmp 0x180005332
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x180005321
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp + 0x2f], 0
jne 0x18000536d
cmp dword [rbp + 0x3f], 0
jne 0x18000537e
mov eax, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180054170
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x180005367
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp + 0x2f], 0
je 0x180005374
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp + 0x3f], 0
je 0x180004da1
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 + 0x2f], 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 + 0x3f], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
test edx, edx
jne 0x18000532d
call fcn.180001fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180002630
lea rdx, [0x180004420]
lea rcx, [0x18006ce68]
call fcn.180002a80
lea rdx, [0x180004480]
lea rcx, [0x18006ce28]
call fcn.180002a80
lea rdx, [0x180004020]
lea rcx, [0x18006ce78]
call fcn.180002a80
lea rdx, [0x180003f90]
lea rcx, [0x18006ce60]
call fcn.180002a80
lea rdx, [0x1800042a0]
lea rcx, [0x18006ce20]
call fcn.180002a80
lea rdx, [0x180004370]
lea rcx, [0x18006ce38]
call fcn.180002a80
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.1800020a0
test eax, eax
sete dil
mov eax, edi
jmp 0x180005332