Function at 0x46d2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x48]
mov esi, 0xffffffe0
mov ebp, 0xf
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
add edx, ebx
adc ecx, 0
xor eax, eax
cmp esi, edx
sbb ebp, ecx
jb 0x46d7ef
mov eax, dword [edi + 0x168]
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], ecx
mov esi, edi
cmp dword [edi + 0x174], 0
mov dword [esp + 0x18], eax
je 0x46d408
movzx esi, byte [esi + 0x4f]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x38]
mov dword [esp], 0
mov dword [esp + 8], esi
and esi, 0xf
shl esi, 4
mov eax, dword [eax + esi + 0x60]
mov ecx, dword [ecx + esi + 0x64]
mov edx, dword [edx + esi + 0x6c]
mov ebx, dword [edi + esi + 0x68]
mov esi, dword [esp + 0x38]
jmp 0x46d3aa
mov edi, dword [esp]
mov ebx, dword [esp + 0x38]
dec dword [esp]
movzx esi, byte [esi + edi + 0x4e]
mov edi, ecx
shr ecx, 4
shld edi, ebp, 0x1c
shld ebp, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
mov dword [esp + 8], esi
and esi, 0xf
shl esi, 4
xor ecx, dword [ebx + esi + 0x64]
xor ecx, dword [edx*4 + 0x593524]
mov edx, dword [esp + 0x38]
xor edi, dword [edx + esi + 0x60]
mov edx, dword [esp + 0x38]
xor ebp, dword [edx + esi + 0x6c]
mov edx, dword [esp + 0x38]
xor eax, dword [edx + esi + 0x68]
mov esi, dword [esp + 0x38]
mov edx, ebp
mov ebx, eax
mov eax, edi
mov edi, dword [esp + 8]
mov ebp, ecx
shr ecx, 4
shld ebp, eax, 0x1c
shld eax, edx, 0x1c
shld edx, ebx, 0x1c
and ebx, 0xf
and edi, 0xfffffff0
xor ecx, dword [esi + edi + 0x64]
xor ebp, dword [esi + edi + 0x60]
xor eax, dword [esi + edi + 0x6c]
xor edx, dword [esi + edi + 0x68]
xor ecx, dword [ebx*4 + 0x593524]
cmp dword [esp], 0xfffffff1
jne 0x46d350
mov ebx, dword [esp + 0x48]
bswap ecx
bswap ebp
bswap eax
bswap edx
mov dword [esi + 0x44], ebp
mov dword [esi + 0x40], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x48], eax
mov dword [esi + 0x174], 0
mov eax, dword [esi + 0x170]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + 0xc]
test eax, eax
je 0x46d55a
test ebx, ebx
je 0x46d7e4
mov dword [esp + 0x14], ecx
nop dword [eax]
movzx ecx, byte [esi + eax + 0x10]
xor cl, byte [edx]
inc edx
mov byte [edi], cl
xor byte [esi + eax + 0x40], cl
inc eax
inc edi
and eax, 0xf
cmp ebx, 1
lea ebx, [ebx - 1]
je 0x46d44f
test eax, eax
jne 0x46d430
test eax, eax
jne 0x46d7e4
movzx esi, byte [esi + 0x4f]
mov dword [esp + 4], edx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x38]
mov dword [esp + 0xc], ebx
mov dword [esp], 0
mov dword [esp + 8], esi
and esi, 0xf
shl esi, 4
mov eax, dword [eax + esi + 0x60]
mov ecx, dword [ecx + esi + 0x64]
mov edx, dword [edx + esi + 0x6c]
mov ebx, dword [edi + esi + 0x68]
mov esi, dword [esp + 0x38]
jmp 0x46d4fa
mov edi, dword [esp]
mov ebx, dword [esp + 0x38]
dec dword [esp]
movzx esi, byte [esi + edi + 0x4e]
mov edi, ecx
shr ecx, 4
shld edi, ebp, 0x1c
shld ebp, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
mov dword [esp + 8], esi
and esi, 0xf
shl esi, 4
xor ecx, dword [ebx + esi + 0x64]
xor ecx, dword [edx*4 + 0x593524]
mov edx, dword [esp + 0x38]
xor edi, dword [edx + esi + 0x60]
mov edx, dword [esp + 0x38]
xor ebp, dword [edx + esi + 0x6c]
mov edx, dword [esp + 0x38]
xor eax, dword [edx + esi + 0x68]
mov esi, dword [esp + 0x38]
mov edx, ebp
mov ebx, eax
mov eax, edi
mov edi, dword [esp + 8]
mov ebp, ecx
shr ecx, 4
shld ebp, eax, 0x1c
shld eax, edx, 0x1c
shld edx, ebx, 0x1c
and ebx, 0xf
and edi, 0xfffffff0
xor ecx, dword [esi + edi + 0x64]
xor ebp, dword [esi + edi + 0x60]
xor eax, dword [esi + edi + 0x6c]
xor edx, dword [esi + edi + 0x68]
xor ecx, dword [ebx*4 + 0x593524]
cmp dword [esp], 0xfffffff1
jne 0x46d4a0
bswap ecx
bswap ebp
bswap edx
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
bswap eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ebp
mov dword [esi + 0x4c], edx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x48], eax
bswap ecx
cmp ebx, 0x10
jb 0x46d6d5
lea eax, [esi + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], eax
nop word cs:[eax + eax]
nop
mov dword [esp + 0x20], ebx
push dword [esp + 0x3c]
push dword [esp + 0x20]
push esi
mov ebx, edx
call dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, esi
inc eax
mov dword [esp + 0x14], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [ebx]
mov dword [edi], eax
xor dword [esi + 0x40], eax
mov eax, dword [esi + 0x14]
xor eax, dword [ebx + 4]
mov dword [edi + 4], eax
xor dword [esi + 0x44], eax
mov eax, dword [esi + 0x18]
xor eax, dword [ebx + 8]
mov dword [edi + 8], eax
xor dword [esi + 0x48], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x10], edi
mov dword [esp], 0
mov ebp, dword [esi + 0x1c]
xor ebp, dword [ebx + 0xc]
mov dword [edi + 0xc], ebp
xor ebp, dword [esi + 0x4c]
mov dword [esi + 0x4c], ebp
shr ebp, 0x18
mov edx, ebp
and edx, 0xf
shl edx, 4
mov eax, dword [esi + edx + 0x60]
mov ebx, dword [esi + edx + 0x64]
mov edi, dword [esi + edx + 0x6c]
mov esi, dword [esi + edx + 0x68]
jmp 0x46d65e
mov ecx, dword [esp]
dec dword [esp]
movzx ebp, byte [esi + ecx + 0x4e]
mov ecx, esi
mov esi, ebp
mov dword [esp + 8], ebp
mov ebp, ebx
shr ebx, 4
and esi, 0xf
shld ebp, edx, 0x1c
shld edx, eax, 0x1c
shld eax, edi, 0x1c
and edi, 0xf
shl esi, 4
xor ebx, dword [ecx + esi + 0x64]
xor ebp, dword [ecx + esi + 0x60]
xor eax, dword [ecx + esi + 0x68]
xor edx, dword [ecx + esi + 0x6c]
xor ebx, dword [edi*4 + 0x593524]
mov esi, eax
mov eax, ebp
mov ebp, dword [esp + 8]
mov edi, edx
mov edx, ebx
and ebp, 0xfffffff0
shr ebx, 4
xor ebx, dword [ecx + ebp + 0x64]
shld edx, eax, 0x1c
shld eax, edi, 0x1c
shld edi, esi, 0x1c
and esi, 0xf
xor edx, dword [ecx + ebp + 0x60]
xor eax, dword [ecx + ebp + 0x6c]
xor edi, dword [ecx + ebp + 0x68]
xor ebx, dword [esi*4 + 0x593524]
cmp dword [esp], 0xfffffff1
mov esi, ecx
jne 0x46d610
bswap ebx
bswap edx
bswap edi
bswap eax
mov dword [esi + 0x40], ebx
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x44], edx
mov edx, dword [esp + 4]
mov dword [esi + 0x4c], edi
mov edi, dword [esp + 0x10]
mov dword [esi + 0x48], eax
add ebx, 0xfffffff0
add edi, 0x10
add edx, 0x10
cmp ebx, 0xf
ja 0x46d580
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
and ebx, 0xf
test ebx, ebx
je 0x46d713
mov dword [esp + 0x10], edi
mov edi, esi
lea esi, [esi + 0x10]
mov dword [esp + 4], edx
push dword [esp + 0x3c]
push esi
push edi
mov ebp, ecx
call dword [esp + 0x24]
add esp, 0xc
inc ebp
xor eax, eax
cmp ebx, 0x10
bswap ebp
mov dword [edi + 0xc], ebp
jae 0x46d71a
mov ecx, ebx
mov esi, edi
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 4]
jmp 0x46d7d0
xor eax, eax
jmp 0x46d7e4
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 4]
lea edi, [edi + ebx + 0x40]
mov dword [esp + 0xc], ebx
lea edx, [ebp + ebx]
cmp ebp, edi
lea ebx, [ecx + ebx]
setb byte [esp]
cmp edx, esi
seta byte [esp + 8]
cmp ebp, ebx
setb byte [esp + 0x14]
cmp ecx, edx
setb dh
cmp ebx, esi
seta dl
cmp ecx, edi
mov ch, byte [esp + 8]
setb bl
test byte [esp], ch
jne 0x46d7f7
and byte [esp + 0x14], dh
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
jne 0x46d7bb
and dl, bl
jne 0x46d7bb
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 4]
xor edx, edx
mov eax, edi
mov ecx, edi
and eax, 0xfffffff0
sub ecx, eax
nop word cs:[eax + eax]
movups xmm0, xmmword [ebx + edx]
movups xmm1, xmmword [esi + edx + 0x10]
xorps xmm1, xmm0
movups xmmword [ebp + edx], xmm1
movups xmm0, xmmword [esi + edx + 0x40]
xorps xmm0, xmm1
movups xmmword [esi + edx + 0x40], xmm0
add edx, 0x10
cmp eax, edx
jne 0x46d790
cmp edi, eax
jne 0x46d7d0
jmp 0x46d7e4
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 4]
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [esi + eax + 0x10]
xor dl, byte [ebx + eax]
mov byte [ebp + eax], dl
xor byte [esi + eax + 0x40], dl
inc eax
dec ecx
jne 0x46d7d0
mov dword [esi + 0x170], eax
mov eax, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x38]
jmp 0x46d706