Function at 0x46fce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov ebp, dword [esp + 0x4c]
xor eax, eax
mov ecx, dword [ebp + 0x38]
or ecx, dword [ebp + 0x3c]
jne 0x4700f7
mov edi, dword [esp + 0x54]
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
add edx, edi
mov esi, edx
adc ecx, 0
neg esi
mov esi, 0x20000000
sbb esi, ecx
jb 0x4700f7
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x34], ecx
mov esi, dword [esp + 0x50]
mov eax, dword [ebp + 0x16c]
test eax, eax
je 0x46fe3a
test edi, edi
je 0x46fd5c
nop word cs:[eax + eax]
nop
movzx ecx, byte [esi]
inc esi
xor byte [ebp + eax + 0x40], cl
inc eax
and eax, 0xf
cmp edi, 1
lea edi, [edi - 1]
je 0x46fd58
test eax, eax
jne 0x46fd40
test eax, eax
je 0x46fd67
mov dword [ebp + 0x16c], eax
jmp 0x4700f2
movzx ebx, byte [ebp + 0x4f]
mov dword [esp + 8], esi
mov dword [esp + 0x10], edi
mov dword [esp], 0
mov esi, ebx
and esi, 0xf
shl esi, 4
mov eax, dword [ebp + esi + 0x60]
mov ecx, dword [ebp + esi + 0x64]
mov edx, dword [ebp + esi + 0x6c]
mov edi, dword [ebp + esi + 0x68]
jmp 0x46fdea
mov edi, dword [esp]
mov ebx, ecx
shr ecx, 4
dec dword [esp]
shld ebx, esi, 0x1c
shld esi, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
movzx edi, byte [ebp + edi + 0x4e]
mov dword [esp + 4], edi
and edi, 0xf
shl edi, 4
xor ecx, dword [ebp + edi + 0x64]
xor ebx, dword [ebp + edi + 0x60]
xor eax, dword [ebp + edi + 0x68]
xor esi, dword [ebp + edi + 0x6c]
xor ecx, dword [edx*4 + 0x58128c]
mov edi, eax
mov eax, ebx
mov ebx, dword [esp + 4]
mov edx, esi
mov esi, ecx
and ebx, 0xfffffff0
shr ecx, 4
xor ecx, dword [ebp + ebx + 0x64]
shld esi, eax, 0x1c
shld eax, edx, 0x1c
shld edx, edi, 0x1c
and edi, 0xf
xor esi, dword [ebp + ebx + 0x60]
xor eax, dword [ebp + ebx + 0x6c]
xor edx, dword [ebp + ebx + 0x68]
xor ecx, dword [edi*4 + 0x58128c]
cmp dword [esp], 0xfffffff1
jne 0x46fda0
bswap esi
mov edi, dword [esp + 0x10]
bswap ecx
bswap eax
bswap edx
mov dword [ebp + 0x44], esi
mov esi, dword [esp + 8]
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x48], eax
cmp edi, 0x10
jb 0x470086
lea eax, [edi - 0x10]
mov cl, byte [ebp + 0x4c]
mov dl, byte [ebp + 0x46]
mov dword [esp + 0x30], eax
and eax, 0xfffffff0
mov dword [esp + 0x2c], eax
lea eax, [esi + eax + 0x10]
mov dword [esp + 0x34], eax
mov al, byte [ebp + 0x40]
mov ch, byte [ebp + 0x4d]
mov dword [esp + 0xc], edx
mov dl, byte [ebp + 0x4e]
mov ah, byte [ebp + 0x41]
mov dword [esp + 8], ecx
mov cl, byte [ebp + 0x47]
mov dword [esp + 4], eax
mov al, byte [ebp + 0x44]
mov dword [esp + 0x28], ecx
mov cl, byte [ebp + 0x4f]
mov ah, byte [ebp + 0x45]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
mov al, byte [ebp + 0x48]
mov ah, byte [ebp + 0x49]
mov dword [esp + 0x20], eax
mov al, byte [ebp + 0x42]
mov dword [esp + 0x1c], eax
mov al, byte [ebp + 0x43]
mov dword [esp + 0x18], eax
mov al, byte [ebp + 0x4a]
mov dword [esp + 0x24], eax
mov al, byte [ebp + 0x4b]
mov ebx, dword [esp + 4]
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
xor bl, byte [esi]
mov byte [ebp + 0x40], bl
xor bh, byte [esi + 1]
mov byte [ebp + 0x41], bh
mov ebx, edx
mov edx, dword [esp]
mov dword [esp], 0
xor al, byte [esi + 2]
mov byte [ebp + 0x42], al
mov eax, dword [esp + 0x18]
xor al, byte [esi + 3]
mov byte [ebp + 0x43], al
mov eax, dword [esp + 0x20]
xor dl, byte [esi + 4]
mov byte [ebp + 0x44], dl
xor dh, byte [esi + 5]
mov byte [ebp + 0x45], dh
mov edx, dword [esp + 0xc]
xor dl, byte [esi + 6]
mov byte [ebp + 0x46], dl
mov edx, dword [esp + 0x28]
xor dl, byte [esi + 7]
mov byte [ebp + 0x47], dl
xor al, byte [esi + 8]
mov byte [ebp + 0x48], al
xor ah, byte [esi + 9]
mov byte [ebp + 0x49], ah
mov eax, dword [esp + 0x24]
xor al, byte [esi + 0xa]
mov byte [ebp + 0x4a], al
mov eax, dword [esp + 8]
mov dword [esp + 8], esi
xor cl, byte [esi + 0xb]
mov byte [ebp + 0x4b], cl
mov ecx, dword [esp + 0x14]
xor al, byte [esi + 0xc]
mov byte [ebp + 0x4c], al
xor ah, byte [esi + 0xd]
mov byte [ebp + 0x4d], ah
xor bl, byte [esi + 0xe]
mov byte [ebp + 0x4e], bl
xor cl, byte [esi + 0xf]
mov esi, ebp
movzx eax, cl
mov byte [ebp + 0x4f], cl
mov dword [esp + 0xc], eax
and eax, 0xf
shl eax, 4
mov ecx, dword [ebp + eax + 0x60]
mov edx, dword [ebp + eax + 0x64]
mov ebp, dword [ebp + eax + 0x6c]
mov ebx, dword [esi + eax + 0x68]
mov eax, ecx
mov dword [esp + 4], edx
jmp 0x46ffbe
mov esi, dword [esp]
dec dword [esp]
movzx ebx, byte [ebp + esi + 0x4e]
mov esi, ebp
mov ebp, ecx
mov ecx, edi
shr edi, 4
shld ecx, edx, 0x1c
shld edx, eax, 0x1c
shld eax, ebp, 0x1c
and ebp, 0xf
mov dword [esp + 0xc], ebx
and ebx, 0xf
shl ebx, 4
xor edi, dword [esi + ebx + 0x64]
xor ecx, dword [esi + ebx + 0x60]
xor edx, dword [esi + ebx + 0x6c]
xor eax, dword [esi + ebx + 0x68]
xor edi, dword [ebp*4 + 0x58128c]
mov ebx, eax
mov ebp, edx
mov eax, ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 4]
mov edx, edi
and ecx, 0xfffffff0
shr edi, 4
xor edi, dword [esi + ecx + 0x64]
shld edx, eax, 0x1c
shld eax, ebp, 0x1c
shld ebp, ebx, 0x1c
and ebx, 0xf
xor ebp, dword [esi + ecx + 0x68]
xor edx, dword [esi + ecx + 0x60]
xor eax, dword [esi + ecx + 0x6c]
xor edi, dword [ebx*4 + 0x58128c]
cmp dword [esp], 0xfffffff1
mov ecx, ebp
mov ebp, esi
jne 0x46ff70
bswap edx
bswap edi
add dword [esp + 0x10], 0xfffffff0
mov esi, dword [esp + 8]
bswap eax
bswap ecx
mov ebx, edx
mov dword [ebp + 0x44], edx
mov dword [esp], edx
shr edx, 0x18
mov dword [ebp + 0x40], edi
mov dword [esp + 4], edi
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x48], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x20], eax
shr ebx, 0x10
mov dword [esp + 0x28], edx
mov edx, edi
mov dword [esp + 0xc], ebx
mov ebx, edi
mov edi, dword [esp + 0x10]
shr edx, 0x18
shr ebx, 0x10
mov dword [esp + 0x18], edx
mov edx, ecx
shr ecx, 0x18
add esi, 0x10
mov dword [esp + 0x1c], ebx
mov ebx, eax
shr edx, 0x10
shr eax, 0x18
mov dword [esp + 0x14], ecx
shr ebx, 0x10
cmp edi, 0xf
mov dword [esp + 0x24], ebx
ja 0x46feb0
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov edi, eax
test edi, edi
je 0x4700dc
xor eax, eax
cmp edi, 0x20
jb 0x4700e0
lea ecx, [ebp + 0x40]
lea edx, [esi + edi]
cmp edx, ecx
jbe 0x4700a3
lea ecx, [ebp + edi + 0x40]
cmp esi, ecx
jb 0x4700e0
mov eax, edi
xor ecx, ecx
and eax, 0xffffffe0
nop word [eax + eax]
movups xmm0, xmmword [esi + ecx]
movups xmm2, xmmword [ebp + ecx + 0x40]
movups xmm1, xmmword [esi + ecx + 0x10]
movups xmm3, xmmword [ebp + ecx + 0x50]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [ebp + ecx + 0x40], xmm2
movups xmmword [ebp + ecx + 0x50], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x4700b0
jmp 0x4700e8
xor edi, edi
jmp 0x4700ec
mov cl, byte [esi + eax]
xor byte [ebp + eax + 0x40], cl
inc eax
cmp edi, eax
jne 0x4700e0
mov dword [ebp + 0x16c], edi
mov eax, 1
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret