Function at 0x140013e10
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, 0xe8
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 [0x140442c88], eax
jg 0x140014126
mov rcx, qword [r15 + 0x60]
mov qword [r15 + 0x60], rbx
test rcx, rcx
je 0x140013e6e
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [r15 + 0x58]
test rcx, rcx
je 0x140013e81
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [r15 + 0x58], rbx
cmp qword [0x140442ca8], rbx
je 0x140014112
mov ecx, 0x20000
call fcn.1400e2094
mov rbx, rax
mov qword [rbp - 0x19], rax
mov ecx, 0x1000
call fcn.1400e2094
mov rdi, rax
mov qword [rbp - 0x11], rax
mov ecx, 0x800
call fcn.1400e2094
mov rsi, rax
mov qword [rbp - 9], rax
mov ecx, 0x800
call fcn.1400e2094
mov r14, rax
mov qword [rbp - 1], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rax
mov dword [rsp + 0x40], 0x68
mov qword [rbp - 0x41], rbx
mov dword [rbp - 0x39], 0x10000
mov qword [rbp - 0x71], rdi
mov dword [rbp - 0x69], 0x800
mov qword [rbp - 0x61], rsi
mov dword [rbp - 0x59], 0x400
mov qword [rbp - 0x51], r14
mov dword [rbp - 0x49], 0x400
cmp byte [r15 + 0x8a], al
je 0x140013f4a
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x68]
lea rcx, [r15 + 0x10]
movzx r9d, byte [r15 + 0x89]
call fcn.14014acd0
mov rdx, r12
lea rcx, [rbp + 7]
call fcn.140014d10
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 0x1400140ef
mov r13, qword [0x140442ca8]
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 0x140013fad
mov dword [r12], 0x7530
jmp 0x140013fb7
jns 0x140013fb7
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 rdx, str.ftp:
mov r12, qword [rbp + 0x6f]
mov rcx, r12
call fcn.14017f9d0
mov byte [rbp + 0x67], al
lea rcx, [r15 + 0xc8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [r15 + 0xf8], 0
je 0x140014056
xor eax, eax
jmp 0x140014095
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 - 0x51]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x61]
movzx r8d, word [rbp - 0x65]
mov rdx, qword [rbp - 0x71]
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 0x1400140ef
cmp byte [rbp + 0x67], 0
je 0x1400140da
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_select
mov r8d, 0x80000000
mov rdx, qword [rbp - 0x41]
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov qword [r15 + 0x60], rax
jmp 0x1400140ef
mov r9, qword [rbp + 0x77]
mov r8, r12
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140014170
nop
mov rcx, r14
call fcn.1400e1bf4
nop
mov rcx, rsi
call fcn.1400e1bf4
nop
mov rcx, rdi
call fcn.1400e1bf4
nop
mov rcx, rbx
call fcn.1400e1bf4
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x140442c88]
call fcn.1400da748
cmp dword [0x140442c88], 0xffffffff
jne 0x140013e5b
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 [0x140442ca8], rax
lea rcx, [0x140442c88]
call fcn.1400da6e8
jmp 0x140013e5b