Function at 0x446880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x1c
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
je 0x446ab4
movzx ebx, byte [eax]
lea edx, [eax + 1]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 8
or ebx, eax
mov edi, dword [ebp + 0xc]
movzx eax, byte [edx + 1]
shl eax, 0x10
mov esi, dword [ebp + 8]
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x1c]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
or edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp + 0x1c], edx
cmp eax, 8
jb 0x4469b0
shr eax, 3
mov dword [ebp - 4], eax
nop dword [eax]
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 8
xor edx, ebx
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
add esi, 8
push 1
push dword [ebp + 0x14]
or ecx, eax
lea eax, [ebp - 0x1c]
xor ecx, dword [ebp + 0x1c]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00444540
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
shr eax, 8
mov byte [edi + 4], dl
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 7], al
add edi, 8
mov eax, dword [ebp - 8]
sub eax, 8
mov dword [ebp + 0x1c], edx
sub dword [ebp - 4], 1
mov dword [ebp - 8], eax
jne 0x446900
test eax, eax
je 0x446a79
mov edx, dword [ebp - 8]
add esi, eax
dec edx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
cmp edx, 7
ja case.default.0x4469cd
jmp dword [edx*4 + 0x446ce4]
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 0x18
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
mov dword [ebp - 4], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
or dword [ebp - 4], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 8
or dword [ebp - 4], eax
movzx eax, byte [esi - 1]
or dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, dword [ebp + 0x1c]
xor eax, ebx
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00444540
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
shr eax, 8
mov byte [edi + 4], dl
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 7], al
mov esi, dword [ebp + 0x18]
mov eax, ebx
shr eax, 8
pop edi
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [esi + 3], bl
mov byte [esi + 4], dl
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
shr edx, 0x18
mov byte [esi + 7], dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax]
lea ebx, [eax + 1]
mov edx, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
movzx eax, byte [edx]
movzx edi, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 6]
shl eax, 8
or edi, eax
shl ecx, 8
movzx eax, byte [edx + 5]
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
or edi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
cmp eax, 8
jb 0x446bda
mov ecx, dword [ebp + 8]
shr eax, 3
mov dword [ebp - 0xc], eax
nop dword [eax]
movzx eax, byte [ecx + 1]
movzx ebx, byte [ecx]
movzx edi, byte [ecx + 4]
shl eax, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or ebx, eax
movzx eax, byte [ecx + 5]
shl eax, 8
or edi, eax
mov dword [ebp - 0x1c], ebx
movzx eax, byte [ecx + 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add ecx, 8
push 0
push dword [ebp + 0x14]
or edi, eax
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push eax
call fcn.00444540
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
xor ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, ecx
xor edx, dword [ebp - 8]
sub dword [ebp - 4], 8
mov byte [esi], cl
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0x10]
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr edx, 0x18
mov byte [esi + 7], dl
add esi, 8
sub dword [ebp - 0xc], 1
mov dword [ebp + 0x1c], eax
mov dword [ebp - 8], edi
jne 0x446b20
mov ebx, dword [ebp - 0x14]
mov edx, ecx
jmp 0x446be0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 4], 0
je 0x446ca3
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 8]
shl ecx, 0x10
or eax, ecx
push 0
push dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00444540
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add esi, eax
mov edx, dword [ebp - 0x18]
dec eax
xor ecx, dword [ebp + 0x1c]
xor edx, edi
cmp eax, 7
ja case.default.0x446c60
jmp dword [eax*4 + 0x446d04]
dec esi
mov eax, edx
shr eax, 0x18
mov byte [esi], al
dec esi
mov eax, edx
shr eax, 0x10
mov byte [esi], al
dec esi
mov eax, edx
shr eax, 8
mov byte [esi], al
dec esi
mov byte [esi], dl
dec esi
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
dec esi
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
dec esi
mov eax, ecx
shr eax, 8
mov byte [esi], al
mov byte [esi - 1], cl
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x1c], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov byte [edx], al
mov edx, dword [ebp + 0x1c]
shr eax, 8
mov byte [ebx], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr edx, 0x18
mov byte [ebx + 2], dl
mov byte [ebx + 3], cl
shr eax, 8
mov byte [ebx + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 5], al
shr ecx, 0x18
mov byte [ebx + 6], cl
pop ebx
mov esp, ebp
pop ebp
ret