Function at 0x41a550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0x10
call fcn.0041a4a0
mov ebx, 0x10
mov dword [ebp - 0x40], ebx
cmp edi, ebx
jae 0x41a59d
mov ebx, edi
mov dword [ebp - 0x40], edi
push ebx
push dword [ebp - 0x5c]
lea eax, [ebp - 0x24]
push eax
call fcn.00433580
add esp, 0xc
cmp ebx, 0x10
jae 0x41a61c
xor ecx, ecx
test ebx, ebx
je 0x41a5cd
jmp 0x41a5c0
mov al, byte [ebp + ecx - 0x34]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, ebx
jb 0x41a5c0
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
add ecx, ebx
mov edx, ecx
call fcn.0041c9ac
mov eax, dword [esi]
add ebx, 0x10
add esp, 4
mov esi, ebx
cmp ebx, eax
jbe 0x41a5ec
mov esi, eax
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x48]
call fcn.00433580
add esp, 0xc
cmp esi, ebx
jne 0x41a7c2
mov ecx, dword [ebp - 0x44]
mov al, 1
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
mov ebx, 0x10
lea edi, [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
mov dword [ebp - 0x54], edi
lea edi, [ebp - 0x14]
mov dword [ebp - 0x38], edi
cmp eax, ebx
jae 0x41a63b
mov ebx, eax
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x48]
call fcn.00433580
add esp, 0xc
cmp ebx, 0x10
jne 0x41a7c2
mov ecx, dword [ebp - 0x40]
mov esi, 0x10
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x58], esi
lea eax, [ecx + 0x10]
cmp eax, edx
jbe 0x41a670
mov esi, edx
sub esi, ecx
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x5c]
push esi
add eax, ecx
push eax
push edi
call fcn.00433580
add dword [ebp - 0x40], esi
add esp, 0xc
mov esi, dword [ebp - 0x54]
mov edi, esi
mov ecx, dword [ebp - 0x3c]
sub edi, ecx
lea edx, [esi + 2]
mov esi, 4
movzx eax, byte [edi + ecx]
lea ecx, [ecx + 4]
xor byte [ecx - 4], al
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
xor byte [ecx - 3], al
movzx eax, byte [edx - 4]
xor byte [ecx - 2], al
movzx eax, byte [edx - 3]
xor byte [ecx - 1], al
dec esi
jne 0x41a695
mov edx, dword [ebp - 0x3c]
mov ecx, edx
push dword [ebp - 0x4c]
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x38]
call fcn.0041c9ac
add esp, 4
test esi, esi
je 0x41a75f
cmp esi, 0x10
je 0x41a75f
mov dword [ebp - 0x50], esi
test esi, esi
je 0x41a700
mov eax, edi
mov edx, esi
mov edi, dword [ebp - 0x3c]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x41a6f1
mov edi, dword [ebp - 0x38]
cmp esi, 0x10
jae 0x41a721
lea ecx, [esi + edi]
mov edx, 0x10
mov edi, dword [ebp - 0x3c]
sub edi, dword [ebp - 0x38]
sub edx, esi
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x41a715
mov edx, dword [ebp - 0x38]
mov ecx, edx
push dword [ebp - 0x4c]
call fcn.0041c9ac
mov ecx, dword [ebp - 0x44]
lea eax, [ebx + 0x10]
add esp, 4
mov edi, 0x10
mov ecx, dword [ecx]
cmp eax, ecx
jbe 0x41a746
mov edi, ecx
sub edi, ebx
mov eax, dword [ebp - 0x48]
push edi
push dword [ebp - 0x38]
add eax, ebx
push eax
call fcn.00433580
add esp, 0xc
add ebx, edi
cmp edi, 0x10
jne 0x41a7c2
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x50]
mov edi, eax
add eax, ebx
cmp eax, ecx
jbe 0x41a773
mov edi, ecx
sub edi, ebx
mov eax, dword [ebp - 0x48]
push edi
push dword [ebp - 0x3c]
add eax, ebx
push eax
call fcn.00433580
mov eax, dword [ebp - 0x50]
add esp, 0xc
add ebx, edi
cmp edi, eax
jne 0x41a7c2
cmp esi, 0x10
jne 0x41a7aa
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x3c], eax
jmp 0x41a654
mov eax, dword [ebp - 0x44]
pop edi
pop esi
mov dword [eax], ebx
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret