Function at 0x46e510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x78], eax
xor ebx, ebx
cmp dword [ebp + 8], 0x30
ja 0x46e811
mov edi, edx
mov esi, ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov ecx, dword [ecx + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea ebx, [esi + 0xfc]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push esi
push eax
push ebx
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x44]
push eax
push ebx
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x14], ebx
push ebx
call ecx
mov edx, dword [ebp + 8]
add esp, 0xc
test edx, edx
je 0x46e67d
xor eax, eax
cmp edx, 8
jb 0x46e670
xor eax, eax
cmp edx, 0x10
jb 0x46e63c
mov eax, edx
and eax, 0xfffffff0
movdqu xmm0, xmmword [edi]
pxor xmm0, xmmword [esp + 0x30]
movdqa xmmword [esp + 0x30], xmm0
cmp eax, 0x10
je 0x46e633
movdqu xmm0, xmmword [edi + 0x10]
pxor xmm0, xmmword [esp + 0x40]
movdqa xmmword [esp + 0x40], xmm0
cmp eax, 0x20
je 0x46e633
movdqu xmm0, xmmword [edi + 0x20]
pxor xmm0, xmmword [esp + 0x50]
movdqa xmmword [esp + 0x50], xmm0
cmp eax, edx
je 0x46e67d
test dl, 8
je 0x46e670
mov ecx, eax
mov eax, edx
and eax, 0xfffffff8
nop word cs:[eax + eax]
movq xmm0, qword [edi + ecx]
movq xmm1, qword [esp + ecx + 0x30]
pxor xmm1, xmm0
movq qword [esp + ecx + 0x30], xmm1
add ecx, 8
cmp eax, ecx
jne 0x46e650
cmp eax, edx
je 0x46e67d
movzx ecx, byte [edi + eax]
xor byte [esp + eax + 0x30], cl
inc eax
cmp edx, eax
jne 0x46e670
lea edi, [esi + 0xf4]
mov eax, dword [0x5b52d4]
test eax, 0x2000000
jne 0x46e7a9
test eax, 0x200
jne 0x46e7c8
mov dword [esp + 8], edi
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x10], xmm0
movups xmmword [esi], xmm0
movdqa xmm0, xmmword [esp + 0x40]
movdqu xmmword [esi + 0x10], xmm0
mov ebx, 0x30
mov edi, 0x56ebf0
nop
pcmpeqd xmm1, xmm1
movdqa xmmword [esp + 0x60], xmm1
lea ecx, [esp + 0x60]
movdqa xmmword [esp + 0x20], xmm0
call fcn.0046edc0
movzx eax, byte [edi]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x10]
movdqa xmm3, xmmword [esp + 0x60]
movdqa xmm2, xmm3
psrld xmm2, 8
pslld xmm3, 0x18
por xmm3, xmm2
psrldq xmm3, 0xc
pxor xmm3, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm2, xmm3
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm0, xmm3
pslldq xmm0, 0xc
pxor xmm0, xmm2
pxor xmm0, xmm3
movdqu xmmword [esi + ebx - 0x10], xmm0
cmp ebx, 0xf0
je 0x46e7e4
lea ecx, [esp + 0x60]
movdqa xmmword [esp + 0x10], xmm0
call fcn.0046edc0
movdqa xmm1, xmmword [esp + 0x60]
psrldq xmm1, 0xc
movdqa xmm0, xmmword [esp + 0x20]
pxor xmm0, xmm1
movdqa xmm2, xmm0
pslldq xmm2, 4
movdqa xmm1, xmm0
pslldq xmm1, 8
pxor xmm1, xmm2
movdqa xmm2, xmm0
pslldq xmm2, 0xc
pxor xmm2, xmm1
pxor xmm0, xmm2
movdqu xmmword [esi + ebx], xmm0
add ebx, 0x20
inc edi
jmp 0x46e6d0
push esi
push 0x100
lea eax, [esp + 0x38]
push eax
call fcn.0049ea00
add esp, 0xc
mov ecx, 0x49c680
mov eax, 0x49d210
jmp 0x46e7f2
push esi
push 0x100
lea eax, [esp + 0x38]
push eax
call fcn.0049f520
add esp, 0xc
mov ecx, 0x49f5d0
xor eax, eax
jmp 0x46e7f2
mov ecx, 0x46be30
mov eax, 0x46d180
mov edi, dword [esp + 8]
test edi, edi
lea ebx, [esp + 0x50]
je 0x46e7fc
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
movups xmm0, xmmword [ebx]
mov eax, dword [esp + 0xc]
movups xmmword [eax], xmm0
mov ebx, 1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret