Function at 0x1800046e0
Capabilities:
Create http request
Create process on windows
Get common file path
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x180039080]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov dword [rsp + 0x50], 1
call fcn.180002b20
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov r8d, 0x39
lea rdx, str.https:__the.earth.li_sgtatham_putty_latest_w32_putty.exe
lea rcx, [rsp + 0x78]
call fcn.180006a90
nop
mov byte [rbp + 0x70], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp + 0x71]
call fcn.1800276c0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
xor r14d, r14d
mov esi, r14d
mov qword [rbp - 0x10], r14
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x180033464]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180004091
jmp 0x180004121
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rdx, qword [rsp + 0x78]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x1800040d1
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x180004121
lea r9, [rbp - 0x60]
mov r8d, 0x400
lea rdx, [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18000410a
mov r9d, dword [rbp - 0x60]
lea r8, [rbp + 0x70]
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.180007090
cmp dword [rbp - 0x60], 0x400
je 0x1800040d1
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rsi, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x18000415d
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004158
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800045de
call fcn.180008280
movdqa xmm0, xmmword [0x180033780]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
lea rax, [rbp + 0x470]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rdi, qword [rbp - 0x20]
test eax, eax
js 0x1800044a5
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rbp + 0x470]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800041c0
lea rdx, [rbp + 0x470]
lea rcx, [rsp + 0x58]
call fcn.180006a90
nop
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x18000422d
lea rax, [rcx + 9]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x58]
add rbx, rcx
mov r8d, 9
lea rdx, str._file.exe
mov rcx, rbx
call fcn.180027020
mov byte [rbx + 9], 0
lea rax, [rsp + 0x58]
jmp 0x18000424e
mov qword [rsp + 0x20], 9
lea r9, str._file.exe
xor r8d, r8d
lea edx, [r8 + 9]
lea rcx, [rsp + 0x58]
call fcn.180006900
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1800042b8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800042b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800045e4
call fcn.180008280
movdqa xmm0, xmmword [0x180033780]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x70]
call fcn.1800276c0
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
lea rcx, [rbp + 0x70]
call fcn.180005f40
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x70], rbx
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x6c], edx
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0x80], 6
jne 0x18000433e
mov r8, qword [rbp - 0x18]
sub r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x70]
call fcn.180005640
lea rcx, [rbp + 0x78]
call fcn.180005e00
test rax, rax
jne 0x18000438a
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0xb8], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x80]
and eax, 0x17
mov dword [rbp + rcx + 0x80], eax
mov edx, dword [rbp + rcx + 0x84]
and edx, eax
jne 0x1800045ea
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
movups xmmword [rbp + 0x24], xmm0
movups xmmword [rbp + 0x34], xmm0
movups xmmword [rbp + 0x44], xmm0
movups xmmword [rbp + 0x54], xmm0
mov dword [rbp + 0x64], eax
mov dword [rbp], 0x68
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180004509
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x70], rbx
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x6c], edx
lea rcx, [rbp + 0x78]
call fcn.180005380
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x118]
call fcn.1800079cc
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x1800044a5
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000449f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800045d8
call fcn.180008280
nop
test rdi, rdi
je 0x1800044dd
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x1800044d2
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800045d2
mov rdx, rsi
mov rcx, rdi
call fcn.180008280
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.180008260
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x70], rbx
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x6c], edx
lea rcx, [rbp + 0x78]
call fcn.180005380
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x118]
call fcn.1800079cc
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x1800044a5
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000449f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800045d8
jmp 0x18000449f
call fcn.1800113b8
nop
call fcn.1800113b8
int3
call fcn.1800113b8
nop
call fcn.1800113b8
nop
test dl, 4
je 0x1800045f8
lea rbx, str.ios_base::badbit_set
jmp 0x18000460d
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1800012e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180001bd0
lea rdx, [0x180037858]
lea rcx, [rsp + 0x78]
call fcn.18000a134
int3
jmp 0x180003fd0