Function at 0x41fe70
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 0x41fec4
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 0x41fecb
or al, dl
mov byte [esp + 3], al
xor ebx, ebx
jmp 0x41ff10
xor ebx, ebx
jmp 0x420124
cmp edx, 0xffff
ja 0x41fef5
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 0x41ff10
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.00408ac0
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 0x41ff77
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 edx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
cmp byte [eax + 4], 0
je 0x41ffe5
mov eax, dword [ebp + 0x18]
mov ebx, eax
mov edi, esi
mov ecx, 1
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea ebx, [esi + 4]
lea edx, [eax + 4]
mov edi, ebx
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
cmp byte [eax], 0
jne 0x41ffc2
cmp byte [eax + 1], 0
jne 0x41ffc2
cmp byte [eax + 2], 0
jne 0x41ffc2
cmp byte [eax + 3], 0
je 0x420130
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4200b0
movzx ecx, byte [ebx]
mov edx, eax
and edx, 3
mov dword [esp + 4], eax
cmp eax, 4
jae 0x420057
xor edi, edi
jmp 0x420096
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov ebx, eax
shr ecx, 2
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, ebx
mov eax, ebx
and eax, 0xfffffffc
lea ebx, [esi + eax]
mov dword [esp + 0x14], eax
add edx, eax
mov eax, ecx
and eax, 3
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x18], edx
mov dword [esp + 4], edx
mov edi, ebx
mov edx, dword [esp + 4]
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ecx, dword [ebp + 0xc]
mov edi, ecx
and edi, 2
add ebx, edi
xor ecx, 2
and ecx, eax
je 0x4200b0
mov eax, dword [esp + 0x18]
add eax, edi
push ecx
push eax
push ebx
mov ebx, ecx
call fcn.00408af0
add esp, 0xc
mov eax, dword [esp + 0x14]
or eax, ebx
add esi, edi
add esi, eax
mov ebx, esi
jmp 0x4200b0
and dword [esp + 4], 0xfffffffc
xor edi, edi
mov eax, dword [ebp + 0x18]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor cl, byte [eax]
mov byte [esi + edi + 5], cl
xor cl, byte [eax + 1]
mov byte [esi + edi + 6], cl
xor cl, byte [eax + 2]
mov byte [esi + edi + 7], cl
xor cl, byte [eax + 3]
mov byte [esi + edi + 8], cl
add edi, 4
cmp dword [esp + 4], edi
jne 0x420070
add ebx, edi
test edx, edx
mov eax, dword [ebp + 0x18]
je 0x4200b0
nop
nop
nop
mov esi, edi
and esi, 3
xor cl, byte [eax + esi]
mov byte [ebx + 1], cl
inc ebx
inc edi
dec edx
jne 0x4200a0
mov esi, dword [esp + 0x1c]
sub ebx, esi
push 0xd0026952
push dword [0x44c9f0]
call fcn.004401d0
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 0x420118
cmp dword [esi], 0xffffffff
je 0x420118
push 0x59ea2086
push dword [0x44c9f0]
call fcn.004401d0
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44c9f0]
call fcn.004401d0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push dword [esp + 0x1c]
call fcn.00408ad0
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 + 0x14], eax
add edx, eax
mov eax, ecx
and eax, 3
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x18], edx
mov dword [esp + 4], edx
mov edi, ebx
mov edx, dword [esp + 4]
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ecx, dword [ebp + 0xc]
mov edi, ecx
and edi, 2
add ebx, edi
xor ecx, 2
and ecx, eax
je 0x4200b0
mov eax, dword [esp + 0x18]
add eax, edi
push ecx
push eax
push ebx
mov ebx, ecx
call fcn.00408af0
add esp, 0xc
mov eax, dword [esp + 0x14]
or eax, ebx
add eax, edi
lea ebx, [esi + eax]
add ebx, 4
jmp 0x4200b0