Function at 0x18002a9a0
Capabilities:
Check http status code
Create http request
Download and write a file
Log keystrokes via polling
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 r14
push r15
mov eax, 0x1090
call fcn.18005aa10
sub rsp, rax
mov rax, qword [0x18007f130]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov rsi, qword [rsp + 0x1100]
mov r14, qword [rsp + 0x10f0]
xor r12d, r12d
mov r15, rcx
mov rcx, qword [rsp + 0x10f8]
mov rax, r9
mov ebx, edx
mov dword [rsp + 0x34], r8d
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rcx
mov ebp, r12d
lea edx, [r12 + 1]
test rcx, rcx
je 0x18002aa15
cmp rcx, 0xffffffffffffffff
cmovne ebp, edx
test r8d, r8d
je 0x18002aa4e
test ebp, ebp
jne 0x18002aa23
test rax, rax
je 0x18002aa28
test r14, r14
jne 0x18002aa4e
mov rdx, qword [rsi]
sub rdx, 0x18
or rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18002aa47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x18002adf0
mov ecx, 0x14
mov edi, edx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dx, ax
bt edx, 0xf
jae 0x18002aa8e
mov ecx, 0x58
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dx, ax
bt edx, 0xf
jae 0x18002aa8e
mov ecx, 0x5a
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov cx, ax
bt ecx, 0xf
cmovb edi, r12d
mov rcx, qword [rsi]
cmp dword [rcx - 0x10], r12d
je 0x18002aaaf
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
jmp 0x18002aacc
lea rcx, [0x18006d208]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
test r12, r12
je 0x18002aa28
mov r9d, 4
mov qword [rsp + 0x10d8], r13
mov eax, 0x84283180
lea r8, [rsp + 0x44]
lea edx, [r9 + 0x3d]
mov r13d, 0x84083180
test ebx, ebx
mov rcx, r12
mov dword [rsp + 0x44], 1
cmovne r13d, eax
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [rsp + 0x1108]
lea r8, [0x18006d220]
lea r9, [0x18006d250]
test edx, edx
je 0x18002ab3e
or rbx, 0xffffffffffffffff
xor eax, eax
mov rdi, r9
mov rcx, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x18002ab53
or rbx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
mov rcx, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
test edx, edx
mov rdx, r15
mov qword [rsp + 0x28], 0
cmovne r8, r9
mov r9d, ecx
mov rcx, r12
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r13, rax
test rax, rax
jne 0x18002ab9c
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jmp 0x18002addb
xor eax, eax
xor r15d, r15d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x58]
lea edx, [rax + 0x13]
mov rcx, r13
mov word [rsp + 0x58], r15w
mov qword [rsp + 0x5a], rax
mov qword [rsp + 0x62], rax
mov word [rsp + 0x6a], ax
mov dword [rsp + 0x40], 0x14
mov qword [rsp + 0x20], r15
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x18002adb9
lea rcx, [rsp + 0x58]
call fcn.180036d04
cmp eax, 0xc8
je 0x18002ac11
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call fcn.180001c10
jmp 0x18002ade6
mov edi, 1
cmp dword [rsp + 0x34], r15d
je 0x18002ad80
lea rcx, [rsp + 0x71]
mov ebx, r15d
xor edx, edx
mov r8d, 0x1000
mov dword [rsp + 0x30], r15d
mov rdi, r15
mov byte [rsp + 0x70], bl
call fcn.180035fe0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov r8d, 0x1000
mov rcx, r13
movsxd rbp, ebp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18002ad68
mov r15, qword [rsp + 0x38]
xor esi, esi
nop dword [rax]
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x18002ad33
test rbp, rbp
jne 0x18002ace0
test rdi, rdi
jne 0x18002aca7
mov ecx, 0x1001
call fcn.1800355d0
xor edx, edx
mov r8d, 0x1001
mov rcx, rax
mov rdi, rax
call fcn.180035fe0
jmp 0x18002acca
lea edx, [rbx + 0x1001]
mov rcx, rdi
call fcn.1800372fc
mov ecx, ebx
xor edx, edx
add rcx, rax
mov r8d, 0x1001
mov rdi, rax
call fcn.180035fe0
mov r8d, dword [rsp + 0x30]
mov ecx, ebx
lea rdx, [rsp + 0x70]
add rcx, rdi
call fcn.18003b330
jmp 0x18002acfc
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x70]
mov rcx, r15
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [rsp + 0x30]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x1001
call fcn.180035fe0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov r8d, 0x1000
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18002ac70
test ebx, ebx
jne 0x18002ad49
test rdi, rdi
je 0x18002ad65
mov rcx, rdi
call fcn.180035540
xor r15d, r15d
jmp 0x18002ad68
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x18002ad56
mov qword [rax], rdi
test r14, r14
je 0x18002ad5e
mov dword [r14], ebx
mov edi, 1
jmp 0x18002ad80
xor r15d, r15d
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x18002ad75
mov qword [rax], r15
test r14, r14
je 0x18002ad7d
mov dword [r14], r15d
mov edi, r15d
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [rsp + 0x34], 0
mov rsi, qword [rsp + 0x50]
je 0x18002adaa
mov rcx, rsi
call fcn.180001c10
mov eax, edi
jmp 0x18002ade8
mov rcx, rsi
call fcn.180001c10
mov eax, 1
jmp 0x18002ade8
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18002ade6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov r13, qword [rsp + 0x10d8]
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.1800340f0
add rsp, 0x1090
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret