Function at 0x180040bf0
Capabilities:
Encode data using xor
Move file
Set console window title

Disassembly:
push rbx
sub rsp, 0xb0
call fcn.1800375a0
test al, al
jne 0x180040ddb
lea rdx, [rsp + 0x50]
call fcn.180040f50
mov r9, rax
cmp byte [rax + 0x4a], 0
je 0x180040dbd
xor ebx, ebx
cmp dword [0x180121018], 2
jl 0x180040d7c
movdqa xmm0, xmmword [str.7777777777777777]
mov rcx, rax
movdqa xmm5, xmmword [0x18010ac80]
movdqa xmm4, xmmword [0x18010ae60]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movaps xmmword [rsp + 0xa0], xmm6
movdqa xmm6, xmmword [0x18010aca0]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 8], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
cmp ebx, 0x48
jl 0x180040c70
movaps xmm6, xmmword [rsp + 0xa0]
cmp eax, 0x4b
jge 0x180040dbd
movsxd r8, ebx
add r8, r9
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
inc ebx
sub al, cl
add al, 0x37
xor byte [r8 - 1], al
cmp ebx, 0x4b
jl 0x180040d90
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.18001cdd0
mov dl, 1
mov rcx, rax
call fcn.18008f2f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xd0], rdi
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800ffd6c]
mov rcx, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov esi, 1
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800ffd6c]
mov rcx, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str._________________________________________________________________________________________________________________________________________________________________________________________n______________________________________________________________________n________________________________________________________________n________________________________________________________________n____________________________________________________n________________________________________________n___________________________________________________n_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________n__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________n___Cranium_v1.7_Beta_Owned_by_Kemo__xkem0x___Maintained_by_Timmy__mawmet__PeQu__ImPeQu__GD__GDBOI101__notkrae__notkrae_and_CoolNite__CoolNite2__n_n
lea rdx, [0x1800ffc98]
call fcn.18004a040
cmp qword [0x180123e48], 0xf
lea rcx, [0x180123e30]
cmova rcx, qword [0x180123e30]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor ebx, ebx
mov edi, ebx
xor eax, eax
lock cmpxchg dword [0x180122e30], esi
je 0x180040ec3
cmp rdi, 0x20
jae 0x180040eac
xor ecx, ecx
jmp 0x180040eae
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
xor eax, eax
lock cmpxchg dword [0x180122e30], esi
jne 0x180040ea2
cmp qword [0x180122e38], rbx
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xc8]
jne 0x180040f12
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180122e38], rax
xchg dword [0x180122e30], ebx
test rax, rax
je 0x180040f18
call fcn.1800240f0
call fcn.18003e4d0
add rsp, 0xb0
pop rbx
jmp 0x1800410c0
xchg dword [0x180122e30], ebx
mov r9d, 0x10
lea r8, str.CraniumV1
lea rdx, str.Failed_to_initialize_min_hook__terminating_the_thread.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
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 - 0x110]
sub rsp, 0x210
mov rax, qword [0x180121040]
xor rax, rsp
mov qword [rbp + 0x100], rax
cmp dword [0x180122c98], 0x14
jl 0x180041413
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], 0
mov qword [rbp - 0x80], 0
lea rax, [rbp - 0x10]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180041140
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x68]
call fcn.18001ae00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x60], 0
mov r8d, 0x1c
lea rdx, str.FortniteGameBinariesWin64
lea rcx, [rbp - 0x78]
call fcn.18001ae00
nop
lea r12, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova r12, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x78]
lea rsi, [rsp + 0x68]
mov r13, qword [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rsi, r13
mov r14, qword [rbp - 0x68]
test r14, r14
jne 0x1800411c6
mov rbx, 0xffffffffffffffff
cmp rdi, rbx
cmovb rbx, rdi
jmp 0x18004120b
cmp r14, rdi
ja 0x180041234
mov rax, rdi
sub rax, r14
mov rbx, 0xffffffffffffffff
cmp rax, rbx
cmovb rbx, rax
add rbx, rsi
movzx r15d, byte [r12]
cmp byte [rbx], r15b
jne 0x1800411fe
mov r8, r14
mov rdx, r12
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180041208
cmp rbx, rsi
je 0x180041234
dec rbx
jmp 0x1800411e7
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x180041234
mov qword [rsp + 0x20], 6
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.180049e80
mov rdi, qword [rsp + 0x78]
mov r13, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
mov r10, qword [rbp - 0x80]
cmp r10, 0xf
cmova rcx, r13
cmp rdi, 1
jb 0x18004127b
lea rax, [rdi - 1]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
add r8, rcx
cmp byte [r8], 0x5c
jne 0x18004126c
xor eax, eax
test eax, eax
je 0x180041276
cmp r8, rcx
je 0x18004127b
dec r8
jmp 0x180041260
sub r8, rcx
jmp 0x180041282
mov r8, 0xffffffffffffffff
cmp r8, 0xffffffffffffffff
je 0x180041339
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x68]
cmp r10, 0xf
cmova rdx, r13
lea rcx, [rsp + 0x48]
call fcn.18001ae00
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1800412fa
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800412f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800412f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800cc948
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x78], xmm1
movdqa xmm0, xmmword [0x18010ac10]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
call fcn.18001ce20
mov rdi, qword [rsp + 0x78]
mov r13, qword [rsp + 0x68]
mov r10, qword [rbp - 0x80]
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rdi
cmp rax, 0xe
jb 0x180041449
lea r9, [rsp + 0x68]
cmp r10, 0xf
cmova r9, r13
mov qword [rsp + 0x30], 0xe
lea rax, str.BuildInfo.ini
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea rcx, [rbp - 0x38]
call fcn.18001c1d0
nop
mov rax, qword [rsp + 0x78]
sub rbx, rax
cmp rbx, 0x13
jb 0x180041443
lea r9, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova r9, qword [rsp + 0x68]
mov qword [rsp + 0x30], socket
lea rcx, str.BuildInfo_Temp.ini
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x58]
call fcn.18001c1d0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
lea rcx, [rbp - 0x58]
call fcn.18001ce20
nop
lea rcx, [rbp - 0x38]
call fcn.18001ce20
nop
lea rcx, [rbp - 0x78]
call fcn.18001ce20
nop
lea rcx, [rsp + 0x68]
call fcn.18001ce20
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1800cc550
lea r11, [rsp + 0x210]
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.18001cf10
nop
call fcn.18001cf10
int3