Function at 0x4018d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0xc
cmp dword [esp + 0x24], 0
push ebx
push ebp
push esi
lea edx, [eax + 1]
movzx eax, byte [eax]
push edi
je 0x401acd
movzx ebx, byte [edx]
movzx ebp, byte [edx + 3]
movzx ecx, byte [edx + 6]
shl ebx, 8
or ebx, eax
mov esi, dword [esp + 0x24]
movzx eax, byte [edx + 1]
mov edi, dword [esp + 0x20]
shl eax, 0x10
or ebx, eax
shl ecx, 8
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ebp, eax
movzx eax, byte [edx + 5]
or ecx, eax
shl ecx, 0x10
or ebp, ecx
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff8
mov dword [esp + 0x28], ecx
js 0x401a04
lea eax, [ecx + 8]
shr eax, 3
mov dword [esp + 0x30], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [esp + 0x28], ecx
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
xor edx, ebx
or ecx, eax
mov dword [esp + 0x14], edx
movzx eax, byte [edi + 6]
mov edx, dword [esp + 0x2c]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
or ecx, eax
xor ecx, ebp
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
push 1
call fcn.00401f40
mov ebx, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 8
mov ebp, edx
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
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, edx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
sub dword [esp + 0x30], 1
mov dword [esp + 0x34], edx
jne 0x401951
mov ecx, dword [esp + 0x28]
cmp ecx, 0xfffffff8
je case.default.0x401c6f
mov eax, dword [esp + 0x28]
add edi, 8
add ecx, edi
add eax, 7
xor edx, edx
xor edi, edi
cmp eax, 7
ja case.default.0x401a22
jmp dword [eax*4 + 0x401cb4]
movzx edx, byte [ecx - 1]
dec ecx
shl edx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edx, eax
movzx eax, byte [ecx - 1]
dec ecx
or edx, eax
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
or edi, eax
xor edx, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
xor edi, ebx
mov edx, dword [esp + 0x2c]
push 1
mov dword [esp + 0x18], edi
call fcn.00401f40
mov ecx, dword [esp + 0x18]
add esp, 4
mov byte [esi], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
mov byte [esi + 4], cl
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
pop edi
mov byte [esi + 6], al
shr ecx, 0x18
mov byte [esi + 7], cl
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx ecx, byte [edx]
movzx esi, byte [edx + 3]
mov edi, dword [esp + 0x28]
shl ecx, 8
or ecx, eax
mov ebp, dword [esp + 0x24]
movzx eax, byte [edx + 1]
mov ebx, dword [esp + 0x20]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [esp + 0x34], ecx
movzx ecx, byte [edx + 6]
shl eax, 8
or esi, eax
shl ecx, 8
movzx eax, byte [edx + 5]
mov edx, dword [esp + 0x2c]
or ecx, eax
shl ecx, 0x10
mov dword [esp + 0x30], esi
or dword [esp + 0x30], ecx
add edi, 0xfffffff8
js 0x401bf6
lea eax, [edi + 8]
shr eax, 3
mov dword [esp + 0x28], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x10], edi
nop dword [eax]
movzx eax, byte [ebx + 1]
lea ecx, [esp + 0x14]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [esp + 0x14], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or esi, eax
push 0
mov dword [esp + 0x1c], esi
call fcn.00401f40
mov ecx, dword [esp + 0x38]
add esp, 4
xor ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, ecx
xor edx, dword [esp + 0x18]
mov byte [ebp], cl
shr eax, 8
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebp + 3], cl
mov byte [ebp + 4], dl
shr eax, 8
mov byte [ebp + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebp + 6], al
mov byte [ebp + 7], dl
add ebp, 8
sub dword [esp + 0x28], 1
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
jne 0x401b40
mov edi, dword [esp + 0x10]
cmp edi, 0xfffffff8
je case.default.0x401c6f
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
mov dword [esp + 0x14], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
shl ecx, 8
or esi, eax
movzx eax, byte [ebx + 6]
or ecx, eax
shl ecx, 0x10
or ecx, esi
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
push 0
call fcn.00401f40
mov edx, dword [esp + 0x38]
lea ecx, [ebp + 8]
mov ebx, dword [esp + 0x34]
add ecx, edi
xor edx, dword [esp + 0x18]
add edi, 7
xor ebx, dword [esp + 0x1c]
add esp, 4
cmp edi, 7
ja case.default.0x401c6f
jmp dword [edi*4 + 0x401cd4]
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
dec ecx
mov byte [ecx], bl
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret