Function at 0x1400037d0
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x1400900c0]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r14, r9
mov rsi, r8
mov r15, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.FTPUploader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
test rax, rax
jne 0x14000386c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x140088022]
lea rcx, [0x1400918e0]
call fcn.14000bf90
mov rcx, rax
mov edx, ebx
call fcn.1400082b0
mov rcx, rax
lea rdx, [0x1400880ec]
call fcn.14000bf90
xor al, al
jmp 0x140003ed4
lea rdi, [r14 + 8]
mov rcx, rdi
cmp qword [r14 + 0x20], 0xf
jbe 0x14000387d
mov rcx, qword [rdi]
add rcx, qword [r14 + 0x18]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rcx
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov r13, qword [r14]
mov rax, qword [rsp + 0x40]
cmp rax, r13
je 0x1400038d3
test rax, rax
je 0x1400038bc
lea rcx, [rsp + 0x40]
call fcn.140001c40
mov rax, qword [r13 + 8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [r13 + 8], rax
mov qword [rsp + 0x40], r13
lea rcx, [rbp + 0xf8]
call fcn.140010110
cmp qword [r14 + 0x20], 0xf
jbe 0x1400038e9
mov rdi, qword [rdi]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rdi
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov rdi, qword [r14]
mov rax, qword [rsp + 0x58]
cmp rax, rdi
je 0x14000393b
test rax, rax
je 0x140003924
lea rcx, [rsp + 0x58]
call fcn.140001c40
mov rax, qword [rdi + 8]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rdi + 8], rax
mov qword [rsp + 0x58], rdi
lea rcx, [rbp + 0xf8]
call fcn.140010110
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x80]
call fcn.14000c240
mov r13, rax
lea rdi, [rsi + 8]
mov rdx, rdi
cmp qword [rsi + 0x20], 0xf
jbe 0x140003971
mov rdx, qword [rdi]
mov rax, qword [rsi + 0x18]
add rax, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov r14, qword [rsi]
mov rax, qword [rsp + 0x70]
cmp rax, r14
je 0x1400039c9
test rax, rax
je 0x1400039b2
lea rcx, [rsp + 0x70]
call fcn.140001c40
mov rax, qword [r14 + 8]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov qword [r14 + 8], rax
mov qword [rsp + 0x70], r14
lea rcx, [rbp + 0xf8]
call fcn.140010110
cmp qword [rsi + 0x20], 0xf
jbe 0x1400039e0
mov rdi, qword [rsi + 8]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rdi
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov rdi, qword [rsi]
mov rax, qword [rbp - 0x78]
cmp rax, rdi
je 0x140003a2b
test rax, rax
je 0x140003a17
lea rcx, [rbp - 0x78]
call fcn.140001c40
mov rax, qword [rdi + 8]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x78]
mov qword [rdi + 8], rax
mov qword [rbp - 0x78], rdi
lea rcx, [rbp + 0xf8]
call fcn.140010110
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x58]
call fcn.14000c240
mov r14, rax
lea rdi, [r15 + 8]
mov rdx, rdi
cmp qword [r15 + 0x20], 0xf
jbe 0x140003a5d
mov rdx, qword [rdi]
mov rax, qword [r15 + 0x18]
add rax, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov rsi, qword [r15]
mov rax, qword [rbp - 0x60]
cmp rax, rsi
je 0x140003aaf
test rax, rax
je 0x140003a9b
lea rcx, [rbp - 0x60]
call fcn.140001c40
mov rax, qword [rsi + 8]
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x60]
mov qword [rsi + 8], rax
mov qword [rbp - 0x60], rsi
lea rcx, [rbp + 0xf8]
call fcn.140010110
cmp qword [r15 + 0x20], 0xf
jbe 0x140003ac6
mov rdi, qword [r15 + 8]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rdi
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov rdi, qword [r15]
mov rax, qword [rbp - 0x48]
cmp rax, rdi
je 0x140003b11
test rax, rax
je 0x140003afd
lea rcx, [rbp - 0x48]
call fcn.140001c40
mov rax, qword [rdi + 8]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x48]
mov qword [rdi + 8], rax
mov qword [rbp - 0x48], rdi
lea rcx, [rbp + 0xf8]
call fcn.140010110
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x30]
call fcn.14000c240
lea rcx, [r13 + 8]
cmp qword [r13 + 0x20], 7
jbe 0x140003b3c
mov rcx, qword [rcx]
lea r9, [r14 + 8]
cmp qword [r14 + 0x20], 7
jbe 0x140003b4a
mov r9, qword [r9]
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 7
jbe 0x140003b58
mov rdx, qword [rdx]
mov r8d, reloc.WS2_32.dll_setsockopt
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r14, rax
lea rcx, [rbp + 0x30]
call fcn.14000a950
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x30], r15
mov edx, select
call fcn.14000d680
nop
lea rcx, [rbp + 0x58]
call fcn.14000a950
mov rcx, qword [rbp + 0x58]
mov qword [rbp + 0x58], r15
mov edx, select
call fcn.14000d680
nop
lea rcx, [rbp + 0x80]
call fcn.14000a950
mov rcx, qword [rbp + 0x80]
mov qword [rbp + 0x80], r15
mov edx, select
call fcn.14000d680
test r14, r14
jne 0x140003c2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x140088022]
lea rcx, [0x1400918e0]
call fcn.14000bf90
mov rcx, rax
mov edx, ebx
call fcn.1400082b0
mov rcx, rax
lea rdx, [0x1400880ec]
call fcn.14000bf90
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140003ed4
lea rdi, [rbx + 8]
mov rcx, rdi
cmp qword [rbx + 0x20], 0xf
jbe 0x140003c3d
mov rcx, qword [rdi]
add rcx, qword [rbx + 0x18]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rcx
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov rsi, qword [rbx]
mov rax, qword [rbp - 0x30]
cmp rax, rsi
je 0x140003c8c
test rax, rax
je 0x140003c78
lea rcx, [rbp - 0x30]
call fcn.140001c40
mov rax, qword [rsi + 8]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsi + 8], rax
mov qword [rbp - 0x30], rsi
lea rcx, [rbp + 0xf8]
call fcn.140010110
cmp qword [rbx + 0x20], 0xf
jbe 0x140003ca3
mov rdi, qword [rbx + 8]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rdi
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov rdi, qword [rbx]
mov rax, qword [rbp - 0x18]
cmp rax, rdi
je 0x140003cee
test rax, rax
je 0x140003cda
lea rcx, [rbp - 0x18]
call fcn.140001c40
mov rax, qword [rdi + 8]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x18]
mov qword [rdi + 8], rax
mov qword [rbp - 0x18], rdi
lea rcx, [rbp + 0xf8]
call fcn.140010110
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0xd0]
call fcn.14000c240
mov rsi, rax
lea rdx, [rbx + 8]
cmp qword [rbx + 0x20], 0xf
jbe 0x140003d20
mov rdx, qword [rbx + 8]
add rdx, qword [rbx + 0x18]
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], rdx
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov rdi, qword [rbx]
mov rax, qword [rbp]
cmp rax, rdi
je 0x140003d6f
test rax, rax
je 0x140003d5b
lea rcx, [rbp]
call fcn.140001c40
mov rax, qword [rdi + 8]
mov qword [rbp + 8], rax
lea rax, [rbp]
mov qword [rdi + 8], rax
mov qword [rbp], rdi
lea rcx, [rbp + 0xf8]
call fcn.140010110
lea rax, [rbx + 8]
cmp qword [rbx + 0x20], 0xf
jbe 0x140003d8a
mov rax, qword [rbx + 8]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], rax
mov edx, 3
lea rcx, [rbp + 0xf8]
call fcn.140010030
mov rbx, qword [rbx]
mov rax, qword [rbp + 0x18]
cmp rax, rbx
je 0x140003dd5
test rax, rax
je 0x140003dc1
lea rcx, [rbp + 0x18]
call fcn.140001c40
mov rax, qword [rbx + 8]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x18]
mov qword [rbx + 8], rax
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0xf8]
call fcn.140010110
lea r8, [rbp]
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0xa8]
call fcn.14000c240
lea r8, [rsi + 8]
cmp qword [rsi + 0x20], 7
jbe 0x140003e03
mov r8, qword [r8]
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 7
jbe 0x140003e11
mov rdx, qword [rdx]
mov qword [rsp + 0x20], r15
mov r9d, 2
mov rcx, r14
call qword [sym.imp.WININET.dll_FtpPutFileW]
mov ebx, eax
test eax, eax
setne dil
lea rcx, [rbp + 0xa8]
call fcn.14000a950
mov rcx, qword [rbp + 0xa8]
mov qword [rbp + 0xa8], r15
mov edx, select
call fcn.14000d680
nop
lea rcx, [rbp + 0xd0]
call fcn.14000a950
mov rcx, qword [rbp + 0xd0]
mov qword [rbp + 0xd0], r15
mov edx, select
call fcn.14000d680
test ebx, ebx
jne 0x140003ea8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x140088022]
lea rcx, [0x1400918e0]
call fcn.14000bf90
mov rcx, rax
mov edx, ebx
call fcn.1400082b0
lea rdx, [0x1400880ec]
jmp 0x140003eb6
lea rax, [0x140091630]
lea rdx, [0x140088022]
mov rcx, rax
call fcn.14000bf90
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movzx eax, dil
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140012f40
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret