Function at 0x46f9d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8241cb
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x93bf44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x140], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
mov eax, dword [0x181cbec]
cmovae ecx, dword [ebp + 0x24]
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x124], ecx
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
cmp dword [0x181cd9c], 8
mov dword [ebp - 0x128], ecx
mov ecx, 0x181cd88
cmovae ecx, dword [0x181cd88]
mov dword [ebp - 0x130], eax
add eax, 0x830
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x120], eax
cmp dword [eax + 0x14], 8
jb 0x46fa6c
mov eax, dword [eax]
mov dword [ebp - 0x120], eax
cmp dword [0x181cc94], 8
lea edi, [ebp - 0x11c]
mov ecx, 0x35
mov esi, 0x9005e0
rep movsd dword es:[edi], dword [esi]
mov eax, 0x181cc80
cmovae eax, dword [0x181cc80]
cmp dword [0x181cdb4], 8
mov dword [ebp - 0x134], eax
mov eax, 0x181cda0
cmovae eax, dword [0x181cda0]
cmp dword [0x181cd54], 8
mov dword [ebp - 0x138], eax
mov eax, 0x181cd40
cmovae eax, dword [0x181cd40]
xor ecx, ecx
cmp dword [0x1816094], 2
mov dword [ebp - 0x13c], eax
movsw word es:[edi], word [esi]
jl 0x46fc00
movaps xmm4, xmmword [0x903710]
mov eax, 4
movaps xmm3, xmmword [0x9037a0]
movaps xmm6, xmmword [0x903730]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x903770]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x11c]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x11c], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x903770]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x114]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x114], xmm1
add ecx, 8
cmp ecx, 0x68
jl 0x46fb01
cmp ecx, 0x6b
jge 0x46fc29
nop dword [eax]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x32
sub edx, eax
add edx, 0x33
xor word [ebp + ecx*2 - 0x11c], dx
inc ecx
cmp ecx, 0x6b
jl 0x46fc00
push dword [ebp - 0x124]
mov esi, dword [ebp - 0x130]
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
lea eax, [esi + 0x128]
push eax
push dword [esi + 4]
lea eax, [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
push 0x9003a0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00415a20
add esp, 0x34
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00404770
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004733b0
mov edx, eax
mov byte [ebp - 4], 4
mov ecx, dword [0x181cc30]
cmp dword [0x181cc34], ecx
je 0x46fcdd
mov dword [ecx], 0
cmp ecx, edx
je 0x46fcd0
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], 0
mov byte [ecx + 4], 1
add dword [0x181cc30], 8
jmp 0x46fce4
push edx
push ecx
call fcn.004327e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x144]
test ecx, ecx
je 0x46fd10
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x46fd10
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x46fd0a
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x46fd0e
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46fd4a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46fd40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fe35
push edx
push ecx
call fcn.005c2556
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46fd84
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46fd7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fe3a
push edx
push ecx
call fcn.005c2556
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x46fdce
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46fdc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fe3f
push edx
push ecx
call fcn.005c2556
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x46fe18
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46fe0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fe44
push edx
push ecx
call fcn.005c2556
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c234a
mov esp, ebp
pop ebp
ret 0x34
call fcn.006d14a9
call fcn.006d14a9
call fcn.006d14a9
call fcn.006d14a9
int3