Function at 0x4e9110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
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 0x4e981b
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x174], 0
je 0x4e91e6
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 edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4e92d1
test esi, esi
je 0x4e9810
nop word cs:[eax + eax]
nop dword [eax]
movzx ecx, byte [ebx + eax + 0x10]
xor cl, byte [edi]
add edi, 1
mov byte [edx], cl
xor byte [ebx + eax + 0x40], cl
add edx, 1
lea ecx, [esi - 1]
add eax, 1
and eax, 0xf
je 0x4e9235
cmp esi, 1
mov esi, ecx
jne 0x4e9210
test eax, eax
jne 0x4e9810
mov dword [esp + 0xc], 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 + 0x18], xmm0
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.004ea130
mov ecx, esi
mov edx, dword [esp + 0xc]
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
jmp 0x4e92d3
mov ecx, esi
mov eax, dword [ebx + 0xc]
bswap eax
lea esi, [ebx + 0x60]
mov dword [esp + 0x14], esi
cmp ecx, 0xc00
mov dword [esp + 0x10], eax
jb 0x4e9454
mov esi, dword [esp + 0x14]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [esp + 4], ecx
push ebx
push dword [ebp + 0xc]
push 0xc0
push edx
mov dword [esp + 0x18], edi
push edi
mov edi, edx
call dword [ebp + 0x1c]
add esp, 0x14
mov eax, dword [esp + 0x10]
add eax, 0xc0
mov dword [esp + 0x10], eax
bswap eax
mov dword [ebx + 0xc], eax
movdqu xmm0, xmmword [ebx + 0x40]
movdqu xmm1, xmmword [edi]
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 + 0x18], xmm1
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.004ea130
mov ebx, 0xfffff410
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm0, xmmword [esp + 0x18]
movdqu xmm1, xmmword [edi + ebx + 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
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.004ea130
add ebx, 0x10
jne 0x4e9390
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 ebx, dword [ebp + 8]
movdqu xmmword [ebx + 0x40], xmm0
add edi, 0xc00
mov eax, dword [esp + 8]
add eax, 0xc00
mov ecx, dword [esp + 4]
add ecx, 0xfffff400
cmp ecx, 0xbff
mov edx, edi
mov edi, eax
ja 0x4e9300
mov eax, ecx
and eax, 0xfffffff0
je 0x4e95b1
mov dword [esp + 0x28], eax
mov eax, edi
mov dword [esp + 4], ecx
mov edi, ecx
shr edi, 4
push ebx
push dword [ebp + 0xc]
push edi
push edx
mov dword [esp + 0x18], eax
push eax
mov esi, edx
call dword [ebp + 0x1c]
add esp, 0x14
mov eax, dword [esp + 0x10]
add eax, edi
mov dword [esp + 0x10], eax
bswap eax
mov dword [ebx + 0xc], eax
movdqu xmm0, xmmword [ebx + 0x40]
mov dword [esp + 0xc], esi
movdqu xmm1, xmmword [esi]
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 esi, dword [esp + 0x14]
mov edx, esi
call fcn.004ea130
mov eax, dword [esp + 0x28]
cmp eax, 0x10
je 0x4e9561
mov edi, 0x10
nop word cs:[eax + eax]
movdqu xmm0, xmmword [esp + 0x18]
mov eax, dword [esp + 0xc]
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, esi
call fcn.004ea130
mov eax, dword [esp + 0x28]
add edi, 0x10
cmp eax, edi
jne 0x4e9500
mov edi, dword [esp + 8]
add edi, eax
mov ecx, dword [esp + 4]
and ecx, 0xf
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 edx, dword [esp + 0xc]
add edx, eax
test ecx, ecx
je 0x4e96e4
mov dword [esp + 0xc], edx
lea esi, [ebx + 0x10]
push dword [ebp + 0xc]
push esi
push ebx
mov dword [esp + 0x10], ecx
call dword [ebx + 0x168]
mov ecx, dword [esp + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 1
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
cmp ecx, 8
jb 0x4e9791
mov eax, dword [esp + 0xc]
lea edx, [eax + ecx]
mov dword [esp + 8], edi
lea edi, [ebx + ecx]
add edi, 0x40
cmp eax, edi
setb byte [esp + 0x10]
cmp edx, esi
seta byte [esp + 0x14]
mov ebx, ecx
mov ecx, dword [esp + 8]
add ecx, ebx
cmp eax, ecx
setb bl
cmp dword [esp + 8], edx
setb dh
cmp ecx, esi
seta dl
cmp dword [esp + 8], edi
mov edi, dword [esp + 8]
setb al
mov cl, byte [esp + 0x14]
test byte [esp + 0x10], cl
jne 0x4e96eb
and bl, dh
jne 0x4e96eb
mov ecx, dword [esp + 4]
and dl, al
mov ebx, dword [ebp + 8]
mov eax, 0
jne 0x4e9791
xor eax, eax
mov ecx, dword [esp + 4]
cmp ecx, 0x10
jb 0x4e9751
and ecx, 0xfffffff0
mov dword [esp + 0x10], ecx
add ecx, 0xfffffff0
mov edx, ecx
shr edx, 4
add edx, 1
test ecx, ecx
je 0x4e96f9
mov esi, edx
and esi, 0xfffffffe
xor ecx, ecx
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 8]
nop
movdqu xmm0, xmmword [eax + 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 [eax + 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 0x4e9690
jmp 0x4e96ff
xor eax, eax
jmp 0x4e9810
mov ecx, dword [esp + 4]
mov ebx, dword [ebp + 8]
xor eax, eax
jmp 0x4e9791
xor ecx, ecx
mov edi, dword [esp + 0xc]
test dl, 1
je 0x4e972c
mov eax, dword [esp + 8]
movdqu xmm0, xmmword [eax + 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 + 4]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0x4e973f
mov eax, ecx
jmp 0x4e9810
test cl, 8
jne 0x4e974d
and ecx, 0xf
mov edi, dword [esp + 8]
jmp 0x4e9791
mov edi, dword [esp + 8]
mov edx, eax
mov eax, ecx
and eax, 0xfffffff8
and ecx, 7
mov esi, dword [esp + 0xc]
nop
movq xmm0, qword [edi + edx]
movq xmm1, qword [ebx + edx + 0x10]
pxor xmm1, xmm0
movq qword [esi + edx], xmm1
movq xmm0, qword [ebx + edx + 0x40]
pxor xmm0, xmm1
movq qword [ebx + edx + 0x40], xmm0
add edx, 8
cmp eax, edx
jne 0x4e9760
cmp dword [esp + 4], eax
je 0x4e980c
test cl, 1
jne 0x4e97ef
mov edx, ecx
cmp ecx, 1
je 0x4e980c
lea ecx, [edi + eax]
add ecx, 1
lea esi, [ebx + eax]
add esi, 0x41
mov edi, dword [esp + 0xc]
add eax, edi
add eax, 1
xor edi, edi
nop word cs:[eax + eax]
nop
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 0x4e97c0
mov eax, dword [esp + 4]
mov ebx, dword [ebp + 8]
jmp 0x4e9810
mov dl, byte [ebx + eax + 0x10]
xor dl, byte [edi + eax]
mov esi, dword [esp + 0xc]
mov byte [esi + eax], dl
xor byte [ebx + eax + 0x40], dl
lea edx, [ecx - 1]
or eax, 1
cmp ecx, 1
jne 0x4e979d
mov eax, dword [esp + 4]
mov dword [ebx + 0x170], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret