Function at 0x41a250
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
add eax, 0xffffe998
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov dword [esp + 0x24], eax
mov esi, edx
lea eax, [ecx - 0x88d]
xor esi, 0x1801
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
lea eax, [edx - 0x74f]
xor ebp, 0x14d8
xor edi, 0x180a
cmp ecx, eax
jg 0x41a4a5
mov ebp, dword [esp + 0x18]
xor esi, 0x1d27
push dword [0x4ac344]
mov ebx, dword [esp + 0x28]
xor ebx, 0x1d6b
mov eax, dword [ebp + 4]
add dword [0x4ae128], eax
lea eax, [ecx + 0xf7d]
push eax
lea eax, [ecx + 0x180a]
push eax
lea eax, [edi + 0x1801]
push eax
push esi
call fcn.00405fc0
mov edx, dword [0x4ac344]
add esp, 0x14
mov edi, eax
mov dword [esp + 0x28], edi
mov ecx, dword [edx + 0xc4]
cmp ecx, dword [edx + 0xf4]
jae 0x41a311
mov ecx, dword [ebp + 0x80]
add ecx, dword [0x4ae120]
xor ecx, 0x12d147
mov dword [ebp + 0x60], ecx
jmp 0x41a325
mov eax, 0x1d6ca
sub eax, dword [ebp + 0x10]
sub eax, dword [0x4ae0a8]
add dword [ebp + 0x9c], eax
lea eax, [esi - 0xb26]
cmp dword [esp + 0x20], eax
jge 0x41a53a
lea eax, [ebx + 0x1e54]
push eax
lea eax, [ebx + 0x1d27]
push eax
lea eax, [esi - 0x51d]
push eax
lea eax, [esi - 0x1346]
add esi, 0xfffff38b
push 0x4ae060
push eax
push esi
call fcn.00418a60
mov eax, dword [0x4ae06c]
add esp, 0x18
add eax, 0x2eb1060b
add eax, dword [ebp + 8]
add dword [ebp + 0x5c], eax
cmp dword [ebp + 8], 0x902e
je 0x41a38d
mov eax, dword [0x4ac344]
mov dword [eax + 0xa4], 0x482000
xor edi, edi
nop
mov eax, dword [0x4ac344]
mov eax, dword [eax + 0x80]
xor eax, dword [0x4ae108]
sub eax, 0x1bd937
imul eax, dword [ebp + 0xb4]
mov dword [ebp + 0xb4], eax
mov eax, dword [0x4ae104]
mov esi, dword [0x4ac344]
mov ecx, dword [edi + eax]
add edi, 4
mov eax, dword [esi + 0x10]
add dword [0x4ae0e0], eax
mov ebx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x60]
imul ebx, ecx
mov ecx, dword [esi + 0xac]
mov edx, ebx
shr edx, 8
mov byte [ecx + eax], dl
inc dword [ebp + 0x60]
mov ecx, dword [0x4ae0c0]
mov eax, dword [0x4ae10c]
mov byte [ecx + eax], bl
inc dword [0x4ae0c0]
mov eax, dword [0x4ae114]
add eax, 0xffe755da
add eax, dword [ebp + 0x64]
or dword [ebp + 0x48], eax
mov eax, dword [ebp + 0xf4]
mov ecx, dword [0x4ac344]
sub eax, 0x18cd5a
imul eax, dword [0x4ae130]
mov dword [0x4ae130], eax
mov eax, dword [ebp + 0xc4]
sub eax, dword [0x4ae0a8]
xor dword [ecx + 0xd0], eax
mov eax, dword [0x4ae124]
dec eax
add eax, dword [ebp + 0xd0]
add dword [ebp + 0x80], eax
mov eax, dword [ebp + 0x80]
sub eax, dword [0x4ae0b0]
mov dword [ebp + 0x80], eax
mov eax, dword [0x4ae154]
add eax, 0xfffffffd
add eax, dword [ebp + 0x78]
mov dword [0x4ae154], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x4ae150]
add ecx, dword [0x4ae120]
add eax, 0xffed2eb9
add eax, ecx
mov dword [0x4ae150], eax
cmp edi, 0x28f98
jl 0x41a390
mov edi, dword [esp + 0x28]
xor edi, 0xa0b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0xe4]
xor eax, ebp
xor eax, esi
mov dword [ebx + 0xe4], eax
mov eax, dword [0x4ac344]
mov ecx, dword [eax + 0xe4]
mov eax, dword [ebx + 0xb4]
add ecx, 0xffffedff
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
imul eax, ebp, 0x1ee6
add eax, 0xaf3
cmp esi, eax
jl 0x41a53a
mov eax, dword [0x4ac344]
mov ebp, dword [ebx + 0xf4]
mov ecx, ebp
sub ecx, dword [eax + 8]
add ecx, 0x1201
cmp esi, ecx
jb 0x41a53a
mov edx, dword [ebx + 0xc]
mov eax, edi
inc esi
or eax, 0xf7d
imul edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [0x4ac344]
mov eax, dword [0x4ae09c]
sub eax, dword [ebx + 0xf8]
xor eax, dword [ecx + 0x88]
add edi, eax
mov eax, ebp
sub eax, dword [ecx + 8]
add eax, 0x1201
cmp esi, eax
jae 0x41a505
xor edi, 0xa0b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret