Function at 0x14009c5f0
Capabilities:
Check for time delay via gettickcount
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov r13, r8
mov rbx, rdx
mov r12, rcx
mov edi, 0x84000000
nop
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14009c62f
cmp ax, 9
jne 0x14009c635
add rbx, 2
jmp 0x14009c620
cmp ax, 0x2a
jne 0x14009c690
add rbx, 2
mov rcx, rbx
call fcn.140005d80
mov rdi, rax
mov r8, rbx
test rbx, rbx
je 0x14009c690
movzx edx, word [rbx]
test dx, dx
je 0x14009c690
mov r9d, SafeArrayAllocDescriptor
lea rcx, [0x140110770]
movzx eax, r9w
nop dword [rax + rax]
cmp dx, ax
je 0x14009c6f1
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14009c670
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x14009c660
xor esi, esi
lea rcx, str.AutoHotkey
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov edx, 4
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x14009c6e2
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rdi, rax
test rax, rax
jne 0x14009c715
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dl, 1
mov rcx, r12
call fcn.140063df0
jmp 0x14009c995
test r8, r8
je 0x14009c690
mov rbx, r8
nop dword [rax]
movzx eax, word [rbx]
cmp ax, r9w
je 0x14009c70f
cmp ax, 9
jne 0x14009c690
add rbx, 2
jmp 0x14009c700
lea rdx, [0x14011ac7c]
mov qword [rsp + 0x4d0], r14
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov r14, rax
test rax, rax
jne 0x14009c74e
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dl, 1
jmp 0x14009c985
lea rax, [rbp - 0x60]
mov qword [rsp + 0x44], rsi
mov qword [rsp + 0x50], rax
mov ecx, 0xffdf
xorps xmm0, xmm0
mov dword [rsp + 0x4c], esi
movdqu xmmword [rsp + 0x34], xmm0
mov qword [rsp + 0x5c], rsi
mov dword [rsp + 0x64], esi
mov dword [rsp + 0x30], reloc.WSOCK32.dll_getservbyport
mov dword [rsp + 0x58], 0x400
mov esi, dword gs:[0x48]
movzx eax, word [rbx]
sub ax, 0x48
test cx, ax
mov rcx, rdi
je 0x14009c88a
lea r9, [rbp + 0x3d8]
mov r8d, 0x400
lea rdx, [rbp - 0x60]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test eax, eax
je 0x14009c958
cmp dword [rbp + 0x3d8], 0
je 0x14009c958
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012f240]
sub eax, dword [0x140136c64]
cmp eax, dword [rcx + 0x118]
jbe 0x14009c82d
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x68]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14009c821
cmp dword [0x140136030], esi
jne 0x14009c821
mov edx, 1
mov ecx, 0xffffffff
call fcn.140001b00
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140136c64], eax
mov edx, dword [rbp + 0x3d8]
lea rcx, [rbp - 0x60]
mov r9, r14
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea r9, [rbp + 0x3d8]
mov r8d, 0x400
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test eax, eax
jne 0x14009c7c3
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14009c977
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov r8d, 8
call qword [sym.imp.WININET.dll_InternetReadFileExA]
mov ebx, eax
test eax, eax
je 0x14009c958
nop dword [rax + rax]
cmp dword [rsp + 0x58], 0
je 0x14009c958
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012f240]
sub eax, dword [0x140136c64]
cmp eax, dword [rcx + 0x118]
jbe 0x14009c918
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x68]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14009c90c
cmp dword [0x140136030], esi
jne 0x14009c90c
mov edx, 1
mov ecx, 0xffffffff
call fcn.140001b00
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140136c64], eax
mov edx, dword [rsp + 0x58]
lea rcx, [rbp - 0x60]
mov r9, r14
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor r9d, r9d
mov dword [rsp + 0x58], 0x400
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFileExA]
mov ebx, eax
test eax, eax
jne 0x14009c8b0
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
jne 0x14009c982
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
sete dl
mov rcx, r12
call fcn.140063df0
mov r14, qword [rsp + 0x4d0]
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret