Function at 0x4f99c0
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 0x4fa09a
lea edi, [ebx + 0x50]
mov eax, dword [ebx + 0x158]
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x164], 0
je 0x4f9aa2
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]
mov edx, edi
call fcn.004fb680
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 + 0x164], 0
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x160]
test eax, eax
je 0x4f9b8a
test esi, esi
je 0x4fa08f
nop word cs:[eax + eax]
movzx ecx, byte [ebx + eax + 0x10]
xor cl, byte [edx]
inc edx
mov byte [edi], cl
xor byte [ebx + eax + 0x40], cl
inc edi
lea ecx, [esi - 1]
inc eax
and eax, 0xf
je 0x4f9aef
cmp esi, 1
mov esi, ecx
jne 0x4f9ad0
test eax, eax
jne 0x4fa08f
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 dword [esp], ecx
lea ecx, [esp + 0x20]
mov esi, edx
mov edx, dword [esp + 0x18]
call fcn.004fb680
mov edx, esi
mov eax, dword [esp]
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
jmp 0x4f9b8c
mov eax, esi
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov ebx, dword [ebx + 0xc]
bswap ebx
cmp eax, 0xc00
jb 0x4f9d5b
mov dword [esp + 8], ebx
add ecx, 0x10
mov dword [esp + 0x30], ecx
nop dword [eax]
mov dword [esp], eax
mov ecx, edi
mov esi, 0xfffff400
mov ebx, dword [esp + 8]
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
nop dword [eax]
push dword [ebp + 0xc]
push dword [esp + 0x34]
push edi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 0xc
inc ebx
mov eax, ebx
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
xor eax, dword [edx + esi + 0xc00]
mov dword [ecx + esi + 0xc00], eax
mov eax, dword [edi + 0x14]
xor eax, dword [edx + esi + 0xc04]
mov dword [ecx + esi + 0xc04], eax
mov eax, dword [edi + 0x18]
xor eax, dword [edx + esi + 0xc08]
mov dword [ecx + esi + 0xc08], eax
mov eax, dword [edi + 0x1c]
xor eax, dword [edx + esi + 0xc0c]
mov dword [ecx + esi + 0xc0c], eax
add esi, 0x10
jne 0x4f9bd0
mov dword [esp + 8], ebx
lea ebx, [ecx + esi]
movdqu xmm0, xmmword [edi + 0x40]
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 [esp + 0x20], xmm0
lea eax, [ecx + esi + 0xc00]
mov dword [esp + 0x14], eax
lea eax, [edx + esi]
add eax, 0xc00
mov dword [esp + 4], eax
xor edi, edi
nop word cs:[eax + eax]
mov eax, dword [ebx + edi + 8]
mov ecx, dword [ebx + edi + 0xc]
bswap ecx
xor dword [esp + 0x20], ecx
bswap eax
xor dword [esp + 0x24], eax
mov eax, dword [ebx + edi]
mov ecx, dword [ebx + edi + 4]
bswap ecx
xor dword [esp + 0x28], ecx
bswap eax
xor dword [esp + 0x2c], eax
lea ecx, [esp + 0x20]
mov edx, dword [esp + 0x18]
call fcn.004fb680
add edi, 0x10
cmp edi, 0xc00
jne 0x4f9ca0
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 eax, dword [esp]
add eax, 0xfffff400
cmp eax, 0xbff
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 4]
ja 0x4f9bb0
mov ecx, dword [esp + 0xc]
lea edi, [ecx + esi]
add edi, 0xc00
mov ecx, dword [esp + 0x10]
lea edx, [ecx + esi]
add edx, 0xc00
mov ebx, dword [esp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, eax
and ecx, 0xff0
je 0x4f9eb5
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, eax
mov esi, edx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], ecx
push dword [ebp + 0xc]
push dword [esp + 0x14]
push ebx
call dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
add esp, 0xc
inc edx
mov eax, edx
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [esi]
mov dword [edi], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
add edi, 0x10
add esi, 0x10
add ecx, 0xfffffff0
cmp ecx, 0xf
ja 0x4f9d80
mov eax, ebx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], ecx
mov esi, dword [esp + 0xc]
neg esi
movdqu xmm0, xmmword [ebx + 0x40]
pxor xmm1, xmm1
movdqa xmm2, xmm0
punpcklbw xmm2, xmm1
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm0, xmm1
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
movdqu xmmword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x18]
nop word [eax + eax]
mov eax, dword [edi + esi + 8]
mov ecx, dword [edi + esi + 0xc]
bswap ecx
xor dword [esp + 0x20], ecx
bswap eax
xor dword [esp + 0x24], eax
mov eax, dword [edi + esi]
mov ecx, dword [edi + esi + 4]
bswap ecx
xor dword [esp + 0x28], ecx
bswap eax
xor dword [esp + 0x2c], eax
lea ecx, [esp + 0x20]
mov edx, ebx
call fcn.004fb680
add esi, 0x10
jne 0x4f9e30
pxor xmm0, xmm0
movdqu xmm1, xmmword [esp + 0x20]
movdqa xmm2, xmm1
punpcklbw xmm2, xmm0
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm1, xmm0
pshufd xmm0, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
mov eax, dword [ebp + 8]
movdqu xmmword [eax + 0x40], xmm0
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4f9fb9
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
mov edx, esi
mov esi, ecx
add ecx, 0x10
push edx
mov dword [esp + 0x14], ecx
push ecx
push esi
mov dword [esp + 0xc], eax
call dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
add esp, 0xc
inc ebx
bswap ebx
mov dword [esi + 0xc], ebx
mov ebx, esi
xor eax, eax
cmp ecx, 8
jb 0x4fa020
lea edx, [edi + ecx]
mov dword [esp + 0x30], edx
lea esi, [ecx + ebx]
add esi, 0x40
mov dword [esp + 0xc], esi
mov edx, dword [esp + 4]
lea ebx, [edx + ecx]
cmp edi, esi
setb byte [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp esi, ecx
setb byte [esp + 0x18]
mov dword [esp + 0x14], edi
cmp edi, ebx
setb byte [esp + 8]
cmp edx, ecx
setb ch
cmp esi, ebx
setb bh
cmp edx, dword [esp + 0xc]
setb bl
mov cl, byte [esp + 0x18]
test byte [esp + 0x1c], cl
jne 0x4f9fc0
and byte [esp + 8], ch
jne 0x4f9fc0
mov ecx, dword [esp]
and bh, bl
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x14]
jne 0x4fa020
xor eax, eax
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x4f9fd6
mov eax, ecx
and eax, 0xfffffff0
xor ecx, ecx
mov edx, dword [esp + 4]
nop word cs:[eax + eax]
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
add ecx, 0x10
cmp eax, ecx
jne 0x4f9f80
mov ecx, dword [esp]
cmp ecx, eax
jne 0x4f9fcc
mov eax, ecx
jmp 0x4fa08f
xor eax, eax
jmp 0x4fa069
mov ecx, dword [esp]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x14]
jmp 0x4fa020
test cl, 8
jne 0x4f9fd6
and ecx, 0xf
jmp 0x4fa020
mov edx, eax
mov eax, ecx
and eax, 0xfffffff8
and ecx, 7
mov esi, dword [esp + 4]
nop word cs:[eax + 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 0x4f9ff0
cmp dword [esp], eax
je 0x4fa08c
test cl, 1
jne 0x4fa06e
mov edx, ecx
cmp ecx, 1
je 0x4fa08c
mov ecx, dword [esp + 4]
add ecx, eax
inc ecx
lea esi, [edi + eax]
inc esi
add eax, ebx
add eax, 0x41
xor edi, edi
nop
movzx ebx, byte [eax + edi - 0x31]
xor bl, byte [ecx + edi - 1]
mov byte [esi + edi - 1], bl
xor byte [eax + edi - 1], bl
movzx ebx, byte [eax + edi - 0x30]
xor bl, byte [ecx + edi]
mov byte [esi + edi], bl
xor byte [eax + edi], bl
add edi, 2
cmp edx, edi
jne 0x4fa040
mov eax, dword [esp]
mov ebx, dword [ebp + 8]
jmp 0x4fa08f
movzx edx, 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 0x4fa02c
mov eax, dword [esp]
mov dword [ebx + 0x160], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret