Function at 0x4e8940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
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 0x4e9105
mov edi, dword [ebx + 0x168]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x174], 0
je 0x4e8a1c
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 + 0x18], xmm0
lea ecx, [esp + 0x18]
call fcn.004ea130
movdqu xmm0, xmmword [esp + 0x18]
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 eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x170]
test eax, eax
mov dword [esp + 0xc], edi
je 0x4e8b20
test esi, esi
je 0x4e90fa
nop word cs:[eax + eax]
nop
mov edx, dword [esp + 4]
movzx ecx, byte [edx]
add edx, 1
mov dword [esp + 4], edx
movzx edx, byte [ebx + eax + 0x10]
xor dl, cl
mov edi, dword [esp + 8]
mov byte [edi], dl
xor byte [ebx + eax + 0x40], cl
add edi, 1
mov dword [esp + 8], edi
lea ecx, [esi - 1]
add eax, 1
and eax, 0xf
je 0x4e8a88
cmp esi, 1
mov esi, ecx
jne 0x4e8a50
test eax, eax
jne 0x4e90fa
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 + 0x18], xmm0
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.004ea130
mov ecx, esi
movdqu xmm0, xmmword [esp + 0x18]
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 edi, dword [esp + 0xc]
jmp 0x4e8b22
mov ecx, esi
mov edx, dword [ebx + 0xc]
bswap edx
lea eax, [ebx + 0x60]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x2c], eax
cmp ecx, 0xc00
mov dword [esp + 0x10], edx
jb 0x4e8d1e
pxor xmm2, xmm2
lea ebx, [esp + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
nop word cs:[eax + eax]
nop
mov dword [esp], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
movdqu xmm0, xmmword [eax + 0x40]
mov dword [esp + 4], edx
movdqu xmm1, xmmword [edx]
pxor xmm1, xmm0
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 + 0x18], xmm1
mov ecx, ebx
mov esi, dword [esp + 0x14]
mov edx, esi
call fcn.004ea130
mov edi, 0xfffff410
nop word cs:[eax + eax]
nop dword [eax + eax]
movdqu xmm0, xmmword [esp + 0x18]
mov eax, dword [esp + 4]
movdqu xmm1, xmmword [eax + edi + 0xc00]
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 + 0x18], xmm1
mov ecx, ebx
mov edx, esi
call fcn.004ea130
add edi, 0x10
jne 0x4e8bd0
movdqu xmm0, xmmword [esp + 0x18]
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 esi, dword [ebp + 8]
movdqu xmmword [esi + 0x40], xmm0
xor edi, edi
mov ebx, dword [esp + 0x10]
nop word cs:[eax + eax]
nop dword [eax]
push dword [ebp + 0xc]
push dword [esp + 0x30]
mov esi, dword [ebp + 8]
push esi
call dword [esp + 0x18]
add esp, 0xc
add ebx, 1
mov eax, ebx
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 4]
xor eax, dword [ecx + edi]
mov edx, dword [esp + 8]
mov dword [edx + edi], eax
mov eax, dword [esi + 0x14]
xor eax, dword [ecx + edi + 4]
mov dword [edx + edi + 4], eax
mov eax, dword [esi + 0x18]
xor eax, dword [ecx + edi + 8]
mov dword [edx + edi + 8], eax
mov eax, dword [esi + 0x1c]
xor eax, dword [ecx + edi + 0xc]
mov dword [edx + edi + 0xc], eax
add edi, 0x10
cmp edi, 0xc00
jne 0x4e8c80
mov dword [esp + 0x10], ebx
mov ecx, dword [esp]
add ecx, 0xfffff400
mov esi, dword [esp + 4]
lea edx, [esi + edi]
mov eax, dword [esp + 8]
add eax, edi
cmp ecx, 0xbff
pxor xmm2, xmm2
lea ebx, [esp + 0x18]
ja 0x4e8b60
add esi, edi
mov eax, dword [esp + 8]
add eax, edi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0xc]
mov esi, ecx
and esi, 0xfffffff0
je 0x4e8ebe
mov dword [esp], ecx
movdqu xmm0, xmmword [ebx + 0x40]
mov ecx, dword [esp + 4]
movdqu xmm1, xmmword [ecx]
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 + 0x18], xmm1
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x14]
call fcn.004ea130
mov eax, esi
cmp esi, 0x10
je 0x4e8df1
mov edi, 0x10
nop
movdqu xmm0, xmmword [esp + 0x18]
mov eax, dword [esp + 4]
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 + 0x18], xmm1
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x14]
call fcn.004ea130
mov eax, esi
add edi, 0x10
cmp esi, edi
jne 0x4e8d90
movdqu xmm0, xmmword [esp + 0x18]
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 ecx, dword [esp]
cmp ecx, 0x10
jb 0x4e8eba
mov esi, dword [esp + 8]
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0x10]
nop word cs:[eax + eax]
mov dword [esp + 0x10], edx
mov dword [esp], ecx
push dword [ebp + 0xc]
push dword [esp + 0x30]
mov edi, dword [ebp + 8]
push edi
call dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
add esp, 0xc
add edx, 1
mov eax, edx
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
xor eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [edi + 0x14]
xor eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x18]
xor eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x1c]
xor eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
add esi, 0x10
add ebx, 0x10
add ecx, 0xfffffff0
cmp ecx, 0xf
ja 0x4e8e50
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0xc]
test ecx, ecx
mov esi, dword [esp + 0x2c]
je 0x4e8ef8
push dword [ebp + 0xc]
push esi
push ebx
mov dword [esp + 0xc], ecx
call edi
mov ecx, dword [esp + 0xc]
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 1
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
cmp ecx, 8
jae 0x4e8eff
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
jmp 0x4e9090
xor eax, eax
jmp 0x4e90fa
lea edx, [ebx + ecx]
add edx, 0x40
mov dword [esp + 0x30], edx
mov edi, dword [esp + 8]
lea edx, [edi + ecx]
mov dword [esp + 0x10], edx
mov ebx, esi
mov esi, dword [esp + 4]
add ecx, esi
cmp edx, ebx
seta byte [esp + 0xc]
mov edx, dword [esp + 0x30]
cmp edi, edx
setb byte [esp + 0x14]
cmp ecx, ebx
seta bh
cmp esi, edx
setb dh
cmp edi, ecx
setb dl
cmp esi, dword [esp + 0x10]
setb bl
mov cl, byte [esp + 0x14]
test byte [esp + 0xc], cl
jne 0x4e8fed
and bh, dh
jne 0x4e8fed
mov ecx, dword [esp]
and dl, bl
mov ebx, dword [ebp + 8]
jne 0x4e9090
xor eax, eax
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x4e9047
mov edx, edi
mov edi, ebx
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 0x4e8ff8
and esi, 0xfffffffe
xor ecx, ecx
mov ebx, dword [esp + 4]
nop dword [eax + eax]
movups xmm0, xmmword [ebx + ecx]
movups xmm1, xmmword [edi + ecx + 0x10]
movups xmm2, xmmword [edi + ecx + 0x40]
xorps xmm2, xmm0
movups xmmword [edi + ecx + 0x40], xmm2
xorps xmm1, xmm0
movups xmmword [edx + ecx], xmm1
movdqu xmm0, xmmword [ebx + ecx + 0x10]
movdqu xmm1, xmmword [edi + ecx + 0x20]
movdqu xmm2, xmmword [edi + ecx + 0x50]
pxor xmm2, xmm0
movdqu xmmword [edi + ecx + 0x50], xmm2
pxor xmm1, xmm0
movdqu xmmword [edx + ecx + 0x10], xmm1
add ecx, 0x20
add esi, 0xfffffffe
jne 0x4e8fa0
jmp 0x4e8ffe
mov ecx, dword [esp]
mov ebx, dword [ebp + 8]
jmp 0x4e9090
xor ecx, ecx
mov ebx, dword [esp + 4]
test byte [esp + 0xc], 1
mov esi, ebx
mov ebx, edi
mov edi, edx
je 0x4e902f
movdqu xmm0, xmmword [esi + ecx]
movdqu xmm1, xmmword [ebx + ecx + 0x10]
movdqu xmm2, xmmword [ebx + ecx + 0x40]
pxor xmm2, xmm0
movdqu xmmword [ebx + ecx + 0x40], xmm2
pxor xmm1, xmm0
movdqu xmmword [edi + ecx], xmm1
mov ecx, dword [esp]
cmp ecx, eax
jne 0x4e903d
mov eax, ecx
jmp 0x4e90fa
test cl, 8
jne 0x4e9047
and ecx, 0xf
jmp 0x4e9090
mov edx, eax
mov eax, ecx
and eax, 0xfffffff8
and ecx, 7
nop word cs:[eax + eax]
nop dword [eax + eax]
movq xmm0, qword [esi + edx]
movq xmm1, qword [ebx + edx + 0x10]
movq xmm2, qword [ebx + edx + 0x40]
pxor xmm2, xmm0
movq qword [ebx + edx + 0x40], xmm2
pxor xmm1, xmm0
movq qword [edi + edx], xmm1
add edx, 8
cmp eax, edx
jne 0x4e9060
cmp dword [esp], eax
je 0x4e90f7
test cl, 1
jne 0x4e90de
mov edx, ecx
cmp ecx, 1
je 0x4e90f7
lea ecx, [esi + eax]
add ecx, 1
lea esi, [ebx + eax]
add esi, 0x41
add eax, edi
add eax, 1
xor edi, edi
nop
movzx ebx, byte [ecx + edi - 1]
xor byte [esi + edi - 1], bl
xor bl, byte [esi + edi - 0x31]
mov byte [eax + edi - 1], bl
movzx ebx, byte [ecx + edi]
xor byte [esi + edi], bl
xor bl, byte [esi + edi - 0x30]
mov byte [eax + edi], bl
add edi, 2
cmp edx, edi
jne 0x4e90b0
mov eax, dword [esp]
mov ebx, dword [ebp + 8]
jmp 0x4e90fa
mov dl, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
xor dl, byte [ebx + eax + 0x10]
mov byte [edi + eax], dl
lea edx, [ecx - 1]
or eax, 1
cmp ecx, 1
jne 0x4e909c
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