Function at 0x46d810
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [esp + 0x38]
mov esi, 0xffffffe0
mov ebx, 0xf
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
add edx, dword [esp + 0x48]
adc ecx, 0
xor eax, eax
cmp esi, edx
sbb ebx, ecx
jb 0x46dd21
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 0x46d944
movzx ebx, byte [esi + 0x4f]
mov dword [esp], 0
mov edx, ebx
and edx, 0xf
shl edx, 4
mov eax, dword [esi + edx + 0x60]
mov ecx, dword [esi + edx + 0x64]
mov edi, dword [esi + edx + 0x6c]
mov ebp, dword [esi + edx + 0x68]
jmp 0x46d8ee
mov ebx, dword [esp]
mov ebp, dword [esp + 0x38]
dec dword [esp]
movzx esi, byte [esi + ebx + 0x4e]
mov ebx, ecx
shr ecx, 4
shld ebx, edx, 0x1c
shld edx, eax, 0x1c
shld eax, edi, 0x1c
and edi, 0xf
mov dword [esp + 8], esi
and esi, 0xf
shl esi, 4
xor ecx, dword [ebp + esi + 0x64]
xor ecx, dword [edi*4 + 0x593524]
mov edi, dword [esp + 0x38]
xor ebx, dword [edi + esi + 0x60]
mov edi, dword [esp + 0x38]
xor edx, dword [edi + esi + 0x6c]
mov edi, dword [esp + 0x38]
xor eax, dword [edi + esi + 0x68]
mov esi, dword [esp + 0x38]
mov edi, edx
mov ebp, eax
mov eax, ebx
mov ebx, dword [esp + 8]
mov edx, ecx
and ebx, 0xfffffff0
shr ecx, 4
xor ecx, dword [esi + ebx + 0x64]
shld edx, eax, 0x1c
shld eax, edi, 0x1c
shld edi, ebp, 0x1c
and ebp, 0xf
xor edx, dword [esi + ebx + 0x60]
xor eax, dword [esi + ebx + 0x6c]
xor edi, dword [esi + ebx + 0x68]
xor ecx, dword [ebp*4 + 0x593524]
cmp dword [esp], 0xfffffff1
jne 0x46d890
bswap ecx
bswap edx
bswap eax
bswap edi
mov dword [esi + 0x44], edx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x174], 0
mov eax, dword [esi + 0x170]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov ebx, dword [esi + 0xc]
test eax, eax
je 0x46daac
mov edx, dword [esp + 0x48]
test edx, edx
je 0x46dd16
mov dword [esp + 0xc], ebx
nop dword [eax]
movzx ecx, byte [edi]
mov ch, byte [esi + eax + 0x10]
mov ebx, edx
inc edi
xor ch, cl
mov byte [ebp], ch
xor byte [esi + eax + 0x40], cl
inc eax
inc ebp
lea ecx, [ebx - 1]
and eax, 0xf
je 0x46d996
mov edx, ebx
cmp ebx, 1
mov edx, ecx
jne 0x46d970
test eax, eax
jne 0x46dd16
movzx esi, byte [esi + 0x4f]
mov dword [esp + 4], ecx
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 + 0x14], ebp
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 ebp, dword [edi + esi + 0x68]
mov esi, dword [esp + 0x38]
jmp 0x46da4a
mov edi, dword [esp]
mov ebp, dword [esp + 0x38]
dec dword [esp]
movzx esi, byte [esi + edi + 0x4e]
mov edi, ecx
shr ecx, 4
shld edi, ebx, 0x1c
shld ebx, eax, 0x1c
shld eax, edx, 0x1c
and edx, 0xf
mov dword [esp + 8], esi
and esi, 0xf
shl esi, 4
xor ecx, dword [ebp + 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 ebx, dword [edx + esi + 0x6c]
mov edx, dword [esp + 0x38]
xor eax, dword [edx + esi + 0x68]
mov esi, dword [esp + 0x38]
mov edx, ebx
mov ebp, eax
mov eax, edi
mov edi, dword [esp + 8]
mov ebx, ecx
shr ecx, 4
shld ebx, eax, 0x1c
shld eax, edx, 0x1c
shld edx, ebp, 0x1c
and ebp, 0xf
and edi, 0xfffffff0
xor ecx, dword [esi + edi + 0x64]
xor ebx, dword [esi + edi + 0x60]
xor eax, dword [esi + edi + 0x6c]
xor edx, dword [esi + edi + 0x68]
xor ecx, dword [ebp*4 + 0x593524]
cmp dword [esp], 0xfffffff1
jne 0x46d9f0
bswap ecx
bswap ebx
bswap eax
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
bswap edx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x48], eax
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x4c], edx
jmp 0x46dab0
mov eax, dword [esp + 0x48]
bswap ebx
cmp eax, 0x10
jb 0x46dc25
lea ecx, [esi + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
mov dword [esp + 0x20], eax
push dword [esp + 0x3c]
push dword [esp + 0x20]
push esi
call dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [esi + 0x10]
xor ecx, eax
mov dword [ebp], ecx
xor dword [esi + 0x40], eax
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [esi + 0x44], eax
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [ebp + 8], ecx
xor dword [esi + 0x48], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov ecx, esi
mov dword [esp], 0
mov ebx, dword [edi + 0xc]
mov eax, dword [esi + 0x1c]
xor eax, ebx
mov dword [ebp + 0xc], eax
xor ebx, dword [esi + 0x4c]
mov dword [esi + 0x4c], ebx
shr ebx, 0x18
mov edx, ebx
and edx, 0xf
shl edx, 4
mov eax, dword [esi + edx + 0x60]
mov ebp, dword [esi + edx + 0x64]
mov edi, dword [esi + edx + 0x6c]
mov esi, dword [esi + edx + 0x68]
jmp 0x46dbae
mov ecx, dword [esp]
dec dword [esp]
movzx ebx, byte [esi + ecx + 0x4e]
mov ecx, esi
mov esi, ebx
mov dword [esp + 8], ebx
mov ebx, ebp
shr ebp, 4
and esi, 0xf
shld ebx, edx, 0x1c
shld edx, eax, 0x1c
shld eax, edi, 0x1c
and edi, 0xf
shl esi, 4
xor ebp, dword [ecx + esi + 0x64]
xor ebx, dword [ecx + esi + 0x60]
xor eax, dword [ecx + esi + 0x68]
xor edx, dword [ecx + esi + 0x6c]
xor ebp, dword [edi*4 + 0x593524]
mov esi, eax
mov eax, ebx
mov ebx, dword [esp + 8]
mov edi, edx
mov edx, ebp
and ebx, 0xfffffff0
shr ebp, 4
xor ebp, dword [ecx + ebx + 0x64]
shld edx, eax, 0x1c
shld eax, edi, 0x1c
shld edi, esi, 0x1c
and esi, 0xf
xor edx, dword [ecx + ebx + 0x60]
xor eax, dword [ecx + ebx + 0x6c]
xor edi, dword [ecx + ebx + 0x68]
xor ebp, dword [esi*4 + 0x593524]
cmp dword [esp], 0xfffffff1
mov esi, ecx
jne 0x46db60
bswap edx
bswap ebp
bswap eax
bswap edi
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [esi + 0x4c], edi
mov edi, dword [esp + 0x10]
add eax, 0xfffffff0
add ebp, 0x10
add edi, 0x10
cmp eax, 0xf
ja 0x46dad0
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
and eax, 0xf
test eax, eax
je 0x46dc5f
mov dword [esp + 0x10], edi
mov edi, esi
lea esi, [esi + 0x10]
push dword [esp + 0x3c]
push esi
push edi
mov dword [esp + 0x10], eax
call dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add esp, 0xc
inc ebx
xor eax, eax
cmp ecx, 0x10
bswap ebx
mov dword [edi + 0xc], ebx
jae 0x46dc66
mov esi, edi
mov edi, dword [esp + 0x10]
jmp 0x46dd00
xor eax, eax
jmp 0x46dd16
mov ebx, dword [esp + 0x10]
lea edx, [edi + ecx + 0x40]
lea edi, [ebp + ecx]
cmp edi, esi
seta byte [esp]
cmp ebp, edx
setb byte [esp + 8]
lea ecx, [ebx + ecx]
cmp ecx, esi
seta byte [esp + 0xc]
cmp ebx, edx
setb dh
cmp ebp, ecx
mov ch, byte [esp + 8]
setb dl
cmp ebx, edi
mov edi, ebx
setb bl
test byte [esp], ch
jne 0x46dced
and byte [esp + 0xc], dh
mov esi, dword [esp + 0x38]
jne 0x46dcf7
mov ecx, dword [esp + 4]
and dl, bl
jne 0x46dd00
mov eax, ecx
xor edx, edx
and eax, 0xfffffff0
sub ecx, eax
nop
movups xmm0, xmmword [edi + edx]
movups xmm1, xmmword [esi + edx + 0x10]
movups xmm2, xmmword [esi + edx + 0x40]
xorps xmm2, xmm0
xorps xmm1, xmm0
movups xmmword [esi + edx + 0x40], xmm2
movups xmmword [ebp + edx], xmm1
add edx, 0x10
cmp eax, edx
jne 0x46dcc0
cmp dword [esp + 4], eax
jne 0x46dd00
jmp 0x46dd16
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0x38]
jmp 0x46dd00
mov ecx, dword [esp + 4]
nop dword [eax + eax]
movzx edx, byte [edi + eax]
xor byte [esi + eax + 0x40], dl
xor dl, byte [esi + eax + 0x10]
dec ecx
mov byte [ebp + eax], dl
lea eax, [eax + 1]
jne 0x46dd00
mov dword [esi + 0x170], eax
mov eax, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret