Function at 0x1400179e0
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov r12, rdx
mov r15, rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov r9, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + r9]
cmp dword [0x14047e8e4], eax
jg 0x140017d00
mov rcx, qword [r15 + 0x60]
mov qword [r15 + 0x60], rbx
test rcx, rcx
je 0x140017a46
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [r15 + 0x58]
test rcx, rcx
je 0x140017a59
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [r15 + 0x58], rbx
cmp qword [0x14047e908], 0
je 0x140017cec
mov ecx, 0x20000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rbp - 0x21], rax
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov qword [rbp - 0x19], rax
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov qword [rbp - 0x11], rax
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rbp - 9], rax
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x68
mov qword [rbp - 0x51], rbx
mov dword [rbp - 0x49], 0x10000
mov qword [rsp + 0x58], rdi
mov dword [rbp - 0x79], 0x800
mov qword [rbp - 0x71], rsi
mov dword [rbp - 0x69], 0x400
mov qword [rbp - 0x61], r14
mov dword [rbp - 0x59], 0x400
cmp byte [r15 + 0x89], 0
je 0x140017b0f
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x68]
lea rcx, [r15 + 0x10]
call fcn.140131f10
mov rdx, r12
lea rcx, [rbp - 1]
call fcn.140018b20
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140017cc5
mov r13, qword [0x14047e908]
mov eax, 1
mov dword [rbp + 0x7f], eax
lea r9d, [rax + 3]
lea r8, [rbp + 0x7f]
lea edx, [rax + 0x45]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea r12, [r15 + 0x8c]
mov eax, dword [r12]
test eax, eax
jne 0x140017b72
mov dword [r12], 0x7530
jmp 0x140017b7c
jns 0x140017b7c
mov dword [r12], 0xffffffff
mov r9d, 4
mov r8, r12
lea edx, [r9 - 2]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, r12
lea edx, [r9 + 2]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, r12
lea edx, [r9 + 1]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, r12
lea edx, [r9 + 4]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, r12
lea edx, [r9 + 3]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rax, str.ftp:
mov qword [rbp + 0x67], rax
lea rdx, [rbp + 0x67]
mov r12, qword [rbp + 0x6f]
mov rcx, r12
call fcn.14014e2f0
mov byte [rbp + 0x67], al
lea rax, [r15 + 0xc8]
mov qword [rbp + 7], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [r15 + 0xf4], 0
je 0x140017c2b
xor eax, eax
jmp 0x140017c6b
mov eax, 3
cmp byte [rbp + 0x67], 0
mov ecx, 1
cmovne eax, ecx
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x71]
movzx r8d, word [rbp - 0x75]
mov rdx, qword [rsp + 0x58]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [r15 + 0x58], rax
lea rcx, [r15 + 0xc8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [r15 + 0x58]
test rcx, rcx
je 0x140017cc5
cmp byte [rbp + 0x67], 0
je 0x140017cb0
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_select
mov r8d, 0x80000000
mov rdx, qword [rbp - 0x51]
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov qword [r15 + 0x60], rax
jmp 0x140017cc5
mov r9, qword [rbp + 0x77]
mov r8, r12
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140017d50
nop
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x14047e8e4]
call fcn.14010a5c4
cmp dword [0x14047e8e4], 0xffffffff
jne 0x140017a33
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.juce
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [0x14047e908], rax
lea rcx, [0x14047e8e4]
call fcn.14010a564
jmp 0x140017a33