Function at 0x140003480
Capabilities:
Accept command line arguments
Create http request
Create process on windows
Get common file path
Read data from internet
Receive data
Resume thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x620
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x660], rbx
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x610], rax
mov rbx, r8
mov r13, rdx
call fcn.140003000
mov r11, qword [0x140160e18]
mov qword [rsp + 0x60], r11
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x60]
call fcn.14002d430
xor r8d, r8d
mov edx, 0xe00b
lea rcx, [rsp + 0x60]
call fcn.14002e500
nop
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
jne 0x140003523
lea rcx, [rsp + 0x60]
call fcn.14002d2c0
lea eax, [rsi + 4]
jmp 0x140003b78
mov byte [rsp + 0x180], sil
xor eax, eax
mov qword [rsp + 0x181], rax
mov qword [rsp + 0x189], rax
mov qword [rsp + 0x191], rax
mov qword [rsp + 0x199], rax
mov qword [rsp + 0x1a1], rax
mov qword [rsp + 0x1a9], rax
mov qword [rsp + 0x1b1], rax
mov qword [rsp + 0x1b9], rax
mov qword [rsp + 0x1c1], rax
mov dword [rsp + 0x1c9], eax
mov word [rsp + 0x1cd], ax
mov byte [rsp + 0x1cf], al
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140164130]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
mov ecx, esi
mov dword [rsp + 0x70], ecx
mov r8d, 0x4f
sub r8d, ecx
lea rdx, [rsp + rcx + 0x180]
lea r9, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test eax, eax
je 0x1400035e0
mov ecx, dword [rsp + 0x70]
test ecx, ecx
jne 0x1400035b3
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
jne 0x140003608
lea rcx, [rsp + 0x60]
call fcn.14002d2c0
lea eax, [rdi + 4]
jmp 0x140003b78
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x180]
call fcn.140002da0
mov edi, dword [rsp + 0x58]
lea eax, [rdi - 0xc12]
test eax, eax
jle 0x140003b67
lea rcx, [0x140164020]
call fcn.1400031a0
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x3f0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0x104
movaps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x80], xmm0
mov edx, edi
lea rcx, [rsp + 0x80]
call fcn.140002dc0
mov r11, qword [0x140160e18]
mov qword [rsp + 0x68], r11
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x68]
call fcn.14002d430
xor r8d, r8d
mov edx, 0xe00c
lea rcx, [rsp + 0x68]
call fcn.14002e500
nop
cmp dword [rsp + 0x58], 0
je 0x140003735
mov rax, qword [0x140160e18]
mov qword [rsp + 0x50], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x50]
call fcn.14002d430
xor r8d, r8d
mov edx, 0x88
lea rcx, [rsp + 0x50]
call fcn.14002e500
nop
mov eax, dword [rsp + 0x58]
cvtsi2sd xmm1, rax
movsd xmm0, qword [0x1400e4f80]
mulsd xmm1, xmm0
mulsd xmm1, xmm0
movsd qword [rsp + 0x28], xmm1
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x50]
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.1400c32b0
nop
lea rcx, [rsp + 0x50]
call fcn.14002d2c0
jmp 0x140003790
mov rax, qword [0x140160e18]
mov qword [rsp + 0x50], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x50]
call fcn.14002d430
xor r8d, r8d
mov edx, 0x89
lea rcx, [rsp + 0x50]
call fcn.14002e500
nop
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x50]
mov edx, 0x104
lea rcx, [rsp + 0x500]
call fcn.1400c32b0
nop
lea rcx, [rsp + 0x50]
call fcn.14002d2c0
mov rax, qword [0x140160e18]
mov qword [rsp + 0x78], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x78]
call fcn.14002d430
xor r8d, r8d
mov edx, 0x8a
lea rcx, [rsp + 0x78]
call fcn.14002e500
nop
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, rax
lea rdx, [rsp + 0x500]
lea rcx, [rsp + 0xc0]
call fcn.140022290
nop
xor r8d, r8d
lea rdx, [0x1401679a8]
lea rcx, [rsp + 0xc0]
call fcn.140002ce0
cmp eax, 2
jne 0x14000383e
lea rcx, [rsp + 0x108]
call fcn.14002d2c0
nop
lea rcx, [rsp + 0xc0]
call fcn.140002850
nop
lea rcx, [rsp + 0x78]
call fcn.14002d2c0
nop
lea rcx, [rsp + 0x68]
call fcn.14002d2c0
nop
lea rcx, [rsp + 0x60]
call fcn.14002d2c0
xor eax, eax
jmp 0x140003b78
lea rax, [rsp + 0x58]
cmp dword [rsp + 0x58], 0
cmove rax, rsi
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x3f0]
lea rcx, [0x140164020]
call fcn.140009cd0
test eax, eax
je 0x1400038bc
cmp eax, 0x4c7
setne sil
add esi, 2
lea rcx, [rsp + 0x108]
call fcn.14002d2c0
nop
lea rcx, [rsp + 0xc0]
call fcn.140002850
nop
lea rcx, [rsp + 0x78]
call fcn.14002d2c0
nop
lea rcx, [rsp + 0x68]
call fcn.14002d2c0
jmp 0x140003b6c
lea rdx, [rsp + 0x2e0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbp, rax
cmp byte [rax], 0x22
jne 0x1400038fb
lea rcx, [rax + 1]
lea rdx, [0x1400e4f78]
call fcn.1400c2e00
mov rdi, rax
test rax, rax
je 0x140003912
add rdi, 1
jmp 0x14000390d
lea rdx, [0x1400e4f74]
mov rcx, rax
call fcn.1400c2e00
mov rdi, rax
test rdi, rdi
jne 0x140003915
mov rdi, rbp
cmp byte [rdi], 0x20
jne 0x14000391e
add rdi, 1
test rbx, rbx
je 0x140003950
cmp byte [rbx], 0
je 0x140003950
lea rcx, [rsp + 0x1d0]
sub rcx, rbx
nop
nop
nop
nop
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
add rbx, 1
test al, al
jne 0x140003940
jmp 0x140003966
mov r8d, 0x104
lea rdx, [rsp + 0x1d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rsp + 0x1d0]
call fcn.1400c2dd0
test rax, rax
je 0x140003981
mov byte [rax + 1], 0
mov rax, qword [0x140160e18]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x3f0]
lea rcx, [rsp + 0x50]
call fcn.14002d430
lea rdx, [0x1400e4f70]
lea rcx, [rsp + 0x50]
call fcn.14002d580
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x50]
call fcn.14002d580
cmp byte [rdi], 0
je 0x1400039e0
mov dl, 0x20
lea rcx, [rsp + 0x50]
call fcn.14002d5c0
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14002d580
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x110]
call fcn.1400c2840
xor r11d, r11d
mov qword [rsp + 0x98], r11
mov qword [rsp + 0xa0], r11
mov qword [rsp + 0xa8], r11
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x24
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140003b2c
mov rax, qword [0x140160e18]
mov qword [rsp + 0x80], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x80]
call fcn.14002d430
xor r8d, r8d
mov edx, 0x8b
lea rcx, [rsp + 0x80]
call fcn.14002e500
nop
lea r8, [rsp + 0x3f0]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x2e0]
call fcn.1400c2cf0
mov r11, qword [0x140160e18]
mov qword [rsp + 0x90], r11
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x90]
call fcn.14002d430
xor r8d, r8d
mov edx, 0x8f
lea rcx, [rsp + 0x90]
call fcn.14002e500
nop
mov r9d, 0x40
mov r8, qword [rsp + 0x90]
lea rdx, [rsp + 0x2e0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
lea rcx, [rsp + 0x90]
call fcn.14002d2c0
nop
lea rcx, [rsp + 0x80]
call fcn.14002d2c0
jmp 0x140003b5c
mov rcx, qword [0x140167138]
test rcx, rcx
je 0x140003b45
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140167138], rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 1
call fcn.1400c3200
nop
mov esi, 1
lea rcx, [rsp + 0x60]
call fcn.14002d2c0
mov eax, esi
mov rcx, qword [rsp + 0x610]
xor rcx, rsp
call fcn.1400c2a20
mov rbx, qword [rsp + 0x660]
add rsp, 0x620
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret