Function at 0x411810
Capabilities:
Allocate or change rwx memory
Clear file content
Execute shellcode via indirect call
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4906d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x4bb924]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x280], ecx
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x284], ecx
cmp eax, 6
jb 0x4118c7
add eax, 0xfffffffb
lea eax, [ecx + eax*2]
mov dword [ebp - 0x274], eax
sub eax, ecx
sar eax, 1
je 0x4118c7
nop dword [eax]
cmp word [ecx], 0x2e
je 0x411890
add ecx, 2
sub eax, 1
jne 0x411880
jmp 0x4118c7
test ecx, ecx
je 0x4118c7
mov edx, 0x4987e0
mov edi, ecx
mov esi, 6
sub edi, edx
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x411a90
add edx, 2
sub esi, 1
jne 0x4118a2
sub ecx, dword [ebp - 0x284]
sar ecx, 1
test ecx, ecx
jg 0x41214f
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x80
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x27c], edi
cmp edi, 0xffffffff
je 0x41214f
lea eax, [ebp - 0x2b0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x412148
mov esi, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x2ac]
sub esi, 0x147
mov dword [ebp - 0x270], esi
sbb eax, 0
mov dword [ebp - 0x26c], eax
js 0x412148
jg 0x41195a
test esi, esi
jb 0x412148
push 0x123
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.00464a10
add esp, 0xc
mov dword [ebp - 0x2bc], esi
mov esi, dword [ebp - 0x26c]
mov eax, 0xa
mov word [ebp - 0x145], ax
xorps xmm0, xmm0
mov eax, dword [0x4987f8]
mov dword [ebp - 0x125], eax
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x284]
mov word [ebp - 0x133], 0
push eax
movups xmmword [ebp - 0x143], xmm0
lea eax, [ebp - 0x268]
mov dword [ebp - 0x131], 0
movq xmm0, qword [str.jl31d25q9d3]
push 0x147
movq qword [ebp - 0x12d], xmm0
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x2c4], xmm0
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x284], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x131]
push 4
push 0x1000
push 0x40
push 0
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp byte [0x4c0558], 0
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
jne 0x411aab
lea ecx, [ebp - 0x12d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411a50
sub ecx, edx
cmp ecx, 0xb
ja 0x412148
mov ecx, str.jl31d25q9d3
lea eax, [ebp - 0x12d]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x411a9e
test dl, dl
je 0x411a8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x411a9e
add eax, 2
add ecx, 2
test dl, dl
jne 0x411a70
xor eax, eax
jmp 0x411aa3
mov eax, dword [ebp - 0x274]
add ecx, 2
jmp 0x411873
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412148
mov eax, 0x12c
cmp word [ebp - 0x13b], ax
ja 0x412148
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push 0x4987e0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x5c], xmm0
call fcn.00401ac0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
push eax
push 0
mov byte [ebp - 4], 1
call fcn.004090e0
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x5c]
call fcn.00403d00
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0x50
mov byte [ebp - 4], 5
call fcn.004629e8
mov edi, eax
add esp, 4
mov dword [ebp - 0x298], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x411bed
push 0x14
call fcn.004629e8
mov esi, eax
add esp, 4
mov dword [ebp - 0x29c], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x411bae
push 0
mov ecx, esi
call fcn.00416b30
lea eax, [ebp - 0x2c]
mov dword [esi], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov dword [esi + 4], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.1.0
mov dword [esi + 0x10], eax
jmp 0x411bb0
xor esi, esi
mov ecx, dword [ebp - 0x280]
push dword [0x4bb7dc]
add ecx, 0xc
mov byte [ebp - 4], 6
push 0
push 0x4c0560
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push esi
push 0
push 0
push eax
mov ecx, edi
call fcn.00419730
mov dword [edi], vtable.CryptoPP::PK_DecryptorFilter.0
mov dword [edi + 4], vtable.CryptoPP::PK_DecryptorFilter.1.0
jmp 0x411bef
xor edi, edi
movzx eax, word [ebp - 0x13b]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 5
push eax
call fcn.0040cd30
push edi
push 1
push eax
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 8
call fcn.0040e020
lea ecx, [ebp - 0x5c]
call fcn.00403cb0
lea ecx, [ebp - 0x120]
call fcn.0040ebb0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xe0]
cmovae edx, dword [ebp - 0x2c]
add eax, 0x20
push eax
push edx
call fcn.0040cf90
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x284]
push 0
push eax
push 0x147
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x274]
test edi, edi
jle 0x411e71
push 4
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x411d79
push 0x8000
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x411d24
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411d1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412175
push ecx
push edx
call fcn.00462a18
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 8
jb 0x412132
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411d6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412175
push ecx
push edx
call fcn.00462a18
add esp, 8
jmp 0x412132
mov eax, edi
mov edi, dword [ebp - 0x270]
cdq
mov ecx, edx
mov dword [ebp - 0x290], eax
lea edx, [ebp - 0xe0]
mov dword [ebp - 0x294], ecx
push edx
push dword [ebp - 0x26c]
push edi
push esi
push ecx
mov ecx, dword [ebp - 0x280]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x27c]
call fcn.00412180
push 0x8000
push 0
push esi
test eax, eax
jne 0x411e63
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push 0x8000
push 0
push dword [ebp - 0x278]
call esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x411e14
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411e0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412175
push ecx
push edx
call fcn.00462a18
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 8
jb 0x412132
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411d6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412175
jmp 0x411d6a
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x290]
jmp 0x411e86
mov eax, edi
mov edi, dword [ebp - 0x270]
cdq
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x294], edx
mov ecx, dword [ebp - 0x26c]
mov esi, edi
sub esi, eax
push 0
sbb ecx, dword [ebp - 0x294]
push 0x40
push ecx
push esi
call fcn.00462ca0
movsd xmm0, qword [ebp - 0x139]
mov esi, eax
mulsd xmm0, qword [0x498928]
mov eax, edx
mov ecx, esi
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x270], eax
movsd qword [ebp - 0x2a4], xmm0
call fcn.00462f90
mulsd xmm0, qword [ebp - 0x2a4]
call fcn.00462ee0
mov ecx, eax
or ecx, edx
jne 0x411f34
mov esi, dword [ebp - 0x26c]
test esi, esi
jl 0x412065
jg 0x411efb
test edi, edi
je 0x412065
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0xe0]
push eax
push esi
push edi
push dword [ebp - 0x278]
lea eax, [ebp - 0x28c]
xorps xmm0, xmm0
push esi
push edi
push eax
push dword [ebp - 0x27c]
movlpd qword [ebp - 0x28c], xmm0
call fcn.00412180
jmp 0x412065
push edx
push eax
push dword [ebp - 0x270]
push esi
call fcn.00462ca0
mov ecx, eax
mov dword [ebp - 0x2a8], eax
or ecx, edx
mov dword [ebp - 0x29c], edx
xorps xmm0, xmm0
jne 0x411f93
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0xe0]
push eax
mov eax, dword [ebp - 0x26c]
push eax
push edi
push dword [ebp - 0x278]
movlpd qword [ebp - 0x28c], xmm0
push eax
push edi
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x27c]
call fcn.00412180
jmp 0x41205f
cmp dword [ebp - 0x270], 0
movlpd qword [ebp - 0x2a4], xmm0
jl 0x41205f
jg 0x411fb2
test esi, esi
je 0x41205f
mov eax, dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x274], eax
mov ecx, esi
shld eax, ecx, 6
shl ecx, 6
add ecx, dword [ebp - 0x290]
mov dword [ebp - 0x28c], ecx
adc eax, dword [ebp - 0x294]
add ecx, 0x40
mov dword [ebp - 0x288], eax
adc eax, 0
cmp eax, dword [ebp - 0x13f]
jg 0x41205f
jl 0x411ffd
cmp ecx, dword [ebp - 0x143]
ja 0x41205f
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp - 0x28c]
push edi
push dword [ebp - 0x278]
push 0
push 0x40
push eax
push dword [ebp - 0x27c]
call fcn.00412180
add esi, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x274]
adc eax, dword [ebp - 0x29c]
mov dword [ebp - 0x274], eax
cmp eax, dword [ebp - 0x270]
jl 0x411fc4
jg 0x41205f
cmp esi, dword [ebp - 0x298]
jb 0x411fc4
mov esi, dword [ebp - 0x26c]
push 0
push 0
push esi
push edi
mov edi, dword [ebp - 0x27c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x2c]
call fcn.00403cb0
lea ecx, [ebp - 0x44]
call fcn.00403d00
jmp 0x41214f
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x41214f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00403d00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00462c85
mov esp, ebp
pop ebp
ret 0x18
call fcn.0046e37f
int3