Function at 0x4b5e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
cmp dword [0x6597e4], 0
je 0x4b5e92
push esi
call fcn.0042f7f0
add esp, 0x20
jmp 0x4b6331
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0xc4]
lea edx, [ecx - 0x106]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
nop word [eax + eax]
add ecx, dword [ebp - 0x28]
mov edx, dword [esi + 0x8c]
sub edx, eax
mov eax, dword [esi + 0xbc]
sub edx, eax
cmp eax, ecx
jb 0x4b611f
mov eax, dword [esi + 0x88]
mov edi, dword [ebp - 0x20]
lea ecx, [eax + edi]
mov ebx, edx
mov edx, edi
mov dword [ebp - 0x10], ebx
sub edx, ebx
push edx
push ecx
push eax
call fcn.005ae710
add esp, 0xc
sub dword [esi + 0xc0], edi
sub dword [esi + 0xbc], edi
sub dword [esi + 0xac], edi
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x9c]
lea ebx, [edx + edx]
add ebx, dword [esi + 0x94]
movd xmm0, eax
cmp edx, 8
jae 0x4b5f30
mov ecx, ebx
xor esi, esi
pxor xmm6, xmm6
movdqa xmm7, xmmword [0x5dcb30]
jmp 0x4b5ffa
mov dword [ebp - 0x14], eax
mov ecx, edx
and ecx, 0xfffffff8
mov eax, edx
and eax, 7
mov dword [ebp - 0x18], eax
mov edi, ecx
neg edi
mov dword [ebp - 0x24], ecx
add ecx, ecx
mov eax, ebx
sub eax, ecx
mov ecx, eax
mov eax, edi
pshufd xmm1, xmm0, 0
add ebx, 0xfffffff0
xor edi, edi
pxor xmm6, xmm6
movdqa xmm7, xmmword [0x5dcb30]
nop word [eax + eax]
movdqu xmm2, xmmword [ebx + edi*2]
pshufd xmm3, xmm2, 0x4e
pshufhw xmm2, xmm3, 0x1b
pshuflw xmm3, xmm3, 0x1b
punpcklwd xmm3, xmm6
punpckhwd xmm2, xmm6
movdqa xmm4, xmm1
pxor xmm4, xmm7
movdqa xmm5, xmm2
por xmm5, xmm7
pcmpgtd xmm5, xmm4
psubd xmm2, xmm1
pand xmm2, xmm5
movdqa xmm5, xmm3
por xmm5, xmm7
pcmpgtd xmm5, xmm4
psubd xmm3, xmm1
pand xmm3, xmm5
pslld xmm3, 0x10
psrad xmm3, 0x10
pslld xmm2, 0x10
psrad xmm2, 0x10
packssdw xmm2, xmm3
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
movdqu xmmword [ebx + edi*2], xmm2
add edi, 0xfffffff8
cmp eax, edi
jne 0x4b5f70
cmp edx, dword [ebp - 0x24]
mov esi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
je 0x4b6016
neg edx
xor edi, edi
nop
movzx ebx, word [ecx + edi*2 - 2]
sub ebx, eax
cmovb ebx, esi
mov word [ecx + edi*2 - 2], bx
add edi, 0xffffffff
cmp edx, edi
jne 0x4b6000
lea ebx, [eax + eax]
mov ecx, dword [ebp - 0x1c]
add ebx, dword [ecx + 0x90]
cmp eax, 8
jae 0x4b6040
mov edx, eax
mov ecx, ebx
xor esi, esi
jmp 0x4b60f7
mov edi, eax
and edi, 0xfffffff8
mov ecx, eax
and ecx, 7
mov dword [ebp - 0x14], ecx
mov edx, edi
neg edx
mov dword [ebp - 0x18], edi
add edi, edi
mov ecx, ebx
sub ecx, edi
pshufd xmm0, xmm0, 0
add ebx, 0xfffffff0
xor edi, edi
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [ebx + edi*2]
pshufd xmm2, xmm1, 0x4e
pshufhw xmm1, xmm2, 0x1b
pshuflw xmm2, xmm2, 0x1b
punpcklwd xmm2, xmm6
punpckhwd xmm1, xmm6
movdqa xmm3, xmm0
pxor xmm3, xmm7
movdqa xmm4, xmm1
por xmm4, xmm7
pcmpgtd xmm4, xmm3
psubd xmm1, xmm0
pand xmm1, xmm4
movdqa xmm4, xmm2
por xmm4, xmm7
pcmpgtd xmm4, xmm3
psubd xmm2, xmm0
pand xmm2, xmm4
pslld xmm2, 0x10
psrad xmm2, 0x10
pslld xmm1, 0x10
psrad xmm1, 0x10
packssdw xmm1, xmm2
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
movdqu xmmword [ebx + edi*2], xmm1
add edi, 0xfffffff8
cmp edx, edi
jne 0x4b6070
cmp eax, dword [ebp - 0x18]
mov esi, 0
mov edx, dword [ebp - 0x14]
je 0x4b6116
neg edx
xor edi, edi
nop dword [eax + eax]
movzx ebx, word [ecx + edi*2 - 2]
sub ebx, eax
cmovb ebx, esi
mov word [ecx + edi*2 - 2], bx
add edi, 0xffffffff
cmp edx, edi
jne 0x4b6100
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4b62b7
mov eax, dword [esi + 0xc4]
cmp ecx, edx
cmovbe edx, ecx
test edx, edx
je 0x4b61a5
mov ebx, dword [esi + 0x88]
add ebx, dword [esi + 0xbc]
add ebx, eax
sub ecx, edx
mov dword [edi + 4], ecx
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 2
mov dword [ebp - 0x10], edx
jne 0x4b6170
push edx
push ebx
push edi
call fcn.004b5970
add esp, 0xc
jmp 0x4b6197
push edx
push dword [edi]
push ebx
call fcn.005ae710
add esp, 0xc
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 1
jne 0x4b6197
push dword [ebp - 0x10]
push ebx
push dword [edi + 0x30]
call fcn.004b5560
add esp, 0xc
mov dword [edi + 0x30], eax
mov edx, dword [ebp - 0x10]
add dword [edi], edx
add dword [edi + 8], edx
mov eax, dword [esi + 0xc4]
add eax, edx
mov dword [esi + 0xc4], eax
mov edi, dword [esi + 0x1704]
lea ecx, [edi + eax]
cmp ecx, 3
jb 0x4b62a0
mov edx, dword [esi + 0xbc]
sub edx, edi
mov dword [ebp - 0x18], edi
mov edi, dword [esi + 0x88]
mov ecx, dword [esi + 0xa4]
mov dword [ebp - 0x14], ecx
movzx ebx, byte [edi + edx]
mov dword [esi + 0x98], ebx
mov ecx, dword [esi + 0xa8]
shl ebx, cl
mov dword [ebp - 0x10], edi
movzx edi, byte [edi + edx + 1]
xor edi, ebx
mov ebx, dword [ebp - 0x14]
and edi, dword [ebp - 0x14]
mov dword [esi + 0x98], edi
cmp dword [ebp - 0x18], 0
je 0x4b62a0
nop dword [eax + eax]
shl edi, cl
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edx + 2]
xor eax, edi
and eax, ebx
mov dword [esi + 0x98], eax
mov ecx, dword [esi + 0x90]
mov edi, dword [esi + 0x94]
movzx eax, word [edi + eax*2]
mov edi, dword [esi + 0x84]
and edi, edx
mov word [ecx + edi*2], ax
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov word [eax + ecx*2], dx
mov edi, dword [esi + 0x1704]
lea ecx, [edi - 1]
mov dword [esi + 0x1704], ecx
mov eax, dword [esi + 0xc4]
add edi, eax
add edi, 0xffffffff
cmp edi, 3
jb 0x4b62a0
test ecx, ecx
je 0x4b62a0
add edx, 1
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x10], eax
mov edi, dword [esi + 0x98]
mov ecx, dword [esi + 0xa8]
mov ebx, dword [esi + 0xa4]
jmp 0x4b6210
cmp eax, 0x105
ja 0x4b62b7
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x4b62b7
mov ecx, dword [esi + 0x7c]
jmp 0x4b5eb0
mov eax, dword [esi + 0x1710]
mov edx, dword [esi + 0x8c]
mov ecx, edx
sub ecx, eax
jbe 0x4b632e
mov edi, dword [esi + 0xc4]
add edi, dword [esi + 0xbc]
cmp eax, edi
jae 0x4b6307
sub edx, edi
cmp edx, 0x102
mov ebx, 0x102
cmovb ebx, edx
mov eax, dword [esi + 0x88]
add eax, edi
push ebx
push 0
push eax
call fcn.005af210
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1710], ebx
jmp 0x4b632e
add edi, 0x102
sub edi, eax
jbe 0x4b632e
cmp edi, ecx
cmova edi, ecx
add eax, dword [esi + 0x88]
push edi
push 0
push eax
call fcn.005af210
add esp, 0xc
add dword [esi + 0x1710], edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret