Function at 0x46cce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x823f28
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x93bf44]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x181cbec]
push 0x3b8
push 0
lea eax, [edi + 0x86c]
mov dword [edi + 0x864], 1
lea ebx, [edi + 0x868]
push eax
mov dword [ebp - 0x78], ebx
call fcn.006ce4d0
add esp, 0xc
mov dword [ebx], 0x3bc
push 0x68
push dword [edi + 0xe4]
call dword [0x83ca3c]
movq xmm0, qword [0x900860]
xor esi, esi
mov dword [edi + 0x87c], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x86c], eax
mov ax, word [0x900868]
movq qword [ebp - 0x20], xmm0
mov word [ebp - 0x18], ax
mov eax, 0x4d4873ed
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x20], cx
inc esi
cmp esi, 5
jl 0x46cd76
lea eax, [ebp - 0x20]
push eax
lea ebx, [edi + 0x880]
push ebx
call dword [0x83c368]
movq xmm0, qword [0x900860]
xor esi, esi
mov ax, word [0x900868]
mov dword [edi + 0x878], 0x5ff
mov dword [edi + 0x874], 0x1f
movq qword [ebp - 0x2c], xmm0
mov word [ebp - 0x24], ax
nop word [eax + eax]
mov eax, 0x4d4873ed
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x2c], cx
inc esi
cmp esi, 5
jl 0x46cde0
mov eax, dword [0x900874]
xor esi, esi
movq xmm0, qword [0x90086c]
mov dword [ebp - 0x4c], eax
mov ax, word [0x900878]
movq qword [ebp - 0x54], xmm0
mov word [ebp - 0x48], ax
mov eax, 0x4d4873ed
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x54], cx
inc esi
cmp esi, 7
jl 0x46ce27
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00415a20
add esp, 0xc
mov dword [ebp - 4], 0
xor esi, esi
movq xmm0, qword [0x900860]
mov ax, word [0x900868]
movq qword [ebp - 0x38], xmm0
mov word [ebp - 0x30], ax
mov eax, 0x4d4873ed
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x38], cx
inc esi
cmp esi, 5
jl 0x46ce81
lea eax, [ebp - 0x38]
push eax
push 0x80
push ebx
call fcn.006db92b
add esp, 0xc
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
cmovae eax, dword [ebp - 0x6c]
push eax
lea eax, [edi + 0x988]
push 0x100
push eax
call fcn.006db92b
movq xmm0, qword [0x900854]
add esp, 0xc
mov ax, word [0x90085c]
xor esi, esi
movq qword [ebp - 0x44], xmm0
mov word [ebp - 0x3c], ax
mov eax, 0x4d4873ed
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x44], cx
inc esi
cmp esi, 5
jl 0x46cef2
lea eax, [ebp - 0x44]
push eax
lea eax, [edi + 0xb8c]
push 0x40
push eax
call fcn.006db92b
mov eax, dword fs:[0x30]
add esp, 0xc
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx edx, word [eax + 0x2c]
xor edi, edi
mov esi, dword [eax + 0x30]
and edx, 0xfffffffe
mov dword [ebp - 0x70], eax
mov ebx, 0x811c9dc5
lea ecx, [edx + esi]
inc edx
shr edx, 1
cmp esi, ecx
cmova edx, edi
mov dword [ebp - 0x74], edx
test edx, edx
je 0x46cf8c
mov eax, edx
mov dl, byte [esi]
lea ecx, [edx - 0x41]
cmp cl, 0x19
movsx ecx, dl
ja 0x46cf71
or ecx, 0x20
xor ecx, ebx
inc edi
imul ebx, ecx, 0x1000193
add esi, 2
cmp edi, eax
jne 0x46cf61
mov eax, dword [ebp - 0x70]
cmp ebx, 0x4f644736
je 0x46cf90
mov eax, dword [eax]
jmp 0x46cf39
mov esi, dword [eax + 0x18]
mov eax, dword [0x181d0d0]
mov dword [ebp - 0x70], esi
test eax, eax
jne 0x46d03b
test esi, esi
je 0x46d034
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
add ecx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
je 0x46d034
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov dword [ebp - 0x74], eax
test eax, eax
je 0x46d034
mov edi, dword [ecx + 0x20]
add edi, esi
mov edx, dword [edi]
add edx, esi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x46d00a
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x46cff0
or eax, 0x20
mov cl, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
test cl, cl
jne 0x46cfe3
cmp esi, 0xe03678e3
je 0x46d017
mov eax, dword [ebp - 0x74]
inc ebx
add edi, 4
cmp ebx, eax
je 0x46d034
mov esi, dword [ebp - 0x70]
jmp 0x46cfd3
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x70]
mov eax, dword [esi + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x46d036
xor eax, eax
mov dword [0x181d0d0], eax
push dword [ebp - 0x78]
push 0
call eax
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x46d078
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d06e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d09b
push edx
push ecx
call fcn.005c24d6
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c22ca
mov esp, ebp
pop ebp
ret 4
call fcn.006d1429
int3