Function at 0x4e9830
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 0x4e9f47
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x174], 0
mov edx, ebx
je 0x4e9911
mov eax, dword [ebp + 8]
lea edx, [eax + 0x60]
mov eax, dword [ebp + 8]
movdqu xmm0, xmmword [eax + 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
mov edx, dword [ebp + 8]
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 [edx + 0x40], xmm0
mov dword [edx + 0x174], 0
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov ecx, edx
mov eax, dword [edx + 0x170]
test eax, eax
je 0x4e99fe
test esi, esi
je 0x4e9d11
nop
movzx ecx, byte [ebx]
add ebx, 1
mov edx, dword [ebp + 8]
movzx edx, byte [edx + eax + 0x10]
xor dl, cl
mov byte [edi], dl
mov edx, dword [ebp + 8]
xor byte [edx + eax + 0x40], cl
add edi, 1
lea ecx, [esi - 1]
add eax, 1
and eax, 0xf
je 0x4e995e
cmp esi, 1
mov esi, ecx
jne 0x4e9930
test eax, eax
mov esi, dword [ebp + 8]
jne 0x4e9f3c
mov eax, dword [ebp + 8]
lea edx, [eax + 0x60]
mov eax, dword [ebp + 8]
movdqu xmm0, xmmword [eax + 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, dword [ebp + 8]
mov eax, 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 [ecx + 0x40], xmm0
jmp 0x4e9a00
mov eax, esi
mov edx, dword [ecx + 0xc]
bswap edx
lea esi, [ecx + 0x60]
mov dword [esp + 0xc], esi
cmp eax, 0xc00
mov dword [esp + 8], edi
jb 0x4e9b7c
lea ecx, [esp + 0x18]
mov esi, dword [ebp + 8]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
movdqu xmm0, xmmword [esi + 0x40]
movdqu xmm1, xmmword [ebx]
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
mov esi, dword [esp + 0xc]
mov edx, esi
call fcn.004ea130
mov edi, ebx
mov ebx, 0xfffff410
nop
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 0x4e9a90
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
push esi
push dword [ebp + 0xc]
push 0xc0
mov ebx, dword [esp + 0x14]
push ebx
push edi
call dword [ebp + 0x1c]
add esp, 0x14
mov edx, dword [esp + 4]
add edx, 0xc0
mov eax, edx
bswap eax
mov dword [esi + 0xc], eax
add ebx, 0xc00
mov dword [esp + 8], ebx
add edi, 0xc00
mov eax, dword [esp]
add eax, 0xfffff400
cmp eax, 0xbff
mov ebx, edi
lea ecx, [esp + 0x18]
ja 0x4e9a30
jmp 0x4e9b7f
mov esi, dword [ebp + 8]
mov edi, eax
and edi, 0xfffffff0
je 0x4e9d18
mov dword [esp + 4], edx
mov dword [esp], eax
shr eax, 4
mov dword [esp + 0x10], eax
movdqu xmm0, xmmword [esi + 0x40]
movdqu xmm1, xmmword [ebx]
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 + 0xc]
mov edx, esi
call fcn.004ea130
cmp edi, 0x10
mov dword [esp + 0x14], edi
je 0x4e9c5b
mov edi, 0x10
nop word [eax + eax]
movdqu xmm0, xmmword [esp + 0x18]
movdqu xmm1, xmmword [ebx + 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
add edi, 0x10
cmp dword [esp + 0x14], edi
jne 0x4e9c00
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
push esi
push dword [ebp + 0xc]
push dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push edi
push ebx
call dword [ebp + 0x1c]
add esp, 0x14
mov edx, dword [esp + 4]
add edx, dword [esp + 0x10]
mov eax, edx
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
add edi, eax
add ebx, eax
mov eax, dword [esp]
and eax, 0xf
test eax, eax
je 0x4e9d20
mov dword [esp + 0xc], ebx
lea ecx, [esi + 0x10]
push dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
push ecx
push esi
mov dword [esp + 0xc], eax
mov ebx, edx
call dword [esi + 0x168]
mov ecx, dword [esp + 0xc]
add esp, 0xc
add ebx, 1
bswap ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 4], 0
cmp ecx, 8
jae 0x4e9d27
mov ebx, dword [esp + 0xc]
jmp 0x4e9ebe
mov esi, ecx
jmp 0x4e9f3c
mov edi, dword [esp + 8]
test eax, eax
jne 0x4e9cd0
xor eax, eax
jmp 0x4e9f3c
lea edx, [esi + ecx]
add edx, 0x40
mov esi, edi
add edi, ecx
mov eax, dword [esp + 0xc]
add ecx, eax
mov ebx, dword [esp + 8]
cmp edi, ebx
seta byte [esp + 0x14]
cmp esi, edx
setb byte [esp + 0x10]
cmp ecx, ebx
seta bh
cmp eax, edx
setb dh
mov dword [esp + 8], esi
cmp esi, ecx
setb dl
cmp eax, edi
setb bl
mov al, byte [esp + 0x10]
test byte [esp + 0x14], al
jne 0x4e9e0d
and bh, dh
jne 0x4e9e0d
mov ecx, dword [esp]
and dl, bl
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
jne 0x4e9ebe
xor eax, eax
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x4e9e68
and ecx, 0xfffffff0
mov dword [esp + 4], ecx
add ecx, 0xfffffff0
mov eax, ecx
shr eax, 4
add eax, 1
test ecx, ecx
je 0x4e9e1d
mov esi, eax
and esi, 0xfffffffe
xor ecx, ecx
mov edx, dword [ebp + 8]
nop dword [eax + eax]
movups xmm0, xmmword [ebx + ecx]
movups xmm1, xmmword [edx + ecx + 0x10]
movups xmm2, xmmword [edx + ecx + 0x40]
xorps xmm2, xmm0
movups xmmword [edx + ecx + 0x40], xmm2
xorps xmm1, xmm0
movups xmmword [edi + ecx], xmm1
movdqu xmm0, xmmword [ebx + ecx + 0x10]
movdqu xmm1, xmmword [edx + ecx + 0x20]
movdqu xmm2, xmmword [edx + ecx + 0x50]
pxor xmm2, xmm0
movdqu xmmword [edx + ecx + 0x50], xmm2
pxor xmm1, xmm0
movdqu xmmword [edi + ecx + 0x10], xmm1
add ecx, 0x20
add esi, 0xfffffffe
jne 0x4e9dc0
jmp 0x4e9e22
mov ecx, dword [esp]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
jmp 0x4e9ebe
xor ecx, ecx
mov edx, dword [ebp + 8]
test al, 1
mov esi, edx
je 0x4e9e4c
movdqu xmm0, xmmword [ebx + ecx]
movdqu xmm1, xmmword [esi + ecx + 0x10]
movdqu xmm2, xmmword [esi + ecx + 0x40]
pxor xmm2, xmm0
movdqu xmmword [esi + ecx + 0x40], xmm2
pxor xmm1, xmm0
movdqu xmmword [edi + ecx], xmm1
mov ecx, dword [esp]
mov eax, dword [esp + 4]
cmp ecx, eax
jne 0x4e9e5e
mov eax, ecx
jmp 0x4e9f3c
test cl, 8
jne 0x4e9e68
and ecx, 0xf
jmp 0x4e9ebe
mov edx, eax
mov esi, ecx
and esi, 0xfffffff8
and ecx, 7
mov eax, dword [ebp + 8]
nop word cs:[eax + eax]
nop
movq xmm0, qword [ebx + edx]
movq xmm1, qword [eax + edx + 0x10]
movq xmm2, qword [eax + edx + 0x40]
pxor xmm2, xmm0
movq qword [eax + edx + 0x40], xmm2
pxor xmm1, xmm0
movq qword [edi + edx], xmm1
add edx, 8
cmp esi, edx
jne 0x4e9e80
mov dword [esp + 4], esi
cmp dword [esp], esi
jne 0x4e9ebe
mov esi, eax
mov eax, dword [esp]
jmp 0x4e9f3c
test cl, 1
jne 0x4e9ecc
mov edx, ecx
cmp ecx, 1
jne 0x4e9ef0
jmp 0x4e9f36
mov esi, dword [esp + 4]
mov dl, byte [ebx + esi]
mov eax, dword [ebp + 8]
xor byte [eax + esi + 0x40], dl
xor dl, byte [eax + esi + 0x10]
mov byte [edi + esi], dl
lea edx, [ecx - 1]
or esi, 1
mov dword [esp + 4], esi
cmp ecx, 1
je 0x4e9f36
mov esi, dword [esp + 4]
lea ecx, [ebx + esi]
add ecx, 1
mov eax, dword [ebp + 8]
mov ebx, esi
add esi, eax
add esi, 0x41
lea eax, [edi + ebx]
add eax, 1
xor edi, edi
nop dword [eax]
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 0x4e9f10
mov eax, dword [esp]
mov esi, dword [ebp + 8]
mov dword [esi + 0x170], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret