Function at 0x41e170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
cmp dword [ecx], 0xffffffff
je 0x41e1c4
movzx eax, byte [ebp + 0x14]
movzx edx, byte [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and dl, 0xf
shl al, 7
or al, dl
mov edx, esi
mov byte [esp + 2], al
movzx eax, byte [ecx + 4]
shl al, 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmp esi, 0x7d
mov dword [esp + 0x20], ecx
ja 0x41e1cb
or al, dl
mov byte [esp + 3], al
xor ebx, ebx
jmp 0x41e210
xor ebx, ebx
jmp 0x41e414
cmp edx, 0xffff
ja 0x41e1f5
or al, 0x7e
mov byte [esp + 3], al
mov eax, edx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, 2
jmp 0x41e210
or al, 0x7f
mov byte [esp + 3], al
mov eax, edx
bswap eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov ebx, 8
lea eax, [edx + 0xe]
push eax
call fcn.00408590
add esp, 4
mov esi, eax
lea eax, [esp + 2]
mov edx, eax
mov edi, esi
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, dword [ebp + 0xc]
mov edi, esi
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov dword [esp + 0x1c], esi
add esi, 2
cmp edx, 0x7e
jb 0x41e277
mov ecx, ebx
shr ecx, 2
lea eax, [esp + 8]
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffff8
add esi, eax
add eax, esp
add eax, 8
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
and ebx, 2
add esi, ebx
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
cmp byte [eax + 4], 0
je 0x41e2e3
mov edx, dword [ebp + 0x18]
mov ebx, edx
mov edi, esi
mov ecx, 1
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea ebx, [esi + 4]
lea eax, [edx + 4]
mov edi, ebx
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
cmp byte [edx], 0
jne 0x41e2c0
cmp byte [edx + 1], 0
jne 0x41e2c0
cmp byte [edx + 2], 0
jne 0x41e2c0
cmp byte [edx + 3], 0
je 0x41e420
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
test edx, edx
je 0x41e3a0
movzx eax, byte [ebx]
mov ecx, edx
and ecx, 3
cmp edx, 4
jae 0x41e352
xor edi, edi
jmp 0x41e386
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffffc
mov edi, ebx
lea ebx, [esi + eax]
mov dword [esp + 0x18], eax
add edi, eax
mov eax, edx
and eax, 3
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x14], esi
mov dword [esp + 4], edi
mov esi, edi
mov edi, ebx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, eax
or ecx, 1
xor eax, 0xfffffffe
and edx, 2
add ebx, edx
and eax, ecx
je 0x41e3a0
mov ecx, dword [esp + 4]
add ecx, edx
mov esi, eax
push eax
push ecx
push ebx
mov edi, edx
call fcn.004085c0
add esp, 0xc
mov eax, dword [esp + 0x18]
or eax, esi
mov ebx, dword [esp + 0x14]
add ebx, edi
add ebx, eax
jmp 0x41e3a0
and dword [esp + 4], 0xfffffffc
xor edi, edi
mov edx, esi
mov esi, dword [ebp + 0x18]
nop
nop
xor al, byte [esi]
mov byte [edx + edi + 5], al
xor al, byte [esi + 1]
mov byte [edx + edi + 6], al
xor al, byte [esi + 2]
mov byte [edx + edi + 7], al
xor al, byte [esi + 3]
mov byte [edx + edi + 8], al
add edi, 4
cmp dword [esp + 4], edi
jne 0x41e360
add ebx, edi
test ecx, ecx
mov edx, dword [ebp + 0x18]
je 0x41e3a0
nop
nop
nop
mov esi, edi
and esi, 3
xor al, byte [edx + esi]
mov byte [ebx + 1], al
inc ebx
inc edi
dec ecx
jne 0x41e390
mov esi, dword [esp + 0x1c]
sub ebx, esi
push 0xd0026952
push dword [0x44bc18]
call fcn.0043f910
add esp, 8
push 0
push ebx
push esi
mov esi, dword [esp + 0x2c]
push dword [esi]
call eax
cmp eax, 0xffffffff
setne bl
jne 0x41e408
cmp dword [esi], 0xffffffff
je 0x41e408
push 0x59ea2086
push dword [0x44bc18]
call fcn.0043f910
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44bc18]
call fcn.0043f910
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push dword [esp + 0x1c]
call fcn.004085a0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, dword [ebp + 8]
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0xfffffffc
add ebx, eax
mov dword [esp + 0x18], eax
add edx, eax
mov eax, ecx
and eax, 3
mov ecx, eax
shr ecx, 1
mov dword [esp + 4], edx
mov edi, ebx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edi, dword [ebp + 0xc]
mov ecx, eax
or ecx, 1
xor eax, 0xfffffffe
and edi, 2
add ebx, edi
and eax, ecx
je 0x41e3a0
mov ecx, eax
mov eax, dword [esp + 4]
add eax, edi
mov dword [esp + 0x14], ecx
push ecx
push eax
push ebx
call fcn.004085c0
add esp, 0xc
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x14]
add eax, edi
lea ebx, [esi + eax]
add ebx, 4
jmp 0x41e3a0