Function at 0x41d99cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x44]
add al, 0xfc
sub al, 4
setb al
mov byte [ebp - 9], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x200
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x12
call sub.rtl60.bpl__System__FillChar_qqrpvic
mov eax, dword [ebp + 8]
mov edi, dword [eax - 8]
cmp edi, 8
jle 0x41d9a20
mov edi, 8
lea edx, [ebp - 0x22]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, edi
call sub.rtl60.bpl__System_Move_qqrpxvpvi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x44]
sub al, 1
je 0x41d9a41
sub al, 4
jne 0x41d9a85
mov al, byte [ebp - 0x22]
xor al, byte [ebp - 0x20]
xor al, 0x81
mov byte [ebp - 0x1d], al
mov al, byte [ebp - 0x22]
xor al, byte [ebp - 0x1f]
xor al, byte [ebp - 0x1e]
xor al, 0x42
mov byte [ebp - 0x1c], al
mov al, byte [ebp - 0x21]
xor al, byte [ebp - 0x20]
xor al, byte [ebp - 0x1e]
xor al, 0x24
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x21]
xor al, byte [ebp - 0x1f]
xor al, 0x18
mov byte [ebp - 0x1a], al
lea edx, [ebp - 0x19]
lea eax, [ebp - 0x22]
mov ecx, 9
call sub.rtl60.bpl__System_Move_qqrpxvpvi
jmp 0x41d9add
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 8
jle 0x41d9ab6
mov eax, dword [ebp + 8]
mov edi, dword [eax - 8]
sub edi, 8
cmp edi, 8
jle 0x41d9aa1
mov edi, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 8
lea edx, [ebp - 0x19]
mov ecx, edi
call sub.rtl60.bpl__System_Move_qqrpxvpvi
jmp 0x41d9ac6
lea edx, [ebp - 0x19]
lea eax, [ebp - 0x22]
mov ecx, 9
call sub.rtl60.bpl__System_Move_qqrpxvpvi
mov edi, 8
lea eax, [ebp - 0x22]
mov dl, byte [eax]
xor byte [ebp - 0x1a], dl
mov dl, byte [eax + 9]
xor byte [ebp - 0x11], dl
inc eax
dec edi
jne 0x41d9ace
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x19]
mov ecx, 8
call sub.rtl60.bpl__System_Move_qqrpxvpvi
add dword [ebp - 4], 8
mov edi, 9
lea ebx, [ebp - 0x22]
mov al, byte [ebx]
call fcn.041d99c4
mov byte [ebx], al
inc ebx
dec edi
jne 0x41d9af9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
test eax, eax
jle 0x41d9c10
mov dword [ebp - 0x10], eax
mov edi, 1
mov esi, 9
lea ebx, [ebp - 0x22]
mov al, byte [ebx]
call fcn.041d99c8
mov byte [ebx], al
mov al, byte [ebx + 9]
call fcn.041d99c8
mov byte [ebx + 9], al
inc ebx
dec esi
jne 0x41d9b27
xor esi, esi
lea ecx, [ebp - 0x22]
cmp byte [ebp - 9], 0
je 0x41d9b7b
mov eax, edi
add eax, eax
add eax, esi
dec eax
mov ebx, 9
cdq
idiv ebx
mov al, byte [ebp + edx - 0x22]
mov edx, edi
add edx, edx
lea edx, [edx + edx*8]
add edx, esi
mov ebx, dword [ebp - 8]
movzx edx, byte [ebx + edx + 1]
mov ebx, dword [ebp - 8]
add al, byte [ebx + edx]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x41d9b99
mov eax, edi
add eax, eax
lea eax, [eax + eax*8]
add eax, esi
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
add al, byte [ecx]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc esi
inc ecx
cmp esi, 8
jne 0x41d9b44
xor esi, esi
lea ecx, [ebp - 0x19]
cmp byte [ebp - 9], 0
je 0x41d9bde
mov eax, edi
add eax, eax
add eax, esi
mov ebx, 9
cdq
idiv ebx
mov al, byte [ebp + edx - 0x19]
mov edx, edi
add edx, edx
lea edx, [edx + edx*8]
add edx, esi
mov ebx, dword [ebp - 8]
movzx edx, byte [ebx + edx + 0xa]
mov ebx, dword [ebp - 8]
add al, byte [ebx + edx]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x41d9bfc
mov eax, edi
add eax, eax
lea eax, [eax + eax*8]
add eax, esi
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 0xa]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
add al, byte [ecx]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc esi
inc ecx
cmp esi, 8
jne 0x41d9ba8
inc edi
dec dword [ebp - 0x10]
jne 0x41d9b1f
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x12
call sub.rtl60.bpl__System__FillChar_qqrpvic
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret