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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rbp - 0x30], rax
cmp edx, 1
jne 0x1800049e1
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, [0x18005ec54]
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 - 0x58], xmm0
xor edi, edi
mov qword [rbp - 0x58], rdi
mov dword [rbp - 0x50], edi
lea rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x180004315
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.180004cc0
lea rdx, [0x180004e90]
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 - 0x58]
jmp 0x180004363
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rbp - 0x50]
test r8d, r8d
jne 0x180004352
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.180004cc0
lea rdx, [0x180004e90]
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 - 0x50]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x58], rax
test rax, rax
je 0x180004987
lea rcx, [rbp - 0x58]
call fcn.18004b7f0
lea r8, [0x18006bde0]
mov edx, 1
lea rcx, [0x18006bdd0]
call qword [sym.imp.jvm.dll_JNI_GetCreatedJavaVMs]
test eax, eax
jne 0x180004983
cmp dword [0x18006bde0], eax
je 0x180004983
mov rcx, qword [0x18006bdd0]
mov rax, qword [rcx]
mov r9, qword [rax + 0x30]
mov r8d, 0x10006
lea rdx, [0x18006bdd8]
call r9
mov dword [0x18006bdac], eax
cmp eax, 0xfffffffe
jne 0x1800043e6
mov rcx, qword [0x18006bdd0]
mov rax, qword [rcx]
mov r9, qword [rax + 0x20]
xor r8d, r8d
lea rdx, [0x18006bdd8]
call r9
call fcn.18004d8f0
test rax, rax
je 0x180004999
mov rcx, qword [0x18006bdd8]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov rdx, rax
mov qword [0x18006c2a8], rax
mov rcx, qword [0x18006bdd8]
mov rax, qword [rcx]
mov r10, qword [rax + 0x108]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x1800605ec]
call r10
mov rbx, rax
call fcn.18004d8f0
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x18006bdd8]
call fcn.18003f890
mov qword [rbp - 0x40], rax
movdqa xmm0, xmmword [0x180061c70]
movdqu xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x180061fa0]
movdqu xmmword [rsp + 0x78], xmm1
movdqa xmm0, xmmword [0x180061c80]
movdqu xmmword [rbp - 0x78], xmm0
mov dword [rbp - 0x68], 0x28ef2aed
mov dword [rbp - 0x64], 0x34f336f1
mov word [rbp - 0x60], 0xf5
mov byte [rbp - 0x5e], 1
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx + 0x5c]
xor byte [rsp + rcx + 0x68], al
inc rcx
cmp rcx, 0x39
jb 0x1800044a0
mov byte [rbp - 0x5e], 0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov r8d, 0x39
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.180004b30
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x40]
call fcn.18004d680
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180004531
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000452c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000452c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800539cc
lea rdx, str.CraftRise
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov r9, rax
test rax, rax
je 0x18000472a
movups xmm0, xmmword [str.__PF]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [0x18005ed18]
movups xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [0x18005ed28]
movups xmmword [rsp + 0x50], xmm0
movzx eax, word [0x18005ed38]
mov word [rsp + 0x60], ax
movzx eax, byte [0x18005ed3a]
mov byte [rsp + 0x62], al
mov ecx, edi
cmp dword [0x18006b3d0], 2
jl 0x1800046e4
movdqa xmm5, xmmword [0x180061c40]
movdqa xmm4, xmmword [0x180061f40]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [str.5555]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x180061c90]
movdqa xmmword [rbp - 0x40], xmm0
lea rdx, [rsp + 0x30]
mov r8d, dword [rbp - 0x40]
nop word [rax + 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
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180061c60]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor 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
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180061c60]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx + 4]
pxor xmm2, xmm0
movd dword [rdx + 4], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x30
jl 0x1800045e0
cmp ecx, 0x33
jge 0x18000471c
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x33
jl 0x1800046f0
lea rdx, [rsp + 0x30]
mov rcx, r9
call qword [sym.imp.USER32.dll_SetWindowTextA]
cmp qword [0x18006c160], 0
jne 0x1800047f0
mov ecx, 0x18
call fcn.180053990
mov rbx, rax
mov qword [rbp - 0x40], 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 0x180004783
xor edx, edx
lea rcx, str.GLFW30
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbx], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800047e9
lea r8, [0x18004a220]
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [0x18006c5a0], rax
call fcn.18004fb70
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 0x1800047e9
lea r8, [rbx + 0x10]
lea rdx, [0x18004a3a0]
mov rcx, rax
call fcn.18004fca0
xor ecx, ecx
call fcn.180050180
mov qword [0x18006c160], 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 0x180004999
lea rdx, [0x18005eca0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006bdf8], rax
test rax, rax
je 0x180004999
call fcn.180001e20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800024a0
lea rdx, [0x180002d40]
lea rcx, [0x18006bdf8]
call fcn.180002540
call fcn.180001f00
lea rdx, [0x18005eca8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006bdf0], rax
lea rdx, [0x18005ecb8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006bdb8], rax
lea rdx, str.wglSwapBuffers
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006bde8], rax
lea rdx, [0x18005eca0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006be08], rax
lea rdx, str.glScalef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006bdc0], rax
lea rdx, str.glTranslatef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006bdb0], rax
call fcn.18004f8f0
call fcn.180001e20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800024a0
lea rdx, [0x180004180]
lea rcx, [0x18006bdf0]
call fcn.180002540
lea rdx, [0x1800041e0]
lea rcx, [0x18006bdb8]
call fcn.180002540
lea rdx, [0x180003de0]
lea rcx, [0x18006be08]
call fcn.180002540
lea rdx, [0x180003d50]
lea rcx, [0x18006bde8]
call fcn.180002540
lea rdx, [0x180004000]
lea rcx, [0x18006bdb0]
call fcn.180002540
lea rdx, [0x1800040d0]
lea rcx, [0x18006bdc0]
call fcn.180002540
call fcn.180001f00
test eax, eax
sete dil
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x180004995
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1800049ad
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1800049a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp - 0x30]
xor rcx, rsp
call fcn.180053970
lea r11, [rsp + 0x110]
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]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret
test edx, edx
jne 0x1800049a8
call fcn.180001e20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800024a0
lea rdx, [0x180004180]
lea rcx, [0x18006bdf0]
call fcn.1800028b0
lea rdx, [0x1800041e0]
lea rcx, [0x18006bdb8]
call fcn.1800028b0
lea rdx, [0x180003de0]
lea rcx, [0x18006be08]
call fcn.1800028b0
lea rdx, [0x180003d50]
lea rcx, [0x18006bde8]
call fcn.1800028b0
lea rdx, [0x180004000]
lea rcx, [0x18006bdb0]
call fcn.1800028b0
lea rdx, [0x1800040d0]
lea rcx, [0x18006bdc0]
call fcn.1800028b0
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.180001f00
xor edi, edi
test eax, eax
sete dil
mov eax, edi
jmp 0x1800049ad