Function at 0x4a82e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [0x63e708], 0
mov edi, ecx
je 0x4a8302
push edi
call fcn.0042c060
add esp, 0x1c
jmp 0x4a8753
mov ecx, dword [edi + 0x7c]
mov eax, dword [edi + 0xc4]
mov dword [ebp - 0x18], edi
lea edx, [ecx - 0x106]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edx
nop word [eax + eax]
mov edx, dword [edi + 0x8c]
add ecx, dword [ebp - 0x24]
mov esi, dword [edi + 0xbc]
sub edx, eax
sub edx, esi
cmp esi, ecx
jb 0x4a8557
mov esi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x88]
mov ebx, edx
mov dword [ebp - 0x10], ebx
mov edx, esi
lea ecx, [eax + esi]
sub edx, ebx
push edx
push ecx
push eax
call fcn.00594260
add esp, 0xc
sub dword [edi + 0xc0], esi
sub dword [edi + 0xbc], esi
sub dword [edi + 0xac], esi
mov esi, dword [edi + 0x9c]
mov eax, dword [edi + 0x7c]
lea ebx, [esi + esi]
movd xmm0, eax
add ebx, dword [edi + 0x94]
cmp esi, 8
jae 0x4a83a0
movdqa xmm7, xmmword [0x5c1b40]
mov ecx, ebx
mov edx, esi
xor ebx, ebx
pxor xmm6, xmm6
jmp 0x4a8456
mov edi, esi
movdqa xmm7, xmmword [0x5c1b40]
mov ecx, ebx
pshufd xmm1, xmm0, 0
add ebx, 0xfffffff0
pxor xmm6, xmm6
and edi, 0xfffffff8
lea edx, [edi + edi]
mov dword [ebp - 0x14], edi
sub ecx, edx
mov edx, esi
and edx, 7
nop dword [eax + eax]
movdqu xmm2, xmmword [ebx]
movdqa xmm4, xmm1
pxor xmm4, xmm7
pshufd xmm2, xmm2, 0x4e
pshuflw xmm3, xmm2, 0x1b
pshufhw xmm2, xmm3, 0x1b
punpcklwd xmm3, xmm6
punpckhwd xmm2, xmm6
movdqa xmm5, xmm2
psubd xmm2, xmm1
por xmm5, xmm7
pcmpgtd xmm5, xmm4
pand xmm2, xmm5
movdqa xmm5, xmm3
psubd xmm3, xmm1
por xmm5, xmm7
pslld xmm2, 0x10
pcmpgtd xmm5, xmm4
psrad xmm2, 0x10
pand xmm3, xmm5
pslld xmm3, 0x10
psrad xmm3, 0x10
packssdw xmm2, xmm3
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
movdqu xmmword [ebx], xmm2
add ebx, 0xfffffff0
add edi, 0xfffffff8
jne 0x4a83d0
cmp esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, 0
je 0x4a8471
add ecx, 0xfffffffe
nop dword [eax]
movzx esi, word [ecx]
sub esi, eax
cmovb esi, ebx
mov word [ecx], si
add ecx, 0xfffffffe
dec edx
jne 0x4a8460
lea ebx, [eax + eax]
add ebx, dword [edi + 0x90]
cmp eax, 8
jae 0x4a8490
mov ecx, ebx
mov edx, eax
xor ebx, ebx
jmp 0x4a8535
mov esi, eax
mov ecx, ebx
pshufd xmm0, xmm0, 0
add ebx, 0xfffffff0
and esi, 0xfffffff8
lea edx, [esi + esi]
mov edi, esi
sub ecx, edx
mov edx, eax
and edx, 7
nop dword [eax + eax]
movdqu xmm1, xmmword [ebx]
movdqa xmm3, xmm0
pxor xmm3, xmm7
pshufd xmm1, xmm1, 0x4e
pshuflw xmm2, xmm1, 0x1b
pshufhw xmm1, xmm2, 0x1b
punpcklwd xmm2, xmm6
punpckhwd xmm1, xmm6
movdqa xmm5, xmm2
psubd xmm2, xmm0
movdqa xmm4, xmm1
por xmm5, xmm7
psubd xmm1, xmm0
por xmm4, xmm7
pcmpgtd xmm5, xmm3
pcmpgtd xmm4, xmm3
pand xmm2, xmm5
pand xmm1, xmm4
pslld xmm2, 0x10
pslld xmm1, 0x10
psrad xmm2, 0x10
psrad xmm1, 0x10
packssdw xmm1, xmm2
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
movdqu xmmword [ebx], xmm1
add ebx, 0xfffffff0
add edi, 0xfffffff8
jne 0x4a84b0
mov edi, dword [ebp - 0x18]
cmp eax, esi
mov ebx, 0
je 0x4a8551
add ecx, 0xfffffffe
nop dword [eax + eax]
movzx esi, word [ecx]
sub esi, eax
cmovb esi, ebx
mov word [ecx], si
add ecx, 0xfffffffe
dec edx
jne 0x4a8540
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x1c]
mov ebx, dword [edi]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4a86d7
mov eax, dword [edi + 0xc4]
cmp ecx, edx
cmovbe edx, ecx
test edx, edx
je 0x4a85d5
mov esi, dword [edi + 0x88]
sub ecx, edx
mov dword [ebp - 0x10], edx
add esi, dword [edi + 0xbc]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx + 0x1c]
add esi, eax
cmp dword [ecx + 0x18], 2
jne 0x4a85a0
push edx
push esi
push ebx
call fcn.004a7e10
add esp, 0xc
jmp 0x4a85c7
push edx
push dword [ebx]
push esi
call fcn.00594260
add esp, 0xc
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x18], 1
jne 0x4a85c7
push dword [ebp - 0x10]
push esi
push dword [ebx + 0x30]
call fcn.004a7ac0
add esp, 0xc
mov dword [ebx + 0x30], eax
mov edx, dword [ebp - 0x10]
add dword [ebx], edx
add dword [ebx + 8], edx
mov eax, dword [edi + 0xc4]
add eax, edx
mov dword [edi + 0xc4], eax
mov esi, dword [edi + 0x1704]
lea ecx, [esi + eax]
cmp ecx, 3
jb 0x4a86c0
mov edx, dword [edi + 0xbc]
mov dword [ebp - 0x20], esi
mov ecx, dword [edi + 0xa4]
sub edx, esi
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x14], ecx
movzx ebx, byte [esi + edx]
mov dword [ebp - 0x10], esi
mov dword [edi + 0x98], ebx
mov ecx, dword [edi + 0xa8]
movzx esi, byte [esi + edx + 1]
shl ebx, cl
xor esi, ebx
mov ebx, dword [ebp - 0x14]
and esi, dword [ebp - 0x14]
cmp dword [ebp - 0x20], 0
mov dword [edi + 0x98], esi
je 0x4a86c0
nop dword [eax + eax]
mov eax, dword [ebp - 0x10]
shl esi, cl
movzx eax, byte [eax + edx + 2]
xor eax, esi
and eax, ebx
mov dword [edi + 0x98], eax
mov esi, dword [edi + 0x94]
mov ecx, dword [edi + 0x90]
movzx eax, word [esi + eax*2]
mov esi, dword [edi + 0x84]
and esi, edx
mov word [ecx + esi*2], ax
mov eax, dword [edi + 0x94]
mov ecx, dword [edi + 0x98]
mov word [eax + ecx*2], dx
mov esi, dword [edi + 0x1704]
lea ecx, [esi - 1]
mov dword [edi + 0x1704], ecx
mov eax, dword [edi + 0xc4]
lea esi, [eax + esi - 1]
cmp esi, 3
jb 0x4a86c0
test ecx, ecx
je 0x4a86c0
mov eax, dword [edi + 0x88]
mov esi, dword [edi + 0x98]
mov ecx, dword [edi + 0xa8]
mov ebx, dword [edi + 0xa4]
inc edx
mov dword [ebp - 0x10], eax
jmp 0x4a8640
cmp eax, 0x105
ja 0x4a86d7
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x4a86d7
mov ecx, dword [edi + 0x7c]
jmp 0x4a8320
mov edx, dword [edi + 0x8c]
mov eax, dword [edi + 0x1710]
mov ecx, edx
sub ecx, eax
jbe 0x4a8750
mov ebx, edi
mov edi, dword [edi + 0xc4]
add edi, dword [ebx + 0xbc]
cmp eax, edi
jae 0x4a8729
mov eax, dword [ebx + 0x88]
sub edx, edi
mov esi, 0x102
cmp edx, 0x102
cmovb esi, edx
add eax, edi
push esi
push 0
push eax
call fcn.00594d60
add esp, 0xc
add esi, edi
mov dword [ebx + 0x1710], esi
jmp 0x4a8750
add edi, 0x102
sub edi, eax
jbe 0x4a8750
cmp edi, ecx
cmova edi, ecx
add eax, dword [ebx + 0x88]
push edi
push 0
push eax
call fcn.00594d60
add esp, 0xc
add dword [ebx + 0x1710], edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret