Function at 0x405290
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x46db50], 0
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, eax
jne 0x4052b0
call fcn.00405030
mov dword [0x46db50], 1
mov eax, edi
sub eax, 0x80
je 0x4052dd
sub eax, 0x40
je 0x4052d4
sub eax, 0x40
je 0x4052cb
pop edi
mov eax, 0xffffffe0
pop ebp
ret
mov dword [ebp], 0xe
jmp 0x4052e4
mov dword [ebp], 0xc
jmp 0x4052e4
mov dword [ebp], 0xa
push ebx
push esi
lea eax, [ebp + 8]
xor esi, esi
shr edi, 5
mov dword [ebp + 4], eax
je 0x405328
mov ecx, dword [esp + 0x18]
add ecx, 2
lea ebx, [ebx]
movzx ebx, byte [ecx - 1]
xor edx, edx
mov dh, byte [ecx + 1]
add esi, 1
add ecx, 4
mov dl, byte [ecx - 4]
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx - 6]
shl edx, 8
or edx, ebx
cmp esi, edi
mov dword [eax + esi*4 - 4], edx
jb 0x405300
mov ecx, dword [ebp]
sub ecx, 0xa
je 0x4055f4
sub ecx, 2
je 0x405419
sub ecx, 2
jne 0x4057eb
xor edi, edi
mov ebp, dword [eax + 0x1c]
xor edx, edx
mov ecx, ebp
and ecx, 0xff
mov dh, byte [ecx + 0x46adf0]
movzx ecx, byte [eax + 0x1f]
movzx ecx, byte [ecx + 0x46adf0]
xor edx, ecx
movzx ecx, byte [eax + 0x1e]
movzx ecx, byte [ecx + 0x46adf0]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0x1d]
movzx ecx, byte [ecx + 0x46adf0]
mov esi, dword [eax + 8]
shl edx, 8
xor edx, ecx
xor edx, dword [edi + 0x46b6f0]
xor ebx, ebx
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0xc]
xor esi, edx
xor ecx, esi
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x24], edx
movzx edx, byte [eax + 0x2f]
mov dword [eax + 0x28], esi
mov bh, byte [edx + 0x46adf0]
movzx edx, byte [eax + 0x2e]
movzx edx, byte [edx + 0x46adf0]
xor ebx, edx
movzx edx, byte [eax + 0x2d]
movzx edx, byte [edx + 0x46adf0]
and ecx, 0xff
movzx ecx, byte [ecx + 0x46adf0]
shl ebx, 8
xor ebx, edx
mov edx, dword [eax + 0x14]
shl ebx, 8
xor ecx, ebx
xor ecx, dword [eax + 0x10]
add edi, 4
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, ebp
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
add eax, 0x20
cmp edi, 0x1c
jb 0x405348
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret
xor ecx, ecx
jmp 0x405420
mov ebp, dword [eax + 0x14]
xor ebx, ebx
mov edx, ebp
and edx, 0xff
mov bh, byte [edx + 0x46adf0]
movzx edx, byte [eax + 0x17]
movzx edx, byte [edx + 0x46adf0]
xor ebx, edx
movzx edx, byte [eax + 0x16]
movzx edx, byte [edx + 0x46adf0]
mov esi, dword [eax + 4]
mov edi, dword [eax + 0xc]
shl ebx, 8
xor ebx, edx
movzx edx, byte [eax + 0x15]
movzx edx, byte [edx + 0x46adf0]
shl ebx, 8
xor ebx, edx
xor ebx, dword [ecx + 0x46b6f0]
mov edx, ebx
xor edx, dword [eax]
xor esi, edx
mov dword [eax + 0x18], edx
mov edx, dword [eax + 8]
xor edx, esi
mov dword [eax + 0x1c], esi
mov esi, dword [eax + 0x10]
xor edi, edx
xor esi, edi
mov dword [eax + 0x28], esi
mov dword [eax + 0x20], edx
xor esi, ebp
mov dword [eax + 0x2c], esi
and esi, 0xff
xor edx, edx
mov dword [eax + 0x24], edi
mov dh, byte [esi + 0x46adf0]
movzx esi, byte [eax + 0x2f]
movzx esi, byte [esi + 0x46adf0]
xor edx, esi
movzx esi, byte [eax + 0x2e]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x2d]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
xor edx, dword [ecx + 0x46b6f4]
mov esi, dword [eax + 0x1c]
xor edx, dword [eax + 0x18]
xor esi, edx
mov dword [eax + 0x30], edx
mov edx, dword [eax + 0x20]
xor edx, esi
mov dword [eax + 0x34], esi
mov dword [eax + 0x38], edx
mov esi, edi
xor esi, edx
mov edx, dword [eax + 0x28]
xor edx, esi
mov dword [eax + 0x3c], esi
mov esi, dword [eax + 0x2c]
xor esi, edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], esi
and esi, 0xff
xor edx, edx
mov dh, byte [esi + 0x46adf0]
movzx esi, byte [eax + 0x47]
movzx esi, byte [esi + 0x46adf0]
xor edx, esi
movzx esi, byte [eax + 0x46]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x45]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
xor edx, dword [ecx + 0x46b6f8]
xor edx, dword [eax + 0x30]
mov esi, dword [eax + 0x34]
xor esi, edx
mov dword [eax + 0x48], edx
mov edx, dword [eax + 0x38]
xor edx, esi
mov dword [eax + 0x4c], esi
mov esi, dword [eax + 0x3c]
xor esi, edx
mov dword [eax + 0x50], edx
mov edx, dword [eax + 0x40]
xor edx, esi
mov dword [eax + 0x54], esi
mov esi, dword [eax + 0x44]
xor esi, edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], esi
and esi, 0xff
xor edx, edx
mov dh, byte [esi + 0x46adf0]
movzx esi, byte [eax + 0x5f]
movzx esi, byte [esi + 0x46adf0]
xor edx, esi
movzx esi, byte [eax + 0x5e]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x5d]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
xor edx, dword [ecx + 0x46b6fc]
mov esi, dword [eax + 0x4c]
xor edx, dword [eax + 0x48]
add ecx, 0x10
xor esi, edx
mov dword [eax + 0x60], edx
mov edx, dword [eax + 0x50]
xor edx, esi
mov dword [eax + 0x64], esi
mov esi, dword [eax + 0x54]
xor esi, edx
mov dword [eax + 0x68], edx
mov edx, dword [eax + 0x58]
xor edx, esi
mov dword [eax + 0x6c], esi
mov esi, dword [eax + 0x5c]
xor esi, edx
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], esi
add eax, 0x60
cmp ecx, 0x20
jb 0x405420
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret
xor ecx, ecx
jmp 0x405600
mov esi, dword [eax + 0xc]
mov edx, esi
and edx, 0xff
xor ebx, ebx
mov bh, byte [edx + 0x46adf0]
movzx edx, byte [eax + 0xf]
movzx edx, byte [edx + 0x46adf0]
xor ebx, edx
movzx edx, byte [eax + 0xe]
movzx edx, byte [edx + 0x46adf0]
mov edi, dword [eax + 4]
shl ebx, 8
xor ebx, edx
movzx edx, byte [eax + 0xd]
movzx edx, byte [edx + 0x46adf0]
shl ebx, 8
xor ebx, edx
xor ebx, dword [ecx + 0x46b6f0]
mov edx, ebx
xor edx, dword [eax]
mov dword [eax + 0x10], edx
xor edi, edx
mov edx, dword [eax + 8]
xor edx, edi
xor esi, edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], esi
and esi, 0xff
xor edx, edx
mov dword [eax + 0x14], edi
mov dh, byte [esi + 0x46adf0]
movzx esi, byte [eax + 0x1f]
movzx esi, byte [esi + 0x46adf0]
xor edx, esi
movzx esi, byte [eax + 0x1e]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x1d]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
xor edx, dword [ecx + 0x46b6f4]
mov esi, edi
xor edx, dword [eax + 0x10]
xor esi, edx
mov dword [eax + 0x20], edx
mov edx, dword [eax + 0x18]
xor edx, esi
mov dword [eax + 0x24], esi
mov esi, dword [eax + 0x1c]
xor esi, edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], esi
and esi, 0xff
xor edx, edx
mov dh, byte [esi + 0x46adf0]
movzx esi, byte [eax + 0x2f]
movzx esi, byte [esi + 0x46adf0]
xor edx, esi
movzx esi, byte [eax + 0x2e]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x2d]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
xor edx, dword [ecx + 0x46b6f8]
mov esi, dword [eax + 0x24]
xor edx, dword [eax + 0x20]
xor esi, edx
mov dword [eax + 0x30], edx
mov edx, dword [eax + 0x28]
xor edx, esi
mov dword [eax + 0x34], esi
mov esi, dword [eax + 0x2c]
xor esi, edx
mov dword [eax + 0x3c], esi
mov dword [eax + 0x38], edx
and esi, 0xff
xor edx, edx
mov dh, byte [esi + 0x46adf0]
movzx esi, byte [eax + 0x3f]
movzx esi, byte [esi + 0x46adf0]
xor edx, esi
movzx esi, byte [eax + 0x3e]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x3d]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
xor edx, dword [ecx + 0x46b6fc]
mov esi, dword [eax + 0x34]
xor edx, dword [eax + 0x30]
add ecx, 0x14
xor esi, edx
mov dword [eax + 0x40], edx
mov edx, dword [eax + 0x38]
xor edx, esi
mov dword [eax + 0x44], esi
mov esi, dword [eax + 0x3c]
xor esi, edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], esi
and esi, 0xff
xor edx, edx
mov dh, byte [esi + 0x46adf0]
movzx esi, byte [eax + 0x4f]
movzx esi, byte [esi + 0x46adf0]
xor edx, esi
movzx esi, byte [eax + 0x4e]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0x4d]
movzx esi, byte [esi + 0x46adf0]
shl edx, 8
xor edx, esi
xor edx, dword [ecx + 0x46b6ec]
mov esi, dword [eax + 0x44]
xor edx, dword [eax + 0x40]
add eax, 0x50
xor esi, edx
mov dword [eax], edx
mov edx, dword [eax - 8]
xor edx, esi
mov dword [eax + 4], esi
mov esi, dword [eax - 4]
xor esi, edx
cmp ecx, 0x28
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
jb 0x405600
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret