Function at 0x40ea20
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Generate random numbers via winapi
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d535
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x427008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx + 4]
cmp dword [eax + 0x1c], 0
jne 0x40ea6d
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x10], 0
je 0x40ebb5
cmp dword [eax + 0x14], 8
jb 0x40ea7f
mov eax, dword [eax]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push 0x4240e0
push eax
call esi
add esp, 8
test eax, eax
je 0x40ebb5
mov eax, dword [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40eaa3
mov eax, dword [eax]
push str.Rijndael
push eax
call esi
add esp, 8
test eax, eax
je 0x40ebb5
mov eax, dword [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40eac1
mov eax, dword [eax]
push str.TWOFISH
push eax
call esi
add esp, 8
test eax, eax
jne 0x40eadc
mov dword [ebp - 0x10], 1
jmp 0x40ebbc
mov eax, dword [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40eae7
mov eax, dword [eax]
push str.SERPENT
push eax
call esi
add esp, 8
test eax, eax
jne 0x40eb02
mov dword [ebp - 0x10], 2
jmp 0x40ebbc
mov eax, dword [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40eb0d
mov eax, dword [eax]
push str.AES_TWOFISH
push eax
call esi
add esp, 8
test eax, eax
jne 0x40eb28
mov dword [ebp - 0x10], 3
jmp 0x40ebbc
mov eax, dword [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40eb33
mov eax, dword [eax]
push str.TWOFISH_SERPENT
push eax
call esi
add esp, 8
test eax, eax
jne 0x40eb4b
mov dword [ebp - 0x10], 4
jmp 0x40ebbc
mov eax, dword [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40eb56
mov eax, dword [eax]
push str.SERPENT_AES
push eax
call esi
add esp, 8
test eax, eax
jne 0x40eb6e
mov dword [ebp - 0x10], 5
jmp 0x40ebbc
mov eax, dword [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40eb79
mov eax, dword [eax]
push str.AES_TWOFISH_SERPENT
push eax
call esi
add esp, 8
test eax, eax
jne 0x40eb91
mov dword [ebp - 0x10], 6
jmp 0x40ebbc
push str.Unknown_Cipher._n
call fcn.0040d690
add esp, 4
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualLock]
mov byte [ecx + 0x18], al
mov eax, dword [ebx + 4]
cmp byte [eax + 0x18], 0
je 0x40ed2d
push str.Creating_DC_header_n
call fcn.0040d690
add esp, 4
push 0x40
push 0x3000
push 0x800
push 0
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40ec13
push 0x800
push esi
call edi
mov dword [ebp - 4], 0
test esi, esi
jne 0x40ec48
push str.Malloc_Failed_n
call fcn.0040d690
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0040f310
lea eax, [esi + 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
lea eax, [esi + 0x4e]
add esp, 0xc
push 2
push 4
push eax
push 0
call edi
push 2
push pe_nt_image_headers32
lea eax, [esi + 0x56]
push eax
push 0
call edi
mov dword [esi + 0x40], 0x50524344
lea edi, [esi + 0x49]
mov eax, 1
or edx, 0xffffffff
mov word [esi + 0x48], ax
mov ebx, 0x1ee
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x4a], 8
mov dword [esi + 0x52], eax
mov dword [esi + 0x25a], 0x800
mov dword [esi + 0x25e], 0
movzx ecx, byte [edi - 1]
lea edi, [edi + 4]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x422340]
movzx ecx, byte [edi - 4]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x422340]
movzx ecx, byte [edi - 3]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x422340]
movzx ecx, byte [edi - 2]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x422340]
sub ebx, 1
jne 0x40ecb5
mov ebx, dword [ebp - 0x18]
not edx
mov dword [esi + 0x44], edx
mov ecx, ebx
push esi
mov eax, dword [ebx]
call dword [eax + 0x2c]
lea ecx, [ebp - 0x14]
call fcn.0040f310
mov edi, dword [sym.imp.KERNEL32.dll_VirtualLock]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push str.Trying_to_decrypt_header...
call fcn.0040d690
add esp, 4
push 0x40
push 0x3000
push 0x800
push 0
call esi
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40ed5b
push 0x800
push esi
call edi
mov dword [ebp - 4], 1
test esi, esi
jne 0x40ed70
lea edi, [esi + 0xd]
mov eax, str.Malloc_Failed_n
jmp 0x40edc4
mov ecx, dword [ebx + 8]
push 0
push 0
push 0x800
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
mov edx, dword [ebx + 4]
mov ecx, esi
mov edx, dword [edx + 0x1c]
call fcn.00418530
test eax, eax
mov eax, dword [ebx + 4]
je 0x40edae
mov edx, dword [esi + 0x52]
lea ecx, [esi + 0x56]
add eax, 0x20
xor edi, edi
push eax
call fcn.00418210
mov eax, str._SUCCESS._n
jmp 0x40edc4
cmp byte [eax + 0x18], 0
mov edi, 4
mov ecx, 7
mov eax, str._FAILED._n
cmovne edi, ecx
push eax
call fcn.0040d690
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.0040f310
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret