Function at 0x46b0e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf6c
mov eax, dword [0x519170]
push ebx
mov bl, byte [0x4f03b8]
push esi
test bl, bl
sete byte [ebp - 5]
add eax, 0x1f
push edi
sar eax, 5
shl eax, 5
sub eax, 0x20
mov dword [ebp - 0x38], eax
cmp dword [0x4f03c0], 0
jne 0x46c6eb
mov dword [0x4f03c0], 0x46b25e
mov dword [0x4f03c4], 0x46b2d5
mov dword [0x4f03c8], 0x46b379
mov dword [0x4f03cc], 0x46b41f
mov dword [0x4f03d0], 0x46b4c5
mov dword [0x4f03d4], 0x46b56b
mov dword [0x4f03d8], 0x46b611
mov dword [0x4f03dc], 0x46b6b7
mov dword [0x4f03e0], 0x46b75d
mov dword [0x4f03e4], 0x46b803
mov dword [0x4f03e8], 0x46b8a9
mov dword [0x4f03ec], 0x46b94f
mov dword [0x4f03f0], 0x46b9f5
mov dword [0x4f03f4], 0x46ba9b
mov dword [0x4f03f8], 0x46bb41
mov dword [0x4f03fc], 0x46bbe7
mov dword [0x4f0400], 0x46bc8d
mov dword [0x4f0404], 0x46bd33
mov dword [0x4f0408], 0x46bdd9
mov dword [0x4f040c], 0x46be7f
mov dword [0x4f0410], 0x46bf25
mov dword [0x4f0414], 0x46bfcb
mov dword [0x4f0418], 0x46c071
mov dword [0x4f041c], 0x46c117
mov dword [0x4f0420], 0x46c1bd
mov dword [0x4f0424], 0x46c263
mov dword [0x4f0428], 0x46c309
mov dword [0x4f042c], 0x46c3af
mov dword [0x4f0430], 0x46c455
mov dword [0x4f0434], 0x46c4fb
mov dword [0x4f0438], 0x46c5a1
mov dword [0x4f043c], 0x46c647
jmp 0x46c6eb
mov dword [ebp - 4], 0x5193a0
mov esi, 0x517140
lea eax, [ebp - 0x258]
xor edi, edi
mov ecx, dword [edi + 0x50efa0]
mov dword [eax - 4], 0
and ecx, 0x1f
mov dword [eax], ecx
jne 0x46c719
mov dword [eax], 0x20
mov edx, dword [eax]
mov ecx, 0x20
sub ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov dword [eax - 0x10], esi
mov dword [eax - 0xc], edx
mov edx, dword [edi + 0x50efc0]
mov ecx, edx
and ecx, 0x1f
neg edx
mov ebx, dword [ecx*4 + 0x4f03c0]
test edx, 0xffffffe0
mov dword [eax - 0x14], ebx
jge 0x46c751
xor edx, edx
jmp 0x46c754
sar edx, 5
mov dword [eax - 8], edx
or edx, 0xffffffff
shl edx, cl
cmp edx, 0xffffffff
mov dword [eax + 8], edx
jne 0x46c76b
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
add esi, 0x400
add ecx, 0x1000
add edi, 4
add eax, 0x20
cmp esi, 0x519140
mov dword [ebp - 4], ecx
jl 0x46c6ff
mov esi, dword [0x519380]
mov ecx, 0x1a
mov edx, esi
xor eax, eax
lea edi, [ebp - 0x16c]
mov dword [ebp - 0x1c], 0
sar edx, 3
rep stosd dword es:[edi], eax
mov ecx, edx
or eax, 0xffffffff
mov ebx, ecx
lea edi, [ebp - 0x168]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov eax, 0xff
and ecx, 3
sar eax, cl
mov byte [ebp + edx - 0x168], al
mov eax, dword [ebp - 0x38]
test eax, eax
jl 0x46ccaf
mov edx, dword [0x62bdb8]
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
cmp edx, 0x20
jle 0x46c7fc
mov edx, 0x20
xor eax, eax
test edx, edx
jle 0x46c83a
mov ecx, 0x1a
lea esi, [ebp - 0x16c]
lea edi, [ebp - 0xf6c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [edx + edx*2]
lea esi, [ebp - 0xf6c]
lea edi, [ebp - 0xf04]
lea eax, [edx + ecx*4]
lea ecx, [eax*8 - 0x68]
mov eax, edx
shr ecx, 2
cmp edx, 0x20
rep movsd dword es:[edi], dword [esi]
jge 0x46c867
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
lea ecx, [eax + eax*2]
lea edi, [ebp + edx*8 - 0xf6c]
lea edx, [eax + ecx*4]
shl edx, 3
mov ecx, 0xd00
xor eax, eax
sub ecx, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x1a
lea esi, [ebp - 0x16c]
lea edi, [ebp - 0x104]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ecx
mov edx, dword [ecx - 4]
lea eax, [ecx - 0xc]
mov dword [ebp - 0x34], edx
mov edx, dword [ecx]
mov dword [ebp - 0x24], eax
mov eax, edx
neg eax
shl eax, 2
mov edi, dword [ecx - 8]
mov dword [ebp - 0x10], edx
lea esi, [ebp + eax - 0xf6c]
lea eax, [ebp + eax - 0x104]
mov dword [ebp - 0x44], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x2c], edi
not eax
mov dword [ebp - 0x5c], eax
mov al, byte [ebx + 0x50ef80]
test al, al
mov dword [ebp - 0x58], esi
je 0x46cc88
mov al, byte [0x4f03ba]
test al, al
je 0x46c8ef
cmp ebx, 3
je 0x46c8ef
cmp ebx, 2
je 0x46c8ef
cmp ebx, 7
jne 0x46cc88
mov eax, dword [0x4f0388]
mov dword [ebp - 4], 0
test eax, eax
jle 0x46cc70
mov esi, dword [edi + 0x20]
mov edx, dword [edi]
mov eax, esi
or eax, edx
jne 0x46c91f
mov edx, dword [ebp - 0x10]
add edx, 4
and edx, 0xfffffffc
mov dword [ebp - 0x10], edx
jmp 0x46cc55
mov eax, dword [0x50f100]
lea ecx, [eax + edx*8]
lea eax, [eax + esi*8]
sub ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
xor esi, esi
jmp 0x46c939
mov ecx, dword [ebp - 0x14]
xor edi, edi
xor edx, edx
mov di, word [ecx + eax]
mov dx, word [eax]
mov al, byte [ebp - 5]
test al, al
je 0x46c95d
mov ebx, edi
mov cl, 1
and ebx, 0xfff
cmp byte [ebx + 0x55476d], cl
je 0x46c95f
xor cl, cl
test al, al
je 0x46c975
mov ebx, edx
mov al, 1
and ebx, 0xfff
cmp byte [ebx + 0x55476d], al
je 0x46c977
xor al, al
mov bl, cl
neg bl
sbb ebx, ebx
mov dword [ebp + esi - 0x8c], ebx
mov bl, al
neg bl
sbb ebx, ebx
neg cl
sbb ecx, ecx
mov dword [ebp + esi - 0x9c], ebx
not ecx
and ecx, edi
neg al
sbb eax, eax
mov dword [ebp + esi - 0x7c], ecx
not eax
and eax, edx
mov dword [ebp + esi - 0x6c], eax
mov eax, dword [ebp - 0xc]
add esi, 4
add eax, 2
cmp esi, 0x10
mov dword [ebp - 0xc], eax
jl 0x46c936
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c9dd
mov eax, dword [ebp - 0x10]
neg eax
shl eax, 2
lea ecx, [ebp + eax - 0x7c]
lea eax, [ebp + eax - 0x6c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], eax
jmp 0x46c9e9
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], ecx
jmp 0x46ca06
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
inc eax
xor ecx, ecx
mov dword [ebp - 0x10], eax
test eax, 3
mov dword [ebx + eax*4 - 4], ecx
je 0x46cc15
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x20]
mov esi, dword [edi + ebx*4]
and edx, esi
mov esi, dword [ebp - 0x24]
je 0x46cbe0
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + ebx*4]
xor ecx, ecx
mov ebx, dword [edx + ebx*4]
mov edx, 0xffffffff
cmp eax, 1
adc ecx, ecx
cmp ebx, 1
adc edx, 0
mov dword [ebp - 0x40], ecx
add ecx, edx
jg 0x46c9eb
mov cl, byte [eax + 0x560b44]
mov dword [ebp - 0x54], edx
and cl, byte [ebx + 0x560b44]
jne 0x46cab8
mov edx, dword [esi + 0x14]
mov ecx, dword [ebx*4 + 0x56ab44]
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [esi]
mov esi, dword [eax*4 + 0x56ab44]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x58]
lea edi, [edi + edx*4]
mov dword [ebp - 0x14], ebx
lea esi, [esi + ebx*4]
mov edx, dword [eax + edx*4]
xor edx, 0xffffffff
call ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edx
xor eax, 0xffffffff
xor ebx, 0xffffffff
mov dword [ecx + edx*4 - 4], eax
mov dword [ecx + edx*4 + 0x7c], ebx
test edx, 3
jne 0x46ca06
jmp 0x46cc15
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x50]
lea edi, [edi + ecx*4]
and dword [esi + ecx*4 + 4], eax
and dword [esi + ecx*4], edx
test eax, eax
je 0x46cb50
mov eax, dword [ebp - 0x50]
mov ecx, dword [edi]
mov ebx, dword [ebp - 0x5c]
and eax, ecx
mov esi, dword [edi + 4]
xor ecx, eax
mov dword [edi], ecx
and ebx, esi
or eax, ebx
xor esi, ebx
mov dword [edi + 4], esi
add edi, 0x68
cmp eax, 1
mov ebx, dword [ebp - 0x18]
adc edx, edx
dec ebx
mov dword [ebp - 0x18], ebx
jne 0x46cadc
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
lea edi, [edi + eax*4]
mov esi, dword [ebp - 0x24]
xor edx, 0xffffffff
inc eax
mov ebx, dword [edi]
mov ecx, dword [esi + 0x14]
shl ebx, cl
mov ecx, dword [esi + 0x18]
mov esi, edx
mov dword [ebp - 0x10], eax
shr edx, cl
mov eax, 1
shl eax, cl
or ebx, edx
mov dword [edi], ebx
dec eax
and esi, eax
mov ebx, dword [ebp - 0x10]
mov dword [edi + 0x80], esi
test ebx, 3
jne 0x46ca06
jmp 0x46cc15
add edi, 4
mov esi, 8
xor ebx, ebx
nop
mov eax, dword [edi]
mov ecx, dword [edi + 0x68]
mov dword [edi], ebx
cmp eax, 1
adc edx, edx
cmp ecx, 1
adc edx, edx
mov dword [edi + 0x68], ebx
mov eax, dword [edi + 0xd0]
mov ecx, dword [edi + 0x138]
mov dword [edi + 0xd0], ebx
cmp eax, 1
adc edx, edx
cmp ecx, 1
adc edx, edx
mov dword [edi + 0x138], ebx
add edi, 0x1a0
dec esi
jne 0x46cb5b
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
lea edi, [edi + eax*4]
mov esi, dword [ebp - 0x24]
xor edx, 0xffffffff
inc eax
mov ebx, dword [edi]
mov ecx, dword [esi + 0x14]
shl ebx, cl
mov ecx, dword [esi + 0x18]
mov esi, edx
mov dword [ebp - 0x10], eax
shr edx, cl
mov eax, 1
shl eax, cl
or ebx, edx
mov dword [edi], ebx
dec eax
and esi, eax
mov ebx, dword [ebp - 0x10]
mov dword [edi + 0x80], esi
test ebx, 3
jne 0x46ca06
jmp 0x46cc15
mov edx, dword [ebp - 0x5c]
mov eax, dword [edi + ebx*4 + 4]
and edx, eax
jne 0x46ca20
inc ebx
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x10], ebx
mov ecx, dword [esi + 0x14]
xor edx, edx
mov eax, dword [edi + ebx*4 - 4]
shl eax, cl
mov dword [edi + ebx*4 - 4], eax
mov dword [edi + ebx*4 + 0x7c], edx
test ebx, 3
jne 0x46ca06
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x34]
lea eax, [edx + 8]
shl eax, 4
add eax, ecx
xor ecx, ecx
mov edx, dword [ebp + ecx - 0x8c]
mov esi, dword [eax - 0x80]
or esi, edx
mov edx, dword [ebp + ecx - 0x9c]
mov dword [eax - 0x80], esi
mov ebx, dword [eax]
or ebx, edx
add ecx, 4
mov dword [eax], ebx
add eax, 4
cmp ecx, 0x10
jl 0x46cc25
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [0x4f0388]
inc eax
add edi, 4
cmp eax, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], edi
jl 0x46c903
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
add esi, 0x80
add edx, 0x20
mov dword [eax + 8], esi
mov dword [eax + 4], edx
inc ebx
add ecx, 0x20
cmp ebx, 8
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ecx
jl 0x46c888
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
add eax, 0x20
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jle 0x46c7e7
lea esi, [ebp - 0x258]
mov edi, 8
mov edx, dword [0x4f0388]
mov eax, dword [esi - 0xc]
mov ecx, dword [esi]
shl edx, 2
test edx, edx
je 0x46ccd9
mov ebx, dword [eax]
add eax, 4
shl ebx, cl
dec edx
mov dword [eax - 4], ebx
jne 0x46cccc
add esi, 0x20
dec edi
jne 0x46ccba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret