Function at 0x406119
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [0x461c0c], edi
mov esi, eax
jne 0x40613a
call fcn.00405ecb
mov dword [0x461c0c], 1
mov eax, dword [ebp + 0xc]
sub eax, 0x80
je 0x406166
sub eax, 0x40
je 0x40615e
sub eax, 0x40
je 0x406156
push 0xffffffffffffffe0
pop eax
jmp 0x406393
mov dword [esi], 0xe
jmp 0x40616c
mov dword [esi], 0xc
jmp 0x40616c
mov dword [esi], 0xa
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
shr ecx, 5
push ebx
mov dword [esi + 4], eax
mov dword [ebp + 0xc], ecx
je 0x4061a9
mov ecx, dword [ebp + 8]
add ecx, 2
movzx ebx, byte [ecx - 1]
xor edx, edx
mov dh, byte [ecx + 1]
mov dl, byte [ecx]
add ecx, 4
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx - 6]
shl edx, 8
or edx, ebx
mov dword [eax + edi*4], edx
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x406184
mov esi, dword [esi]
sub esi, 0xa
je 0x406320
dec esi
dec esi
je 0x40629e
dec esi
dec esi
jne 0x406390
and dword [ebp + 0xc], esi
mov esi, 0xff
mov ecx, dword [eax + 0x1c]
and ecx, esi
xor edx, edx
mov dh, byte [ecx + 0x45ef28]
movzx ecx, byte [eax + 0x1f]
movzx ecx, byte [ecx + 0x45ef28]
xor edx, ecx
movzx ecx, byte [eax + 0x1e]
movzx ecx, byte [ecx + 0x45ef28]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0x1d]
movzx ecx, byte [ecx + 0x45ef28]
mov edi, dword [eax + 8]
shl edx, 8
xor edx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, dword [ecx + 0x45f828]
lea ebx, [eax + 0x20]
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [ebx], ecx
mov ecx, dword [eax + 0xc]
xor edi, edx
xor ecx, edi
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x24], edx
movzx edx, byte [eax + 0x2f]
mov dword [ebp - 4], ebx
xor ebx, ebx
mov dword [eax + 0x28], edi
mov bh, byte [edx + 0x45ef28]
movzx edx, byte [eax + 0x2e]
movzx edx, byte [edx + 0x45ef28]
xor ebx, edx
movzx edx, byte [eax + 0x2d]
movzx edx, byte [edx + 0x45ef28]
add dword [ebp + 0xc], 4
and ecx, esi
movzx ecx, byte [ecx + 0x45ef28]
shl ebx, 8
xor ebx, edx
mov edx, dword [eax + 0x14]
shl ebx, 8
xor ecx, ebx
xor ecx, dword [eax + 0x10]
mov ebx, dword [ebp - 4]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, dword [eax + 0x1c]
cmp dword [ebp + 0xc], 0x1c
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
mov eax, ebx
jb 0x4061cc
jmp 0x406390
xor ebx, ebx
mov esi, 0xff
mov ecx, dword [eax + 0x14]
and ecx, esi
xor edx, edx
mov dh, byte [ecx + 0x45ef28]
movzx ecx, byte [eax + 0x17]
movzx ecx, byte [ecx + 0x45ef28]
xor edx, ecx
movzx ecx, byte [eax + 0x16]
movzx ecx, byte [ecx + 0x45ef28]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0x15]
movzx ecx, byte [ecx + 0x45ef28]
shl edx, 8
xor edx, ecx
xor edx, dword [ebx + 0x45f828]
lea edi, [eax + 0x18]
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
mov dword [eax + 0x28], ecx
xor ecx, dword [eax + 0x14]
add ebx, 4
cmp ebx, 0x20
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], ecx
mov eax, edi
jb 0x4062a5
jmp 0x406390
xor ebx, ebx
mov esi, 0xff
mov ecx, dword [eax + 0xc]
and ecx, esi
xor edx, edx
mov dh, byte [ecx + 0x45ef28]
movzx ecx, byte [eax + 0xf]
movzx ecx, byte [ecx + 0x45ef28]
xor edx, ecx
movzx ecx, byte [eax + 0xe]
movzx ecx, byte [ecx + 0x45ef28]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0xd]
movzx ecx, byte [ecx + 0x45ef28]
shl edx, 8
xor edx, ecx
xor edx, dword [ebx + 0x45f828]
lea edi, [eax + 0x10]
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, dword [eax + 0xc]
add ebx, 4
cmp ebx, 0x28
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], ecx
mov eax, edi
jb 0x406327
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret