Function at 0x140054420
Capabilities:
Access peb ldr_data
Create process on windows
Enumerate gui resources
Self delete

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x540]
sub rsp, 0x640
mov rax, qword [0x140069010]
xor rax, rsp
mov qword [rbp + 0x530], rax
mov r8d, 0x104
lea rdx, [rbp + 0x320]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.140054350
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140054532
mov r9d, 0x104
lea r8, [rbp + 0x110]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.loader.exe
lea rcx, [rbp + 0x110]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140054532
lea rdi, str.delete.bat
mov rdx, rdi
lea r8, [0x14005ef38]
lea rcx, [rbp + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x14005450d
test eax, eax
jne 0x14005450d
lea r9, [rbp + 0x320]
mov qword [rsp + 0x20], rdi
lea r8, [rbp + 0x320]
lea rdx, str.:Repeat_ntimeout_1___NUL_ndel___s__nif_exist___s__goto_Repeat_ndel___s_
call fcn.1400542a0
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rdx, str.open
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1400549b0
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
xor ebx, ebx
mov dword [rbp + 0xd0], 0x307e8
lea rdx, [rbp + 0xf8]
mov dword [rbp + 0xdc], ebx
lea rcx, [rbp + 0x100]
mov qword [rbp + 0xd4], 0xd0000
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x14005463c
mov r8d, 0x104
lea rdx, [rbp + 0x110]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400545d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Could_not_get_module_file_name._Error:__d_n
call fcn.1400542f0
lea eax, [rbx + 1]
jmp 0x1400549b2
lea rdi, str.delete.bat
mov rdx, rdi
lea r8, [0x14005ef38]
lea rcx, [rbp + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x14005450f
test eax, eax
jne 0x14005450f
lea r9, [rbp + 0x110]
mov qword [rsp + 0x20], rdi
lea r8, [rbp + 0x110]
lea rdx, str.:Repeat_ndel___s__nif_exist___s__goto_Repeat_ndel___s_
call fcn.1400542a0
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14005450f
mov rax, qword gs:[0x60]
mov qword [rsp + 0x660], rsi
mov qword [rsp + 0x668], r12
movabs r12, 0x76d048452dcf6909
mov qword [rsp + 0x670], r14
lea r14, str.destiny2.exe
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x678], r15
movabs r15, 0xffffffff00000000
mov rdx, qword [rcx + 0x10]
mov eax, dword [rdx + 0x30]
add eax, 0x100000
mov dword [rdx + 0x40], eax
nop dword [rax]
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rbp + 0x88], r14
movups xmmword [rbp + 0x78], xmm0
lea rcx, [rbp + 0x58]
mov byte [rbp + 0x78], 1
movups xmmword [rbp + 0x58], xmm0
movups xmmword [rbp + 0x68], xmm0
call fcn.140007840
mov rax, qword [rbp + 0x70]
mov qword [0x140069a18], rax
test rax, rax
je 0x1400546a0
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rcx
lea rcx, [rbp + 0x20]
movups xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x41], 1
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x48], r14
call fcn.140007840
mov rax, qword [rbp + 0x20]
mov qword [0x140069a10], rax
test rax, rax
je 0x1400546a0
xorps xmm0, xmm0
lea rcx, [rbp + 0x90]
xor eax, eax
mov qword [rbp + 0xc0], rax
mov rax, qword [0x140069a18]
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xa8], rax
movups xmmword [rbp + 0xb0], xmm0
mov byte [rbp + 0xb2], 1
movups xmmword [rbp + 0x90], xmm0
call fcn.140007840
mov rax, qword [rbp + 0x90]
mov qword [0x140069a00], rax
test rax, rax
je 0x1400546a0
mov rdx, qword [0x140069a18]
lea rcx, [0x140008530]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [0x140069a08], rbx
je 0x1400546a0
mov rax, qword [0x140069a18]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
mov rax, qword [0x140069a10]
add rax, 0x17224118
mov qword [rbp + 0xc8], rbx
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 8
mov dword [rsp + 0x60], 0x1000000
movdqu xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x74], ebx
call fcn.140007840
mov rcx, qword [0x140069a10]
xorps xmm0, xmm0
mov rdi, qword [rbp + 0xc8]
mov rsi, qword [0x140069a00]
add rdi, rcx
mov rax, rdi
mov qword [rbp + 0xe0], rbx
shr rax, 0x10
xor rdi, rax
mov qword [rbp - 0x78], 8
mov rax, qword [0x140069a18]
mov qword [rbp - 0x70], rax
lea rax, [rcx + 0x660d10a]
mov qword [rbp - 0x80], rax
lea rcx, [rsp + 0x78]
lea rax, [rbp + 0xe0]
mov dword [rbp - 0x68], 0x1000000
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x64], xmm0
mov dword [rbp - 0x54], ebx
call fcn.140007840
mov rax, qword [0x140069a18]
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
mov rax, qword [rbp + 0xe0]
bswap rax
add rax, 0x13
mov qword [rbp + 0xe8], rbx
mov qword [rbp - 0x48], rax
lea rax, [rbp + 0xe8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], 8
mov dword [rbp - 0x30], 0x1000000
movdqu xmmword [rbp - 0x2c], xmm0
mov dword [rbp - 0x1c], ebx
call fcn.140007840
mov rcx, qword [0x140069a10]
mov rdx, rdi
shr rdx, 0x20
add rcx, 0x2c8cd073
xor rdx, rdi
imul rdx, qword [rbp + 0xe8]
sub rdx, rsi
not rsi
imul rdx, r12
add rcx, rsi
xor rdx, rcx
mov qword [0x1400699f0], rdx
je 0x1400546a0
call fcn.140008590
mov qword [0x1400699f8], rax
test rax, rax
je 0x1400546a0
xor eax, eax
mov qword [rbp - 8], 0xc
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x18]
mov dword [rsp + 0x38], eax
xorps xmm0, xmm0
mov rax, qword [0x140069a18]
mov qword [rbp], rax
mov rax, qword [0x140069a10]
add rax, 0x1dabb9d0
mov dword [rbp + 8], 0x1000000
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x18], rax
movdqu xmmword [rbp + 0xc], xmm0
mov dword [rbp + 0x1c], ebx
call fcn.140007840
mov ecx, dword [0x140069a10]
lea edx, [rcx + 0x1dabb9d4]
add ecx, 0x1dabb9d0
xor edx, dword [rsp + 0x38]
xor ecx, dword [rsp + 0x38]
lea eax, [rdx + 2]
imul edx, eax
mov rax, qword [rsp + 0x30]
and rax, r15
shl rdx, 0x20
xor rdx, rax
lea eax, [rcx + 2]
imul ecx, eax
mov eax, dword [rsp + 0x30]
xor rcx, rax
or rdx, rcx
je 0x1400546a0
call fcn.140054bb0
mov r15, qword [rsp + 0x678]
mov r14, qword [rsp + 0x670]
mov r12, qword [rsp + 0x668]
mov rsi, qword [rsp + 0x660]
xor eax, eax
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.140055cd0
add rsp, 0x640
pop rdi
pop rbx
pop rbp
ret