Function at 0x46b5e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8256ff
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x93cf44]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [ebp - 0x108]
call fcn.0048a040
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push dword [esi + 0x818]
push 0x900ee4
push eax
call fcn.004159c0
sub esp, 0xc
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489f20
push 0x901238
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0048a470
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x46b6b7
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b6ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c12d
push edx
push ecx
call fcn.005c4046
add esp, 8
lea edx, [esi + 0x128]
mov dword [ebp - 0x3c], 0
mov ecx, edx
mov dword [ebp - 0x38], 7
xor eax, eax
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b6d6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040eb10
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.004365c0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x46b70a
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489ff0
push 0x900ee8
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 5
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0048a470
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x46b772
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b768
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c132
push edx
push ecx
call fcn.005c4046
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 8
jb 0x46b7c2
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b7b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c137
push edx
push ecx
call fcn.005c4046
add esp, 8
lea edx, [esi + 0xe8]
mov dword [ebp - 0x3c], 0
mov ecx, edx
mov dword [ebp - 0x38], 7
xor eax, eax
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b7e1
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040eb10
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.004365c0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x46b815
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489ff0
push 0x900ef0
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 8
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0048a470
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x46b87d
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b873
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c13c
push edx
push ecx
call fcn.005c4046
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 8
jb 0x46b8cd
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b8c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c141
push edx
push ecx
call fcn.005c4046
add esp, 8
lea edx, [esi + 0x7b8]
lea ecx, [ebp - 0x34]
call fcn.004365c0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x46b8e7
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489ff0
push 0x900f00
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xa
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.0048a470
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x46b94f
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b945
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c146
push edx
push ecx
call fcn.005c4046
add esp, 8
lea edx, [esi + 0x7d0]
lea ecx, [ebp - 0x34]
call fcn.004365c0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x46b969
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489ff0
push 0x901240
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xc
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.0048a470
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x46b9d1
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b9c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c14b
push edx
push ecx
call fcn.005c4046
add esp, 8
mov edx, 0x181dc80
lea ecx, [ebp - 0x34]
call fcn.004365c0
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x46b9ea
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489ff0
push 0x900f08
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xe
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0048a470
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x46ba52
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46ba48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c150
push edx
push ecx
call fcn.005c4046
add esp, 8
lea edx, [esi + 0x830]
lea ecx, [ebp - 0x34]
call fcn.004365c0
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 0x10
jb 0x46ba6c
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489ff0
push 0x900f0c
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x10
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.0048a470
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x46bad4
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46baca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c155
push edx
push ecx
call fcn.005c4046
add esp, 8
sub esp, 0x18
lea eax, [esi + 8]
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489d80
push 0x900ef8
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x11
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0048a470
push dword [esi + 0x5bc]
lea eax, [ebp - 0x34]
push 0x900ee4
push eax
call fcn.004159c0
sub esp, 0xc
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0xec], esp
push eax
call fcn.00489f20
push 0x901290
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x13
call fcn.0048a840
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.0048a470
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x46bb87
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46bb7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c15a
push edx
push ecx
call fcn.005c4046
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.0048d360
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0048e630
push 0x408
call fcn.006d979d
mov esi, eax
add esp, 4
mov dword [ebp - 0xec], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0x17
mov edi, 5
cmp byte [0x90181b], 0
mov eax, dword [0x901814]
mov edx, dword [0x1817094]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x901818]
mov dword [ebp - 0x18], eax
je 0x46bd63
xor ecx, ecx
mov dword [ebp - 0xf0], ecx
cmp edx, 2
jl 0x46bd20
movaps xmm2, xmmword [0x9046b0]
mov ecx, 0x1f
movaps xmm4, xmmword [0x904770]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm4
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, edi
psrad xmm1, xmm5
movd xmm6, ecx
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9046e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x9046c0]
paddd xmm2, xmmword [0x9046b0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x904720]
movd xmm0, dword [0x901814]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x904730]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x1c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm4
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9046e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x904720]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x904730]
movd xmm0, eax
pxor xmm1, xmm0
movd dword [ebp - 0x18], xmm1
jmp 0x46bd63
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, byte [ebp - 0xf0]
shl cl, 3
sub al, cl
mov ecx, dword [ebp - 0xf0]
add al, 0x35
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov dword [ebp - 0xf0], ecx
cmp ecx, 8
jl 0x46bd20
mov edx, dword [0x1817094]
lea edi, [ebp - 0x1c]
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x46bd70
mov eax, dword [0x901814]
sub edi, ecx
cmp byte [0x90181b], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [0x901818]
mov dword [ebp - 0x18], eax
je 0x46befd
xor ecx, ecx
mov dword [ebp - 0xf0], ecx
cmp edx, 2
jl 0x46bec0
movaps xmm2, xmmword [0x9046b0]
mov eax, 5
movaps xmm5, xmmword [0x904770]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm6, eax
psrad xmm1, xmm6
mov eax, 0x1f
movaps xmm0, xmm1
movd xmm7, eax
mov eax, dword [0x904730]
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9046e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x9046c0]
paddd xmm2, xmmword [0x9046b0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x904720]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x901814]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x1c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9046e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x904720]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x901818]
pxor xmm1, xmm0
movd dword [ebp - 0x18], xmm1
jmp 0x46befd
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, byte [ebp - 0xf0]
shl cl, 3
sub al, cl
mov ecx, dword [ebp - 0xf0]
add al, 0x35
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov dword [ebp - 0xf0], ecx
cmp ecx, 8
jl 0x46bec0
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xec]
call fcn.00409820
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xec]
call fcn.004098f0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x7c]
call fcn.00404010
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x3c], 0
cmovae edx, dword [ebp - 0x7c]
mov ecx, edx
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46bf54
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.004062c0
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x64]
call fcn.004353b0
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x46bfae
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46bfa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c15f
push edx
push ecx
call fcn.005c4046
add esp, 8
cmp dword [ebp - 0x50], 8
lea edx, [ebp - 0x64]
mov ecx, 0x8ffb00
mov dword [ebp - 0x3c], 0
cmovae edx, dword [ebp - 0x64]
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
call fcn.0046a7b0
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x46c00f
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c005
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c164
push edx
push ecx
call fcn.005c4046
add esp, 8
mov edx, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp edx, 0x10
jb 0x46c057
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c04d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c169
push edx
push ecx
call fcn.005c4046
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp edx, 0x10
jb 0x46c09d
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c093
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c16e
push edx
push ecx
call fcn.005c4046
add esp, 8
test esi, esi
je 0x46c0aa
push esi
call fcn.006d9280
add esp, 4
mov edx, dword [ebp - 0x80]
cmp edx, 0x10
jb 0x46c0e1
mov ecx, dword [ebp - 0x94]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c0d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c173
push edx
push ecx
call fcn.005c4046
add esp, 8
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
call fcn.00479a80
lea ecx, [ebp - 0x108]
call fcn.0048a390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c3e3a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
call fcn.006d2f99
int3