Function at 0x41c630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
lea edx, [eax + edx*4]
push esi
xor eax, eax
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
inc ecx
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x40]
mov dword [ebp - 0x18], eax
call fcn.00418840
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
lea eax, [ecx + eax*4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov edi, dword [ebx + 0x18]
mov edx, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x1c]
je 0x41c73b
mov esi, dword [edi]
test esi, esi
je 0x41c730
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
jb 0x41c6d8
mov ecx, dword [eax]
jmp 0x41c6da
mov ecx, eax
mov edx, dword [eax + 0x10]
add edx, ecx
cmp dword [eax + 0x14], 0x10
jb 0x41c6e7
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x14], eax
xor eax, eax
cmp ecx, edx
je 0x41c715
mov edi, eax
mov ebx, eax
shl edi, 6
shr ebx, 2
add edi, ebx
movsx ebx, byte [ecx]
lea edi, [edi + ebx - 0x61c88647]
inc ecx
xor eax, edi
cmp ecx, edx
jne 0x41c6f2
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
xor edx, edx
div dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [esi]
mov dword [edi], ecx
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [esi], edx
mov dword [eax], esi
mov esi, dword [edi]
test esi, esi
jne 0x41c6cb
add edi, 4
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x1c]
jne 0x41c6c5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebx + 4]
mov dword [ebx + 4], eax
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
je 0x41c774
mov eax, dword [ebx]
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
jne 0x41c77e
add eax, 4
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
je 0x41c767
jmp 0x41c77e
mov edx, eax
mov eax, dword [ebx]
lea ecx, [eax + edx*4]
mov dword [ebx + 0x18], ecx
mov edx, dword [ebx + 4]
fld dword [ebx + 0x14]
fild dword [ebx + 4]
test edx, edx
jns 0x41c791
fadd qword [0x648fc8]
fmulp st(1)
sub esp, 8
fstp qword [esp]
call fcn.0052dcf0
fld qword [0x649010]
add esp, 8
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x41c7b7
fstp st(0)
or eax, 0xffffffff
jmp 0x41c7d2
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x20], eax
fldcw word [ebp - 0x20]
fistp qword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
fldcw word [ebp + 0xa]
cmp dword [ebp - 0x3c], 0
mov dword [ebx + 0x1c], eax
je 0x41c7e4
lea eax, [ebp - 0x3c]
push eax
call fcn.0041c080
cmp dword [ebp - 0x30], 0
je 0x41c7f3
lea ecx, [ebp - 0x30]
push ecx
call fcn.0041c080
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4