Function at 0x4a6980
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
mov eax, dword [0x537700]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x130]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x118]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x120]
mov edx, ebp
push esi
mov esi, dword [esp + 0x138]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x140]
push edi
mov edi, dword [esp + 0x138]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x54], edi
mov dword [esp + 0x40], eax
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x98], 0
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x9c], 0
movups xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x60]
sub edx, 1
jne 0x4a6a11
cmp dword [esp + 0x60], ebp
jne 0x4a6a44
mov dword [edi], edx
mov dword [esi], edx
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b847a
add esp, 0x110
ret
mov eax, dword [esi]
mov ecx, 1
nop dword [eax + eax]
cmp dword [esp + ecx*4 + 0x60], 0
jne 0x4a6a5d
inc ecx
cmp ecx, 0xf
jbe 0x4a6a50
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov edx, 0xf
cmovb eax, ecx
nop dword [eax + eax]
cmp dword [esp + edx*4 + 0x60], 0
jne 0x4a6a7c
sub edx, 1
jne 0x4a6a70
cmp eax, edx
mov dword [esp + 0x30], edx
cmova eax, edx
mov dword [esi], eax
mov esi, 1
shl esi, cl
mov dword [esp + 0x20], eax
cmp ecx, edx
jae 0x4a6aa3
sub esi, dword [esp + ecx*4 + 0x60]
js 0x4a6aba
inc ecx
add esi, esi
cmp ecx, edx
jb 0x4a6a96
lea ecx, [edx*4]
mov eax, esi
sub esi, dword [esp + ecx + 0x60]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x5c], esi
jns 0x4a6ac4
mov eax, 0xfffffffd
jmp 0x4a6a2b
mov dword [esp + ecx + 0x60], eax
lea esi, [esp + 0x64]
xor ecx, ecx
lea edi, [esp + 0xa8]
mov dword [esp + 0xa4], ecx
sub edx, 1
je 0x4a6af3
mov eax, dword [esi]
lea esi, [esi + 4]
add ecx, eax
lea edi, [edi + 4]
mov dword [edi - 4], ecx
sub edx, 1
jne 0x4a6ae1
xor ecx, ecx
mov edx, dword [ebx]
lea ebx, [ebx + 4]
mov esi, dword [esp + 0x40]
test edx, edx
je 0x4a6b14
mov eax, dword [esp + edx*4 + 0xa0]
mov dword [esi + eax*4], ecx
inc eax
mov dword [esp + edx*4 + 0xa0], eax
inc ecx
cmp ecx, ebp
jb 0x4a6af5
mov eax, dword [esp + 0x34]
xor ebp, ebp
mov ecx, dword [esp + 0x20]
or edx, 0xffffffff
mov ebx, ecx
mov dword [esp + 0x18], esi
neg ebx
mov dword [esp + 0x34], ebp
mov eax, dword [esp + eax + 0xa0]
xor esi, esi
mov dword [esp + 0x58], eax
xor edi, edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0xe0], ebp
cmp eax, dword [esp + 0x30]
jg 0x4a6dfa
lea eax, [esp + eax*4 + 0x60]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
nop dword [eax]
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
test edx, edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x14]
je 0x4a6de6
mov eax, dword [esp + 0x28]
nop word [eax + eax]
mov dword [esp + 0x4c], eax
dec eax
mov dword [esp + 0x28], eax
lea eax, [ebx + ecx]
cmp dword [esp + 0x10], eax
jle 0x4a6cbb
mov eax, ebx
sub eax, ecx
nop word [eax + eax]
mov edi, dword [esp + 0x30]
add ebx, ecx
add eax, ecx
mov dword [esp + 0x24], ebx
inc edx
mov dword [esp + 0x48], eax
sub edi, ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
cmp edi, ecx
mov eax, 1
cmova edi, ecx
sub edx, ebx
mov ecx, edx
shl eax, cl
cmp eax, dword [esp + 0x4c]
jbe 0x4a6c1a
mov esi, dword [esp + 0x2c]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x28]
add eax, ecx
cmp edx, edi
jae 0x4a6c1a
inc edx
cmp edx, edi
jae 0x4a6c1a
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x4a6c1a
inc edx
sub eax, ecx
cmp edx, edi
jb 0x4a6c07
mov eax, dword [esp + 0x44]
mov ecx, edx
mov edi, 1
shl edi, cl
mov eax, dword [eax]
lea ecx, [eax + edi]
cmp ecx, 0x5a0
ja 0x4a6e1a
mov ebx, dword [esp + 0x50]
lea esi, [ebx + eax*8]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov dword [esp + eax*4 + 0xe0], esi
mov dword [ebx], ecx
test eax, eax
je 0x4a6c98
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x38], dl
mov edx, ebp
mov dword [esp + eax*4 + 0xa0], ebp
mov eax, dword [esp + 0x20]
shr edx, cl
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x39], al
mov eax, esi
mov ecx, dword [esp + ecx*4 + 0xdc]
sub eax, ecx
sar eax, 3
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*8 + 4], eax
jmp 0x4a6c9e
mov eax, dword [esp + 0x54]
mov dword [eax], esi
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea eax, [ebx + ecx]
cmp dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
jg 0x4a6bc0
mov edx, dword [esp + 0x10]
mov al, dl
mov ecx, dword [esp + 0x58]
sub al, bl
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x40]
lea eax, [eax + ecx*4]
cmp dword [esp + 0x18], eax
jb 0x4a6cdf
mov byte [esp + 0x38], 0xc0
jmp 0x4a6d35
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jae 0x4a6d0d
cmp ecx, 0x100
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x38], al
jmp 0x4a6d35
sub ecx, eax
mov eax, dword [esp + 0x134]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x130]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov ecx, edx
mov eax, ebp
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, edi
jae 0x4a6d67
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebx
add eax, edx
cmp eax, edi
jb 0x4a6d52
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test ebp, eax
je 0x4a6d88
nop dword [eax]
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x4a6d80
mov edx, dword [esp + 0x14]
xor ebp, eax
mov eax, 1
mov dword [esp + 0x34], ebp
mov ecx, ebx
shl eax, cl
dec eax
and eax, ebp
cmp eax, dword [esp + edx*4 + 0xa0]
je 0x4a6dd2
nop word [eax + eax]
sub ebx, dword [esp + 0x20]
mov eax, 1
mov ecx, ebx
dec edx
shl eax, cl
dec eax
and eax, ebp
cmp eax, dword [esp + edx*4 + 0xa0]
jne 0x4a6db0
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
test eax, eax
jne 0x4a6ba0
mov eax, dword [esp + 0x10]
add dword [esp + 0x2c], 4
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x30]
jle 0x4a6b80
cmp dword [esp + 0x5c], 0
je 0x4a6a29
cmp dword [esp + 0x30], 1
je 0x4a6a29
mov eax, 0xfffffffb
jmp 0x4a6a2b
mov eax, 0xfffffffc
jmp 0x4a6a2b