Function at 0x41a127
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, 0x100
cmp dword [ebp + 8], eax
jbe 0x41a13d
mov dword [ebp + 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
inc eax
cmp dword [ebp + 8], eax
push esi
push edi
jae 0x41a15a
push 0x42a4d4
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], 0
jbe 0x41a179
mov ecx, dword [ebp + 8]
mov eax, ecx
shr ecx, 2
mov esi, ebx
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push dword [ebp + 8]
call fcn.00422813
test edx, edx
mov esi, dword [ebp + 0x20]
pop ecx
pop ecx
mov dword [ebp - 4], edx
mov dword [esi], eax
je 0x41a194
inc eax
mov dword [esi], eax
mov edx, dword [ebp + 0x18]
xor eax, eax
mov ecx, 0x80
mov edi, edx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov edi, dword [esi]
dec edi
cmp ecx, edi
jne 0x41a1ba
cmp dword [ebp - 4], 0
je 0x41a1ba
movzx edi, byte [eax + ebx]
shl edi, 8
jmp 0x41a1cc
movzx edi, byte [eax + ebx]
movzx edx, byte [eax + ebx + 1]
shl edi, 8
add edi, edx
mov edx, dword [ebp + 0x18]
inc eax
mov dword [edx + ecx*4], edi
mov edi, dword [esi]
inc eax
inc ecx
dec edi
cmp ecx, edi
jbe 0x41a1a4
mov eax, dword [ebp + 0x1c]
and dword [eax], 0
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [eax], 0x15a4e35
and dword [ebx], 0
xor edi, edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x1c]
call fcn.0041a052
add esp, 0x10
inc edi
cmp edi, dword [ebx]
jbe 0x41a1ef
inc dword [ebx]
mov eax, dword [esi]
dec eax
cmp dword [ebx], eax
jbe 0x41a1ed
xor esi, esi
cmp dword [ebp + 8], esi
jbe 0x41a241
push dword [ebp + 0x20]
xor eax, eax
push dword [ebp + 0x1c]
lea edi, [ebp + esi - 0x10c]
push dword [ebp + 0x18]
mov al, byte [edi]
push dword [ebp + 0x14]
push ebx
push eax
call fcn.0041a095
xor al, byte [edi]
add esp, 0x18
inc esi
cmp esi, dword [ebp + 8]
mov byte [edi], al
jb 0x41a216
mov eax, dword [ebp + 8]
lea eax, [eax + eax*4 + 5]
shl eax, 1
dec esi
cmp eax, 1
jb 0x41a285
mov dword [ebp + 0x10], eax
push dword [ebp + 0x20]
xor eax, eax
push dword [ebp + 0x1c]
lea edi, [ebp + esi - 0x10c]
push dword [ebp + 0x18]
mov al, byte [edi]
push dword [ebp + 0x14]
push ebx
push eax
call fcn.0041a095
xor al, byte [edi]
add esp, 0x18
inc esi
cmp esi, dword [ebp + 8]
mov byte [edi], al
jb 0x41a280
xor esi, esi
dec dword [ebp + 0x10]
jne 0x41a253
push 2
push dword [ebp + 8]
call fcn.00422813
test edx, edx
mov esi, dword [ebp + 0x20]
pop ecx
pop ecx
mov dword [ebp - 4], edx
mov dword [esi], eax
je 0x41a2a0
inc eax
mov dword [esi], eax
mov edi, dword [ebp + 0x18]
xor eax, eax
mov ecx, 0x80
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [ebp - 0x10b]
lea eax, [ebp - 0x10c]
mov esi, dword [esi]
dec esi
cmp ecx, esi
jne 0x41a2cf
cmp dword [ebp - 4], 0
je 0x41a2cf
movzx esi, byte [eax]
shl esi, 8
jmp 0x41a2dc
movzx esi, byte [eax]
movzx edi, byte [edx]
shl esi, 8
add esi, edi
inc eax
inc edx
mov edi, dword [ebp + 0x18]
mov dword [edi + ecx*4], esi
mov esi, dword [ebp + 0x20]
mov edi, dword [esi]
inc eax
inc edx
inc ecx
dec edi
cmp ecx, edi
jbe 0x41a2ba
mov ecx, dword [ebp + 8]
test ecx, ecx
jbe 0x41a309
mov edi, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x1c]
and dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x15a4e35
and dword [ebx], 0
xor edi, edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x1c]
call fcn.0041a052
add esp, 0x10
inc edi
cmp edi, dword [ebx]
jbe 0x41a31d
inc dword [ebx]
mov eax, dword [esi]
dec eax
cmp dword [ebx], eax
jbe 0x41a31b
pop edi
pop esi
pop ebx
leave
ret