Function at 0x140012330
Capabilities:
Create directory
Create http request
Create process on windows
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:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fe8]
mov eax, 0x20e8
call fcn.14005aaf0
sub rsp, rax
call fcn.140004200
mov rcx, rax
test rax, rax
je 0x14001273c
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x2048], rax
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp - 0x20]
call fcn.140041b60
lea rdx, [rbp - 0x20]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, str.bitsum
lea r8, [rbp - 0x20]
lea rdx, str._s_s
lea rcx, [rbp + 0x2048]
call fcn.140007c70
xor edx, edx
mov rcx, qword [rbp + 0x2048]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, str.parkcontrolsetup64.exe
mov qword [rsp + 0x20], rax
lea r9, str.bitsum
lea r8, [rbp - 0x20]
lea rdx, str._s_s_s
lea rcx, [rbp + 0x2048]
call fcn.140007c70
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.bitsum
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
mov qword [rsp + 0x50], rax
lea r12d, [r14 - 1]
mov rdi, qword [rbp + 0x2048]
test rax, rax
je 0x14001250d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
lea rdx, str.https:__dl.bitsum.com_files_parkcontrolsetup64.exe
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r13, rax
test rax, rax
jne 0x140012457
mov rcx, rbx
jmp 0x140012507
mov ecx, 0x1000
call fcn.14003f364
mov rsi, rax
mov r15d, r14d
nop word [rax + rax]
lea rdx, [r14 + rsi]
lea r9, [rbp + 0x2040]
mov r8d, 0x1000
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rbp + 0x2040]
test eax, eax
je 0x14001249c
test ecx, ecx
je 0x140012542
add r15d, ecx
movsxd r14, r15d
mov rcx, r14
call fcn.14003f364
mov rbx, rax
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.1400414b0
mov edx, 1
mov rcx, rsi
call fcn.14003f320
lea ecx, [r15 + 0x1000]
movsxd rcx, ecx
call fcn.14003f364
mov rsi, rax
mov r8, r14
mov rdx, rbx
mov rcx, rax
call fcn.1400414b0
mov edx, 1
mov rcx, rbx
call fcn.14003f320
cmp byte [0x14007aed5], 1
jne 0x140012470
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor sil, sil
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x14001252a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, sil
add rsp, 0x20e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x14001250d
cmp r15d, 0x4000
jle 0x14001250d
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001250d
mov dword [rbp + 0x2038], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x2038]
mov r8d, r15d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140012723
cmp dword [rbp + 0x2038], r15d
jne 0x140012723
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140004200
mov rcx, rax
test rax, rax
je 0x140012731
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov r8, rdi
lea rdx, str.__s___S
lea rcx, [rsp + 0x50]
call fcn.140007c70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x28], al
mov dword [rsp + 0x20], 1
lea r9, str.UpdateFinished
lea r8, str.SoftwareParkControl
mov rdx, 0xffffffff80000001
lea rcx, [rbp + 0x2030]
call fcn.1400179e0
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 8], 1
jle 0x14001267e
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140003cd0
mov rbx, qword [rsp + 0x50]
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
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x1400126c8
test rdi, rdi
jne 0x1400126ee
lea r9, str.UpdateFinished
lea r8, str.SoftwareParkControl
mov rdx, 0xffffffff80000001
lea rcx, [rbp + 0x2030]
call fcn.140017920
test rdi, rdi
je 0x1400126f7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne sil
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012717
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbp + 0x2048]
jmp 0x140012510
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001250d
mov ecx, 0x80004005
call fcn.140003f50
nop
mov ecx, 0x80004005
call fcn.140003f50
int3