Function at 0x4a3600
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10808
call fcn.004a5b80
push ebx
push ebp
xor ebp, ebp
mov edx, 1
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x624]
mov edi, dword [esp + 0x1081c]
mov dword [ecx], ebp
xor esi, esi
mov ebx, 0xff
mov ax, word [edi]
cmp ax, 0xffff
je 0x4a3661
movsx eax, ax
add eax, esi
mov ebp, 0xff
cdq
idiv ebp
mov eax, dword [edx*4 + 0x4e4d88]
mov edx, dword [ecx]
xor edx, eax
xor ebp, ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
add edi, 2
add esi, edx
dec ebx
jne 0x4a3638
mov eax, dword [ecx]
cmp eax, ebp
je 0x4a3677
mov dword [esp + 0x14], 1
mov eax, dword [eax*4 + 0x4e5188]
inc edx
mov dword [ecx], eax
add ecx, 4
cmp edx, 0x7e
mov dword [esp + 0x18], edx
jle 0x4a3628
cmp dword [esp + 0x14], ebp
je 0x4a3d48
mov ecx, dword [esp + 0x624]
mov dword [esp + 0x228], ebp
mov dword [esp + 0x22c], ecx
mov dword [esp + 0xc18], ebp
mov dword [esp + 0xe10], 1
lea eax, [esp + 0xe14]
mov ecx, 0x7d
or edx, 0xffffffff
mov dword [eax - 0x1f8], edx
mov dword [eax], ebp
add eax, 4
dec ecx
jne 0x4a36cd
mov dword [esp + 0x81c], edx
lea edx, [esp + 0xc18]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x820], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc ebp
add edx, 0x1f8
add esi, 0x7f
mov dword [esp + 0x18], edx
mov edx, dword [esp + ebp*4 + 0x228]
add ecx, 0x7e
cmp edx, 0xffffffff
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
jne 0x4a3775
mov eax, dword [esp + ebp*4 + 0x28]
mov dword [esp + ebp*4 + 0x2c], eax
mov ecx, dword [esp + ebp*4 + 0x28]
test ecx, ecx
jl 0x4a388d
mov eax, dword [esp + 0x18]
inc ecx
mov edx, dword [eax]
mov dword [eax + 0x1f8], edx
mov edx, dword [eax]
add eax, 4
dec ecx
mov edx, dword [edx*4 + 0x4e5188]
mov dword [eax - 4], edx
jne 0x4a3756
jmp 0x4a388d
mov ecx, dword [esp + ebp*4 + 0x224]
lea eax, [esp + ebp*4 + 0x224]
cmp ecx, 0xffffffff
lea esi, [ebp - 1]
jne 0x4a379b
test esi, esi
jle 0x4a37d2
mov ecx, dword [eax - 4]
sub eax, 4
dec esi
cmp ecx, 0xffffffff
je 0x4a378b
test esi, esi
jle 0x4a37d2
mov eax, esi
lea edi, [esi*4]
dec eax
lea ecx, [eax*4]
cmp dword [esp + ecx + 0x228], 0xffffffff
je 0x4a37ce
mov ebx, dword [esp + edi + 0x81c]
cmp ebx, dword [esp + ecx + 0x81c]
jge 0x4a37ce
mov esi, eax
mov edi, ecx
test eax, eax
jg 0x4a37a8
mov ecx, dword [esp + esi*4 + 0x28]
mov eax, ebp
sub eax, esi
add eax, ecx
mov ecx, dword [esp + ebp*4 + 0x28]
cmp ecx, eax
jle 0x4a37ea
mov dword [esp + ebp*4 + 0x2c], ecx
jmp 0x4a37ee
mov dword [esp + ebp*4 + 0x2c], eax
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + esi*4 + 0x28]
mov ecx, 0x7e
xor eax, eax
add edi, 0x1f8
rep stosd dword es:[edi], eax
xor ecx, ecx
test ebx, ebx
jl 0x4a385e
mov eax, esi
shl eax, 6
sub eax, esi
lea edi, [esp + eax*8 + 0xc18]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4a3856
mov ebp, dword [esp + esi*4 + 0x228]
sub edx, ebp
mov ebp, 0xff
lea eax, [edx + eax + 0xff]
cdq
idiv ebp
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
sub eax, esi
add eax, ecx
mov edx, dword [edx*4 + 0x4e4d88]
mov dword [esp + eax*4 + 0xe10], edx
mov edx, dword [esp + 0x1c]
inc ecx
add edi, 4
cmp ecx, ebx
jle 0x4a3819
mov ecx, dword [esp + ebp*4 + 0x28]
test ecx, ecx
jl 0x4a388d
mov eax, dword [esp + 0x18]
inc ecx
mov edx, dword [eax]
mov edi, dword [eax + 0x1f8]
xor edi, edx
mov dword [eax + 0x1f8], edi
mov edx, dword [eax]
add eax, 4
dec ecx
mov edx, dword [edx*4 + 0x4e5188]
mov dword [eax - 4], edx
jne 0x4a386b
mov edi, dword [esp + ebp*4 + 0x2c]
mov eax, ebp
sub eax, edi
mov dword [esp + ebp*4 + 0x820], eax
mov eax, dword [esp + 0x10]
cmp eax, 0x3e82
jge 0x4a3953
mov eax, dword [esp + ebp*4 + 0x624]
cmp eax, 0xffffffff
je 0x4a38c7
mov ecx, dword [eax*4 + 0x4e4d88]
mov dword [esp + ebp*4 + 0x22c], ecx
jmp 0x4a38d2
mov dword [esp + ebp*4 + 0x22c], 0
mov ecx, 1
cmp edi, ecx
jl 0x4a392a
lea esi, [esp + ebp*4 + 0x620]
mov edx, dword [esi]
cmp edx, 0xffffffff
je 0x4a3922
mov eax, dword [esp + 0x14]
add eax, ecx
mov eax, dword [esp + eax*4 + 0xe10]
test eax, eax
je 0x4a3922
mov eax, dword [eax*4 + 0x4e5188]
mov ebx, 0xff
add eax, edx
cdq
idiv ebx
mov eax, dword [esp + ebp*4 + 0x22c]
mov edx, dword [edx*4 + 0x4e4d88]
xor eax, edx
mov dword [esp + ebp*4 + 0x22c], eax
inc ecx
sub esi, 4
cmp ecx, edi
jle 0x4a38e2
mov eax, dword [esp + ebp*4 + 0x22c]
mov ecx, dword [eax*4 + 0x4e5188]
mov eax, dword [esp + 0x10]
cmp eax, 0x3e82
mov dword [esp + ebp*4 + 0x22c], ecx
jge 0x4a3953
cmp edi, 0x3f
jle 0x4a3704
mov eax, dword [esp + ebp*4 + 0x2c]
inc ebp
cmp eax, 0x3f
mov dword [esp + 0x10], eax
jg 0x4a3d08
test eax, eax
jl 0x4a398e
mov ecx, dword [esp + 0x10]
mov edx, ebp
shl edx, 6
sub edx, ebp
inc ecx
lea eax, [esp + edx*8 + 0xc18]
mov edx, dword [eax]
add eax, 4
dec ecx
mov edx, dword [edx*4 + 0x4e5188]
mov dword [eax - 4], edx
jne 0x4a397c
mov ecx, dword [esp + 0x10]
cmp ecx, 1
jl 0x4a39ab
mov eax, ebp
lea edi, [esp + 0x2c]
shl eax, 6
sub eax, ebp
lea esi, [esp + eax*8 + 0xc1c]
rep movsd dword es:[edi], dword [esi]
xor edx, edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0xfe
mov eax, dword [esp + 0x10]
mov ecx, 1
cmp eax, ecx
mov edi, ecx
jl 0x4a3a1f
lea esi, [esp + 0x2c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a39f4
add eax, ecx
mov ebx, 0xff
cdq
idiv ebx
mov dword [esi], edx
mov eax, dword [edx*4 + 0x4e4d88]
mov edx, dword [esp + 0x1c]
xor edi, eax
mov eax, dword [esp + 0x10]
inc ecx
add esi, 4
cmp ecx, eax
jle 0x4a39d4
test edi, edi
jne 0x4a3a1f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + edx*4 + 0x524], ecx
mov dword [esp + edx*4 + 0x428], eax
inc edx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ecx
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jns 0x4a39c1
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x4a3cc8
mov esi, 1
cmp eax, esi
jl 0x4a3b5a
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + ebx + 0x624]
cmp eax, 0xffffffff
je 0x4a3ab5
mov ecx, ebp
shl ecx, 6
sub ecx, ebp
lea edx, [esi + ecx*2]
mov ecx, dword [esp + edx*4 + 0xc18]
cmp ecx, 0xffffffff
je 0x4a3a8a
mov ecx, dword [ecx*4 + 0x4e4d88]
mov edx, dword [eax*4 + 0x4e4d88]
xor ecx, edx
mov dword [esp + ebx + 0x2c], ecx
jmp 0x4a3ae0
cmp eax, 0xffffffff
je 0x4a3ab5
mov edx, ebp
shl edx, 6
sub edx, ebp
lea ecx, [esi + edx*2]
cmp dword [esp + ecx*4 + 0xc18], 0xffffffff
jne 0x4a3ab0
mov edx, dword [eax*4 + 0x4e4d88]
mov dword [esp + ebx + 0x2c], edx
jmp 0x4a3ae0
cmp eax, 0xffffffff
jne 0x4a3ad8
mov eax, ebp
shl eax, 6
sub eax, ebp
lea ecx, [esi + eax*2]
mov eax, dword [esp + ecx*4 + 0xc18]
cmp eax, 0xffffffff
je 0x4a3ad8
mov edx, dword [eax*4 + 0x4e4d88]
mov dword [esp + ebx + 0x2c], edx
jmp 0x4a3ae0
mov dword [esp + ebx + 0x2c], 0
test ebx, ebx
mov ecx, 1
jle 0x4a3b37
lea edi, [esp + 0x624]
mov edx, dword [edi]
cmp edx, 0xffffffff
je 0x4a3b2f
mov eax, ebp
shl eax, 6
sub eax, ebp
shl eax, 1
sub eax, ecx
add eax, esi
mov eax, dword [esp + eax*4 + 0xc18]
cmp eax, 0xffffffff
je 0x4a3b2f
add eax, edx
mov ebx, 0xff
cdq
idiv ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + ebx + 0x2c]
mov edx, dword [edx*4 + 0x4e4d88]
xor eax, edx
mov dword [esp + ebx + 0x2c], eax
inc ecx
add edi, 4
cmp ecx, esi
jl 0x4a3af0
mov eax, dword [esp + ebx + 0x2c]
inc esi
add ebx, 4
mov ecx, dword [eax*4 + 0x4e5188]
mov eax, dword [esp + 0x10]
mov dword [esp + ebx + 0x28], ecx
cmp esi, eax
mov dword [esp + 0x1c], ebx
jle 0x4a3a52
mov edx, dword [esp + 0x1081c]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x81c]
rep stosd dword es:[edi], eax
mov ecx, 0xff
mov ax, word [edx]
cmp ax, 0xffff
je 0x4a3b8f
movsx eax, ax
mov ax, word [eax*4 + 0x4e4d88]
mov word [edx], ax
jmp 0x4a3b94
mov word [edx], 0
add edx, 2
dec ecx
jne 0x4a3b76
mov eax, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
jle 0x4a3cb9
mov edi, eax
mov eax, dword [esp + ebx*4 + 0x428]
mov ecx, 1
cmp edi, ecx
lea ebp, [esp + eax*4 + 0x81c]
mov dword [esp + 0x24], ebp
mov dword [ebp], 1
jl 0x4a3c12
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
cmp edx, 0xffffffff
je 0x4a3c02
mov eax, dword [esp + ebx*4 + 0x524]
mov esi, 0xff
imul eax, ecx
add eax, edx
cdq
idiv esi
mov eax, dword [ebp]
mov edx, dword [edx*4 + 0x4e4d88]
xor eax, edx
mov dword [ebp], eax
mov edx, dword [esp + 0x14]
inc ecx
add edx, 4
cmp ecx, edi
mov dword [esp + 0x14], edx
jle 0x4a3bd4
mov eax, dword [ebp]
test eax, eax
je 0x4a3cb0
mov eax, dword [eax*4 + 0x4e5188]
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x1c], eax
test edi, edi
mov dword [ebp], eax
jle 0x4a3c72
lea edi, [esp + 0x428]
cmp esi, ebx
je 0x4a3c66
mov eax, dword [esp + ebx*4 + 0x524]
mov edx, dword [edi]
add eax, edx
mov ebp, 0xff
cdq
idiv ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [edx*4 + 0x4e4d88]
xor eax, 1
add ecx, dword [eax*4 + 0x4e5188]
mov eax, dword [esp + 0x10]
inc esi
add edi, 4
cmp esi, eax
jl 0x4a3c3a
mov eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
sub eax, edx
add eax, ecx
cdq
idiv ecx
mov eax, dword [esp + ebx*4 + 0x428]
mov ecx, dword [esp + 0x1081c]
mov edx, dword [edx*4 + 0x4e4d88]
xor word [ecx + eax*2], dx
mov eax, dword [esp + 0x20]
inc eax
mov dword [ebp], edx
mov dword [esp + 0x20], eax
inc ebx
cmp ebx, edi
jl 0x4a3baa
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10808
ret
mov eax, dword [esp + 0x1081c]
mov edx, 0xff
mov cx, word [eax]
cmp cx, 0xffff
je 0x4a3ced
movsx ecx, cx
mov cx, word [ecx*4 + 0x4e4d88]
mov word [eax], cx
jmp 0x4a3cf2
mov word [eax], 0
add eax, 2
dec edx
jne 0x4a3cd4
pop edi
pop esi
pop ebp
mov eax, 0xffff
pop ebx
add esp, 0x10808
ret
mov eax, dword [esp + 0x1081c]
mov edx, 0xff
mov cx, word [eax]
cmp cx, 0xffff
je 0x4a3d2d
movsx ecx, cx
mov cx, word [ecx*4 + 0x4e4d88]
mov word [eax], cx
jmp 0x4a3d32
mov word [eax], 0
add eax, 2
dec edx
jne 0x4a3d14
pop edi
pop esi
pop ebp
mov eax, 0xffff
pop ebx
add esp, 0x10808
ret
mov eax, dword [esp + 0x1081c]
mov edx, 0xff
mov cx, word [eax]
cmp cx, 0xffff
je 0x4a3d6d
movsx ecx, cx
mov cx, word [ecx*4 + 0x4e4d88]
mov word [eax], cx
jmp 0x4a3d70
mov word [eax], bp
add eax, 2
dec edx
jne 0x4a3d54
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10808
ret