Function at 0x180008b80
Capabilities:
Check for time delay via gettickcount
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1078
call fcn.1800c95a0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1800fca30]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rsi, r9
mov r13, r8
mov rdi, rdx
mov r15, rcx
xor bpl, bpl
mov dword [rsp + 0x38], 4
xor r12d, r12d
mov dword [rsp + 0x34], r12d
mov rcx, qword [rcx]
mov ebx, dword [rsp + 0x10e0]
test rcx, rcx
je 0x180008c0c
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov edx, 0x20000005
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x180008c0c
mov eax, dword [rsp + 0x34]
jmp 0x180008c2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x180008edc
mov bpl, 1
test ebx, ebx
je 0x180008c46
mov eax, ebx
mov dword [rsp + 0x34], ebx
test eax, eax
jne 0x180008c4f
test bpl, bpl
jne 0x180008c4f
test rsi, rsi
je 0x180008c3f
mov dword [rsi + 0x2c], 0xe0000006
xor al, al
jmp 0x180008ee6
mov eax, 0x3200000
mov dword [rsp + 0x34], eax
test ebx, ebx
je 0x180008c6a
cmp eax, ebx
je 0x180008c6a
test rsi, rsi
je 0x180008c63
mov dword [rsi + 0x2c], 0xe0000006
xor al, al
jmp 0x180008ee6
lea rbx, [0x1800d85c8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov r9d, 3
mov r8d, 0x40000000
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180043470
test al, al
jne 0x180008cd7
test rsi, rsi
je 0x180008cba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x2c], eax
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180008cd0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x180008ee6
mov byte [rsp + 0x30], 0
test rsi, rsi
je 0x180008ced
mov rbx, rsi
mov ecx, dword [rsp + 0x34]
mov dword [rsi + 8], ecx
jmp 0x180008d3b
mov byte [rsp + 0x30], 1
mov ecx, 0x30
call fcn.1800a2300
mov rbx, rax
test rax, rax
je 0x180008d34
mov eax, dword [rsp + 0x34]
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x20], r12
mov dword [rbx + 0x18], r12d
mov dword [rbx + 0x1c], r12d
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], r12d
jmp 0x180008d37
mov rbx, r12
mov ecx, dword [rsp + 0x34]
mov r14b, 1
cmp dword [rbx + 0xc], ecx
jae 0x180008e91
test r13, r13
je 0x180008d63
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180008e8d
mov ecx, dword [rsp + 0x34]
mov r8d, 0x1000
test bpl, bpl
jne 0x180008d80
mov edx, dword [rbx + 0xc]
mov eax, ecx
sub eax, edx
cmp eax, r8d
jae 0x180008d80
mov r8d, ecx
sub r8d, edx
mov rax, qword [r15]
test rax, rax
je 0x180008e91
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180008e8d
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [rbx + 0xc], ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
cmp eax, dword [rbx + 4]
je 0x180008e17
mov ecx, eax
sub ecx, dword [rbx + 0x18]
cmp ecx, 0x3e8
jbe 0x180008df8
mov r8d, dword [rbx + 0xc]
mov eax, r8d
sub eax, dword [rbx + 0x1c]
xor edx, edx
div ecx
mov ecx, eax
cvtsi2sd xmm0, rcx
movsd qword [rbx + 0x10], xmm0
mov dword [rbx + 0x18], r11d
mov dword [rbx + 0x1c], r8d
mov eax, dword [rbx + 0xc]
cvtsi2sd xmm1, rax
mov eax, r11d
sub eax, dword [rbx]
cvtsi2sd xmm0, rax
divsd xmm1, xmm0
movsd qword [rbx + 0x20], xmm1
mov dword [rbx + 4], r11d
mov edi, dword [rsp + 0x38]
cmp edi, 0xffffffff
je 0x180008e8d
test edi, edi
jne 0x180008e3b
test bpl, bpl
jne 0x180008e8d
lea ecx, [rdi + 0xa]
call sub.KERNEL32.dll_Sleep
add r12d, 1
cmp r12d, 3
ja 0x180008e8d
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180008e7a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, edi
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180008e7a
cmp edi, dword [rsp + 0x3c]
jne 0x180008e7a
mov ecx, dword [rsp + 0x34]
cmp dword [rbx + 0xc], ecx
jae 0x180008e91
jmp 0x180008d47
test rsi, rsi
je 0x180008e88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x2c], eax
xor r14b, r14b
jmp 0x180008eaa
mov ecx, dword [rsp + 0x34]
cmp dword [rbx + 0xc], ecx
je 0x180008eaa
test bpl, bpl
jne 0x180008eaa
test rsi, rsi
je 0x180008ea7
mov dword [rsi + 0x2c], 0xe0000006
xor r14b, r14b
cmp byte [rsp + 0x30], 0
je 0x180008eba
mov rcx, rbx
call fcn.1800a2030
nop
lea rax, [0x1800d85c8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180008ed7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, r14b
jmp 0x180008ee6
test rsi, rsi
je 0x180008ee4
mov dword [rsi + 0x2c], eax
xor al, al
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.1800a3210
add rsp, 0x1078
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret