Function at 0x4e3094
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
cmp dword [0x120210d4], esi
je 0x4e30ac
call fcn.004e2ea4
mov dword [0x120210d4], esi
mov ebp, dword [esp + 0x18]
mov eax, ebp
sub eax, 0x80
je 0x4e30ec
sub eax, 0x40
je 0x4e30dc
sub eax, 0x40
je 0x4e30cc
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x200], 0xe
jmp 0x4e30fa
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x200], 0xc
jmp 0x4e30fa
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x200], 0xa
push edi
mov edi, ebp
sar edi, 5
test edi, edi
mov eax, ebx
jle 0x4e313f
mov ecx, dword [esp + 0x18]
add ecx, 2
lea esp, [esp]
movzx ebx, byte [ecx]
xor edx, edx
mov dh, byte [ecx - 2]
add esi, 1
add ecx, 4
mov dl, byte [ecx - 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx - 3]
shl edx, 8
or edx, ebx
cmp esi, edi
mov ebx, dword [esp + 0x14]
mov dword [ebx + esi*4 - 4], edx
jl 0x4e3114
mov ecx, ebp
sub ecx, 0x80
je 0x4e3403
sub ecx, 0x40
je 0x4e3234
sub ecx, 0x40
jne 0x4e35ea
mov ebp, 0x12023d08
mov esi, dword [eax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov edi, dword [eax + 0xc]
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add ebp, 4
xor ecx, dword [ebp - 4]
add eax, 0x20
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
xor edi, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov ecx, edi
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x12023108]
shl ecx, 8
mov edx, edi
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
mov edx, edi
shr edx, 8
shl ecx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax - 0xc]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
xor esi, ecx
cmp ebp, 0x12023d24
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
jl 0x4e3164
jmp 0x4e35ea
mov edi, 0x12023d0c
mov esi, dword [eax + 0x14]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0x14]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax + 4]
xor ecx, dword [edi - 4]
xor ecx, dword [eax]
xor edx, ecx
mov dword [eax + 0x18], 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
xor esi, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax + 0x1c]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x12023108]
mov esi, dword [eax + 0x2c]
xor ecx, dword [eax + 0x18]
xor ecx, dword [edi]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x20]
xor ecx, edx
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x24]
xor edx, ecx
mov dword [eax + 0x38], ecx
mov ecx, dword [eax + 0x28]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], edx
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov dword [eax + 0x44], esi
mov ecx, dword [edx*4 + 0x12023108]
mov edx, esi
shr edx, 8
shl ecx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0x44]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x12023108]
mov edx, dword [eax + 0x34]
xor ecx, dword [edi + 4]
mov esi, dword [eax + 0x44]
xor ecx, dword [eax + 0x30]
add edi, 0x10
xor edx, ecx
mov dword [eax + 0x48], ecx
mov ecx, dword [eax + 0x38]
xor ecx, edx
mov dword [eax + 0x4c], edx
mov edx, dword [eax + 0x3c]
xor edx, ecx
mov dword [eax + 0x50], ecx
mov ecx, dword [eax + 0x40]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x54], edx
mov dword [eax + 0x5c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0x5c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax + 0x4c]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x12023108]
add eax, 0x60
xor ecx, dword [edi - 8]
xor ecx, dword [eax - 0x18]
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x10]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 0xc]
xor edx, ecx
mov dword [eax + 8], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
mov dword [eax + 0xc], edx
mov edx, dword [eax - 4]
xor edx, ecx
cmp edi, 0x12023d2c
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jl 0x4e3239
jmp 0x4e35ea
mov edi, 0x12023d0c
mov ebp, dword [eax + 0xc]
mov ecx, ebp
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov esi, dword [eax + 8]
mov edx, ebp
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, ebp
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax + 4]
xor ecx, dword [edi - 4]
xor ecx, dword [eax]
xor edx, ecx
mov dword [eax + 0x10], ecx
xor esi, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], esi
xor esi, ebp
mov dword [eax + 0x1c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax + 0x14]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x12023108]
mov esi, dword [eax + 0x1c]
xor ecx, dword [edi]
xor ecx, dword [eax + 0x10]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov dword [eax + 0x2c], esi
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax + 0x24]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x12023108]
mov esi, dword [eax + 0x2c]
xor ecx, dword [edi + 4]
xor ecx, dword [eax + 0x20]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x28]
xor ecx, edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], ecx
xor esi, ecx
mov dword [eax + 0x3c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax + 0x3c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax + 0x34]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x12023108]
mov esi, dword [eax + 0x3c]
xor ecx, dword [edi + 8]
add edi, 0x14
xor ecx, dword [eax + 0x30]
add eax, 0x50
xor edx, ecx
mov dword [eax - 0x10], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
xor esi, ecx
mov dword [eax - 8], ecx
mov dword [eax - 0xc], edx
mov dword [eax - 4], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0x12023108]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x12023108]
movzx edx, byte [eax - 4]
shl ecx, 8
xor ecx, dword [edx*4 + 0x12023108]
mov edx, dword [eax - 0xc]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + 0x12023108]
xor ecx, dword [edi - 8]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 4]
xor edx, ecx
cmp edi, 0x12023d34
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jl 0x4e3408
cmp dword [0x120210d8], 0
je 0x4e3706
xor ecx, ecx
jmp 0x4e3604
mov edx, dword [ecx + 0x12023108]
add edx, edx
mov esi, dword [edx + edx + 0x12024d30]
add edx, edx
mov dword [ecx + 0x12024530], esi
mov esi, dword [edx + 0x12024930]
mov dword [ecx + 0x12024130], esi
mov esi, dword [edx + 0x12023908]
mov edx, dword [edx + 0x12023508]
mov dword [ecx + 0x12026530], edx
mov edx, dword [ecx + 0x1202310c]
add edx, edx
add edx, edx
mov dword [ecx + 0x12023d30], esi
mov esi, dword [edx + 0x12024d30]
mov dword [ecx + 0x12024534], esi
mov esi, dword [edx + 0x12024930]
mov dword [ecx + 0x12024134], esi
mov esi, dword [edx + 0x12023908]
mov edx, dword [edx + 0x12023508]
mov dword [ecx + 0x12026534], edx
mov edx, dword [ecx + 0x12023110]
add edx, edx
add edx, edx
mov dword [ecx + 0x12023d34], esi
mov esi, dword [edx + 0x12024d30]
mov dword [ecx + 0x12024538], esi
mov esi, dword [edx + 0x12024930]
mov dword [ecx + 0x12024138], esi
mov esi, dword [edx + 0x12023908]
mov edx, dword [edx + 0x12023508]
mov dword [ecx + 0x12026538], edx
mov edx, dword [ecx + 0x12023114]
add edx, edx
add edx, edx
mov dword [ecx + 0x12023d38], esi
mov esi, dword [edx + 0x12024d30]
mov dword [ecx + 0x1202453c], esi
mov esi, dword [edx + 0x12024930]
mov dword [ecx + 0x1202413c], esi
mov esi, dword [edx + 0x12023908]
mov edx, dword [edx + 0x12023508]
mov dword [ecx + 0x12023d3c], esi
mov dword [ecx + 0x1202653c], edx
add ecx, 0x10
cmp ecx, 0x400
jl 0x4e3604
mov dword [0x120210d8], 0
mov edx, dword [eax]
mov dword [ebx + 0x100], edx
mov edx, dword [eax + 4]
add eax, 4
lea ecx, [ebx + 0x100]
mov dword [ecx + 4], edx
mov edx, dword [eax + 4]
add ecx, 4
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edi, 1
add ecx, 4
add eax, 4
cmp dword [ebx + 0x200], edi
jle 0x4e3869
lea esp, [esp]
mov esi, dword [eax - 0x20]
mov dword [esp + 0x1c], ebx
mov ebx, esi
shr ebx, 0x10
movzx ebp, bl
sub eax, 0x20
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x12024530]
xor edx, dword [ebp*4 + 0x12024130]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x12023d30]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x12026530]
add eax, 4
mov dword [ecx], edx
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x10
movzx ebp, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x12024530]
xor edx, dword [ebp*4 + 0x12024130]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x12023d30]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x12026530]
add ecx, 4
mov dword [ecx], edx
mov esi, dword [eax + 4]
add eax, 4
mov ebx, esi
shr ebx, 0x10
movzx ebp, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x12024530]
xor edx, dword [ebp*4 + 0x12024130]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x12023d30]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x12026530]
add ecx, 4
mov dword [ecx], edx
mov esi, dword [eax + 4]
add eax, 4
mov ebx, esi
shr ebx, 0x10
movzx ebp, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x12024530]
xor edx, dword [ebp*4 + 0x12024130]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x12023d30]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x12026530]
mov ebx, dword [esp + 0x1c]
add ecx, 4
mov dword [ecx], edx
add edi, 1
add ecx, 4
add eax, 4
cmp edi, dword [ebx + 0x200]
jl 0x4e3754
mov edx, dword [eax - 0x20]
sub eax, 0x20
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
mov dword [ecx + 4], edx
mov edx, dword [eax + 4]
add ecx, 4
add eax, 4
pop edi
add ecx, 4
mov dword [ecx], edx
mov eax, dword [eax + 4]
pop esi
pop ebp
mov dword [ecx + 4], eax
xor eax, eax
pop ebx
ret