Function at 0x4e8130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x38]
add edx, esi
adc ecx, 0
xor eax, eax
mov edi, 0xffffffe0
cmp edi, edx
mov edi, 0xf
sbb edi, ecx
jb 0x4e8929
mov eax, dword [ebx + 0x168]
mov dword [esp + 0x10], eax
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x174], 0
je 0x4e8210
lea edx, [ebx + 0x60]
movdqu xmm0, xmmword [ebx + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 0x20], xmm0
lea ecx, [esp + 0x20]
call fcn.004ea130
movdqu xmm0, xmmword [esp + 0x20]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [ebx + 0x40], xmm0
mov dword [ebx + 0x174], 0
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4e82ed
test esi, esi
je 0x4e891e
nop dword [eax]
movzx ecx, byte [ebx + eax + 0x10]
xor cl, byte [edx]
add edx, 1
mov byte [edi], cl
xor byte [ebx + eax + 0x40], cl
add edi, 1
lea ecx, [esi - 1]
add eax, 1
and eax, 0xf
je 0x4e8255
cmp esi, 1
mov esi, ecx
jne 0x4e8230
test eax, eax
jne 0x4e891e
mov dword [esp + 4], edx
lea edx, [ebx + 0x60]
movdqu xmm0, xmmword [ebx + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 0x20], xmm0
mov esi, ecx
lea ecx, [esp + 0x20]
call fcn.004ea130
mov edx, dword [esp + 4]
movdqu xmm0, xmmword [esp + 0x20]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [ebx + 0x40], xmm0
mov eax, dword [ebx + 0xc]
bswap eax
lea ecx, [ebx + 0x10]
mov dword [esp + 0x1c], ecx
lea ecx, [ebx + 0x60]
mov dword [esp + 0x30], ecx
cmp esi, 0xc00
mov dword [esp + 0x14], eax
jb 0x4e850f
mov dword [esp + 8], edi
nop word cs:[eax + eax]
nop
mov dword [esp], esi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
lea eax, [edx - 0xbe0]
mov esi, 0xfffff400
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], edx
nop
mov dword [esp + 0xc], eax
push dword [ebp + 0xc]
push dword [esp + 0x20]
push ebx
call dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
add esp, 0xc
add edi, 1
mov eax, edi
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x18]
xor eax, dword [ecx + esi + 0xc00]
mov dword [edx + esi + 0xc00], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [ecx + esi + 0xc04]
mov dword [edx + esi + 0xc04], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [ecx + esi + 0xc08]
mov dword [edx + esi + 0xc08], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [ecx + esi + 0xc0c]
mov dword [edx + esi + 0xc0c], eax
mov eax, dword [esp + 0xc]
add eax, 0x10
add esi, 0x10
jne 0x4e8340
mov dword [esp + 0x14], edi
movdqu xmm0, xmmword [ebx + 0x40]
movdqu xmm1, xmmword [edx + esi]
pxor xmm1, xmm0
movdqa xmm0, xmm1
pxor xmm2, xmm2
punpcklbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
punpckhbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm1, xmm0
movdqu xmmword [esp + 0x20], xmm1
lea ecx, [esp + 0x20]
mov edi, dword [esp + 0x30]
mov ebx, edx
mov edx, edi
call fcn.004ea130
lea eax, [ebx + esi]
add eax, 0xc00
mov dword [esp + 8], eax
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x18]
add eax, esi
add eax, 0xc00
mov dword [esp + 4], eax
mov ebx, 0xfffff410
mov esi, dword [esp + 0xc]
nop dword [eax + eax]
movdqu xmm0, xmmword [esp + 0x20]
movdqu xmm1, xmmword [esi]
movdqa xmm2, xmm1
pxor xmm3, xmm3
punpcklbw xmm2, xmm3
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm1, xmm3
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [esp + 0x20], xmm1
lea ecx, [esp + 0x20]
mov edx, edi
call fcn.004ea130
add esi, 0x10
add ebx, 0x10
jne 0x4e8440
movdqu xmm0, xmmword [esp + 0x20]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
mov ebx, dword [ebp + 8]
movdqu xmmword [ebx + 0x40], xmm0
mov esi, dword [esp]
add esi, 0xfffff400
cmp esi, 0xbff
mov edx, dword [esp + 4]
ja 0x4e8320
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
lea edi, [ecx + eax]
add edi, 0xc00
mov edx, dword [esp + 0x18]
add edx, eax
add edx, 0xc00
mov ecx, dword [esp + 0x10]
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0xc], eax
je 0x4e86b7
mov dword [esp + 8], edi
mov ebx, esi
mov edi, dword [esp + 0x14]
mov esi, edx
nop
mov dword [esp], ebx
push dword [ebp + 0xc]
push dword [esp + 0x20]
mov ebx, dword [ebp + 8]
push ebx
call dword [esp + 0x1c]
add esp, 0xc
add edi, 1
mov eax, edi
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [esi]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x1c]
mov ebx, dword [esp]
xor eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov dword [esp + 8], ecx
add esi, 0x10
add ebx, 0xfffffff0
cmp ebx, 0xf
ja 0x4e8530
mov dword [esp + 0x14], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [esp + 8]
mov edi, dword [esp + 0xc]
sub eax, edi
mov ebx, dword [ebp + 8]
movdqu xmm0, xmmword [ebx + 0x40]
movdqu xmm1, xmmword [eax]
pxor xmm1, xmm0
pxor xmm2, xmm2
movdqa xmm0, xmm1
punpcklbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
punpckhbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm1, xmm0
movdqu xmmword [esp + 0x20], xmm1
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x30]
mov edx, esi
call fcn.004ea130
cmp edi, 0x10
je 0x4e866b
mov eax, edi
mov edi, 0x10
sub edi, eax
nop word cs:[eax + eax]
nop
movdqu xmm0, xmmword [esp + 0x20]
mov eax, dword [esp + 8]
movdqu xmm1, xmmword [eax + edi]
movdqa xmm2, xmm1
pxor xmm3, xmm3
punpcklbw xmm2, xmm3
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm1, xmm3
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [esp + 0x20], xmm1
lea ecx, [esp + 0x20]
mov edx, esi
call fcn.004ea130
add edi, 0x10
jne 0x4e8610
movdqu xmm0, xmmword [esp + 0x20]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [ebx + 0x40], xmm0
mov esi, dword [esp]
mov edi, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4e87f4
mov dword [esp + 4], edx
push dword [ebp + 0xc]
mov ebx, eax
push dword [esp + 0x20]
push dword [ebp + 8]
mov dword [esp + 0xc], esi
call ecx
mov ecx, dword [esp + 0xc]
add esp, 0xc
add ebx, 1
bswap ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp + 8]
xor eax, eax
cmp ecx, 8
jb 0x4e88a0
lea edx, [edi + ecx]
add ebx, ecx
add ebx, 0x40
cmp edi, ebx
setb byte [esp + 0xc]
mov esi, dword [esp + 0x1c]
cmp edx, esi
seta byte [esp + 0x18]
mov eax, dword [esp + 4]
add ecx, eax
mov dword [esp + 8], edi
cmp edi, ecx
setb byte [esp + 0x10]
cmp eax, edx
setb dh
cmp ecx, esi
seta dl
cmp eax, ebx
setb al
mov cl, byte [esp + 0x18]
test byte [esp + 0xc], cl
jne 0x4e87fb
and byte [esp + 0x10], dh
jne 0x4e87fb
mov ecx, dword [esp]
and dl, al
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 8]
mov eax, 0
jne 0x4e88a0
xor eax, eax
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x4e8855
mov eax, ecx
and eax, 0xfffffff0
lea ecx, [eax - 0x10]
mov esi, ecx
shr esi, 4
add esi, 1
test ecx, ecx
mov dword [esp + 0xc], esi
je 0x4e880c
and esi, 0xfffffffe
xor ecx, ecx
mov edx, dword [esp + 4]
nop word cs:[eax + eax]
nop
movdqu xmm0, xmmword [edx + ecx]
movdqu xmm1, xmmword [ebx + ecx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [edi + ecx], xmm1
movdqu xmm0, xmmword [ebx + ecx + 0x20]
movdqu xmm2, xmmword [ebx + ecx + 0x40]
pxor xmm2, xmm1
movdqu xmmword [ebx + ecx + 0x40], xmm2
movdqu xmm1, xmmword [edx + ecx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [edi + ecx + 0x10], xmm1
movdqu xmm0, xmmword [ebx + ecx + 0x50]
pxor xmm0, xmm1
movdqu xmmword [ebx + ecx + 0x50], xmm0
add ecx, 0x20
add esi, 0xfffffffe
jne 0x4e87a0
jmp 0x4e8812
xor eax, eax
jmp 0x4e891e
mov ecx, dword [esp]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 8]
xor eax, eax
jmp 0x4e88a0
xor ecx, ecx
mov edx, dword [esp + 4]
test byte [esp + 0xc], 1
je 0x4e883d
movdqu xmm0, xmmword [edx + ecx]
movdqu xmm1, xmmword [ebx + ecx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [edi + ecx], xmm1
movdqu xmm0, xmmword [ebx + ecx + 0x40]
pxor xmm0, xmm1
movdqu xmmword [ebx + ecx + 0x40], xmm0
mov ecx, dword [esp]
cmp ecx, eax
jne 0x4e884b
mov eax, ecx
jmp 0x4e891e
test cl, 8
jne 0x4e8855
and ecx, 0xf
jmp 0x4e88a0
mov edx, eax
mov eax, ecx
and eax, 0xfffffff8
and ecx, 7
mov esi, dword [esp + 4]
nop word cs:[eax + eax]
nop dword [eax]
movq xmm0, qword [esi + edx]
movq xmm1, qword [ebx + edx + 0x10]
pxor xmm1, xmm0
movq qword [edi + edx], xmm1
movq xmm0, qword [ebx + edx + 0x40]
pxor xmm0, xmm1
movq qword [ebx + edx + 0x40], xmm0
add edx, 8
cmp eax, edx
jne 0x4e8870
cmp dword [esp], eax
je 0x4e891b
test cl, 1
jne 0x4e88fe
mov edx, ecx
cmp ecx, 1
je 0x4e891b
mov ecx, dword [esp + 4]
add ecx, eax
add ecx, 1
lea esi, [ebx + eax]
add esi, 0x41
add eax, edi
add eax, 1
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, byte [esi + edi - 0x31]
xor bl, byte [ecx + edi - 1]
mov byte [eax + edi - 1], bl
xor byte [esi + edi - 1], bl
movzx ebx, byte [esi + edi - 0x30]
xor bl, byte [ecx + edi]
mov byte [eax + edi], bl
xor byte [esi + edi], bl
add edi, 2
cmp edx, edi
jne 0x4e88d0
mov eax, dword [esp]
mov ebx, dword [ebp + 8]
jmp 0x4e891e
mov dl, byte [ebx + eax + 0x10]
mov esi, dword [esp + 4]
xor dl, byte [esi + eax]
mov byte [edi + eax], dl
xor byte [ebx + eax + 0x40], dl
lea edx, [ecx - 1]
or eax, 1
cmp ecx, 1
jne 0x4e88ac
mov eax, dword [esp]
mov dword [ebx + 0x170], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret