Function at 0x417b35
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, 0x100
cmp dword [ebp + 8], eax
jbe 0x417b4b
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 0x417b68
push 0x422488
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], 0
jbe 0x417b87
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.0041a563
test edx, edx
mov esi, dword [ebp + 0x20]
pop ecx
pop ecx
mov dword [ebp - 4], edx
mov dword [esi], eax
je 0x417ba2
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 0x417bc8
cmp dword [ebp - 4], 0
je 0x417bc8
movzx edi, byte [eax + ebx]
shl edi, 8
jmp 0x417bda
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 0x417bb2
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.00417a60
add esp, 0x10
inc edi
cmp edi, dword [ebx]
jbe 0x417bfd
inc dword [ebx]
mov eax, dword [esi]
dec eax
cmp dword [ebx], eax
jbe 0x417bfb
xor esi, esi
cmp dword [ebp + 8], esi
jbe 0x417c4f
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.00417aa3
xor al, byte [edi]
add esp, 0x18
inc esi
cmp esi, dword [ebp + 8]
mov byte [edi], al
jb 0x417c24
mov eax, dword [ebp + 8]
lea eax, [eax + eax*4 + 5]
shl eax, 1
dec esi
cmp eax, 1
jb 0x417c93
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.00417aa3
xor al, byte [edi]
add esp, 0x18
inc esi
cmp esi, dword [ebp + 8]
mov byte [edi], al
jb 0x417c8e
xor esi, esi
dec dword [ebp + 0x10]
jne 0x417c61
push 2
push dword [ebp + 8]
call fcn.0041a563
test edx, edx
mov esi, dword [ebp + 0x20]
pop ecx
pop ecx
mov dword [ebp - 4], edx
mov dword [esi], eax
je 0x417cae
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 0x417cdd
cmp dword [ebp - 4], 0
je 0x417cdd
movzx esi, byte [eax]
shl esi, 8
jmp 0x417cea
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 0x417cc8
mov ecx, dword [ebp + 8]
test ecx, ecx
jbe 0x417d17
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.00417a60
add esp, 0x10
inc edi
cmp edi, dword [ebx]
jbe 0x417d2b
inc dword [ebx]
mov eax, dword [esi]
dec eax
cmp dword [ebx], eax
jbe 0x417d29
pop edi
pop esi
pop ebx
leave
ret