Function at 0x180041130
Capabilities:
Encode data using xor
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x18011c040]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor ebx, ebx
cmp dword [0x18011dd38], 0x14
jl 0x1800417c3
mov r8d, 0x104
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
lea rax, [rbp]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1800411b0
lea rdx, [rbp]
lea rcx, [rsp + 0x78]
call fcn.18001d4b0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov r8d, 0x1c
lea rdx, str.FortniteGameBinariesWin64
lea rcx, [rbp - 0x68]
call fcn.18001d4b0
nop
lea r13, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova r13, qword [rbp - 0x68]
mov r14, qword [rbp - 0x78]
lea r15, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova r15, qword [rsp + 0x78]
mov r12, qword [rbp - 0x58]
test r12, r12
jne 0x180041225
mov rdi, rsi
cmp r14, rsi
cmovb rdi, r14
jmp 0x18004126a
cmp r12, r14
ja 0x18004128d
mov rax, r14
sub rax, r12
mov rdi, rsi
cmp rax, rsi
cmovb rdi, rax
add rdi, r15
movzx eax, byte [r13]
cmp byte [rdi], al
jne 0x18004125d
mov r8, r12
mov rdx, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180041267
movzx eax, byte [r13]
cmp rdi, r15
je 0x18004128d
dec rdi
jmp 0x180041242
sub rdi, r15
cmp rdi, 0xffffffffffffffff
je 0x18004128d
mov qword [rsp + 0x20], 6
mov r8, r12
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.1800496e0
mov r14, qword [rbp - 0x78]
lea rcx, [rsp + 0x78]
mov r11, qword [rbp - 0x70]
cmp r11, 0xf
mov r10, qword [rsp + 0x78]
cmova rcx, r10
cmp r14, 1
jb 0x1800412db
lea rax, [r14 - 1]
mov r8, rsi
cmp rax, rsi
cmovb r8, rax
add r8, rcx
nop word [rax + rax]
cmp byte [r8], 0x5c
jne 0x1800412cc
mov eax, ebx
test ebx, ebx
je 0x1800412d6
cmp r8, rcx
je 0x1800412db
dec r8
jmp 0x1800412c0
sub r8, rcx
jmp 0x1800412de
mov r8, rsi
cmp r8, 0xffffffffffffffff
je 0x180041393
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
cmp r14, r8
cmovb r8, r14
lea rdx, [rsp + 0x78]
cmp r11, 0xf
cmova rdx, r10
lea rcx, [rsp + 0x50]
call fcn.18001d4b0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x180041356
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041351
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8ea0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x78], xmm1
movdqa xmm0, xmmword [0x180106330]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
call fcn.18001f9d0
mov r14, qword [rbp - 0x78]
mov r10, qword [rsp + 0x78]
mov r11, qword [rbp - 0x70]
mov eax, dword [0x1800fc478]
mov dword [rsp + 0x48], eax
movzx eax, word [0x1800fc47c]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x1800fc47e]
movsd xmm0, qword [str.exNUQZv._m__G]
mov byte [rsp + 0x4e], al
movsd qword [rsp + 0x40], xmm0
mov r8d, ebx
mov r15d, dword [0x18011c018]
cmp r15d, 2
jl 0x1800414da
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm2, xmmword [0x1801063b0]
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, xmmword [0x1801063f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180106490]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.9999999999999999]
movd xmm0, dword [str.exNUQZv._m__G]
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
movdqa xmm3, xmmword [0x1801063c0]
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, xmmword [0x1801063f0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180106490]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.9999999999999999]
movd xmm0, dword [rsp + 0x44]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
sub al, cl
add al, 0x39
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x1800414f0
lea rax, [rsp + 0x40]
mov rcx, rsi
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x180041530
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
sub rax, r14
cmp rax, rcx
jb 0x1800417fe
lea r9, [rsp + 0x78]
cmp r11, 0xf
cmova r9, r10
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea rcx, [rbp - 0x28]
call fcn.18001e460
nop
movups xmm0, xmmword [str.exNUQZv._]
movups xmmword [rsp + 0x50], xmm0
mov eax, dword [0x1800fc468]
mov dword [rsp + 0x60], eax
cmp byte [0x1800fc46b], 0
je 0x18004172e
cmp r15d, 2
jl 0x1800416ea
movdqa xmm5, xmmword [0x1801063b0]
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmm0, xmmword [str.9999999999999999]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
mov edx, dword [rsp + 0x40]
nop dword [rax]
movd xmm2, ebx
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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180106490]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 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
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180106490]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x1800415e0
cmp eax, 0x14
jge 0x18004172e
movsxd rax, ebx
lea r8, [rsp + 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, bl
sub al, cl
add al, 0x39
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x14
jl 0x180041700
lea rax, [rsp + 0x50]
inc rsi
cmp byte [rax + rsi], 0
jne 0x180041733
mov rax, qword [rbp - 0x78]
sub rdi, rax
cmp rdi, rsi
jb 0x1800417f8
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova r9, qword [rsp + 0x78]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x48]
call fcn.18001e460
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
lea rcx, [rbp - 0x48]
call fcn.18001f9d0
nop
lea rcx, [rbp - 0x28]
call fcn.18001f9d0
nop
lea rcx, [rbp - 0x68]
call fcn.18001f9d0
nop
lea rcx, [rsp + 0x78]
call fcn.18001f9d0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1800c8b10
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18001f7b0
nop
call fcn.18001f7b0
int3