Function at 0x41ef20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea edx, [esi + 0xb7c]
mov dword [ebp - 8], edx
lea ecx, [edi + 0x1808]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x14], eax
jle 0x41efc4
mov ecx, dword [ebp - 8]
lea edx, [esi + 0x1d7c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + 0x3f1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
movzx esi, word [edi + 4]
add esi, dword [eax + 4]
mov eax, dword [ebp - 0xc]
push eax
push edx
push edi
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x1c]
call fcn.0041f200
push esi
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push esi
call fcn.0041f4a0
mov eax, dword [ebp - 0xc]
add esi, 0x900
mov ecx, dword [ebp - 0x14]
inc eax
mov edx, dword [ebp - 0x18]
add ecx, 0x27
add esp, 0x2c
mov dword [ebp - 0xc], eax
add edi, 0x1c
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
cmp eax, dword [ebp + 0x14]
jl 0x41ef65
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov edi, dword [ebp + 8]
jmp 0x41efc7
mov dword [ebp - 8], edx
mov al, byte [edi + 0x180b]
test al, 0x10
je 0x41efea
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
add eax, 0x3f43
push ecx
push esi
push eax
push edx
call fcn.00420590
add esp, 0x10
jmp 0x41f001
and al, 0xe0
cmp al, 0x60
jne 0x41effe
push 0x240
push edx
call fcn.00420760
add esp, 8
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0
jle 0x41f1f8
lea ecx, [edi + 0x1809]
mov dword [ebp - 0x14], 0
lea eax, [esi + 0xe]
mov dword [ebp - 0x28], ecx
mov esi, dword [ebp - 8]
add edi, 0x180a
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0xc], eax
nop dword [eax]
movzx eax, byte [ecx]
mov ecx, eax
mov dword [ebp - 0x18], 0x1f
shr eax, 3
shr ecx, 4
and eax, 1
and ecx, 1
add ecx, eax
movzx eax, byte [edi]
shr eax, 2
and eax, 3
lea edx, [ecx + ecx*2]
xor ecx, ecx
add edx, eax
mov eax, 2
cmp edx, 2
mov edx, dword [ebp - 0xc]
sete cl
xor edi, edi
cmp byte [edx - 2], 0
cmovne edi, eax
shl edi, cl
cmp byte [edx], 0
mov dword [ebp - 0x20], edi
je 0x41f115
lea eax, [edi - 1]
mov dword [ebp - 0x18], eax
movzx eax, byte [edx - 1]
add eax, dword [edx - 0xe]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, edi
lea ecx, [edx + 0x1e1c]
lea eax, [eax + eax*8]
lea eax, [eax*8 + 0xb7c]
add eax, edx
mov dword [ebp - 0x24], eax
mov edx, eax
mov eax, dword [ebp - 0x10]
movzx esi, byte [eax]
test esi, esi
je 0x41f0f8
mov dword [ebp - 0x1c], esi
nop dword [eax + eax]
mov eax, dword [edx]
lea edi, [esi*8]
mov dword [ecx], eax
mov eax, dword [edx + esi*4]
mov dword [ecx + 4], eax
mov eax, dword [edx + edi]
add edx, 4
mov dword [ecx + 8], eax
add ecx, 0xc
sub dword [ebp - 0x1c], 1
jne 0x41f0c0
mov eax, dword [ebp - 0x10]
add edx, edi
add eax, 3
mov dword [ebp - 0x10], eax
movzx esi, byte [eax]
test esi, esi
jne 0x41f0b8
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
add eax, 0x1e1c
sub ecx, eax
and ecx, 0xfffffffc
push ecx
push eax
push dword [ebp - 0x24]
call sub.msvcrt.dll_memcpy
mov esi, dword [ebp - 8]
add esp, 0xc
push dword [ebp - 0x18]
push esi
call fcn.0041edd0
mov eax, dword [ebp - 0xc]
add esp, 8
mov edx, esi
mov al, byte [eax - 3]
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
mov ecx, eax
test edi, edi
je 0x41f154
push edi
push 0x448528
push eax
push esi
call fcn.0041fc50
mov ecx, dword [ebp + 8]
lea eax, [edi + edi*8]
lea edx, [esi + eax*8]
add esp, 0x10
lea eax, [edi + edi*8]
lea ecx, [ecx + eax*4]
mov eax, 0x20
sub eax, edi
cmp byte [ebp - 1], 2
push eax
jne 0x41f16e
push ecx
push edx
call fcn.00420300
add esp, 0xc
jmp 0x41f18c
xor eax, eax
mov edi, 0x48
cmp byte [ebp - 1], 3
cmove eax, edi
add eax, 0x448528
push eax
push ecx
push edx
call fcn.0041fc50
add esp, 0x10
movss xmm1, dword [0x449110]
lea ecx, [esi + 0x48]
mov edx, 0x10
nop dword [eax]
mov eax, 1
nop word [eax + eax]
movss xmm0, dword [ecx + eax*4]
xorps xmm0, xmm1
movss dword [ecx + eax*4], xmm0
add eax, 2
cmp eax, 0x12
jl 0x41f1b0
add ecx, 0x90
sub edx, 1
jne 0x41f1a0
add dword [ebp - 0x14], 0x20
add esi, 0x900
add dword [ebp + 8], 0x480
add dword [ebp - 0xc], 0x1c
sub dword [ebp + 0x14], 1
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 8], esi
jne 0x41f030
pop edi
pop esi
mov esp, ebp
pop ebp
ret