Function at 0x46bc90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf6c
push ebx
mov bl, byte [0x4f5da0]
xor eax, eax
push esi
test bl, bl
sete al
mov byte [ebp - 5], al
mov eax, dword [0x518e30]
add eax, 0x1f
push edi
sar eax, 5
shl eax, 5
sub eax, 0x20
mov dword [ebp - 0x38], eax
cmp dword [0x4f5db8], 0
jne 0x46d29f
mov dword [0x4f5db8], 0x46be12
mov dword [0x4f5dbc], 0x46be89
mov dword [0x4f5dc0], 0x46bf2d
mov dword [0x4f5dc4], 0x46bfd3
mov dword [0x4f5dc8], 0x46c079
mov dword [0x4f5dcc], 0x46c11f
mov dword [0x4f5dd0], 0x46c1c5
mov dword [0x4f5dd4], 0x46c26b
mov dword [0x4f5dd8], 0x46c311
mov dword [0x4f5ddc], 0x46c3b7
mov dword [0x4f5de0], 0x46c45d
mov dword [0x4f5de4], 0x46c503
mov dword [0x4f5de8], 0x46c5a9
mov dword [0x4f5dec], 0x46c64f
mov dword [0x4f5df0], 0x46c6f5
mov dword [0x4f5df4], 0x46c79b
mov dword [0x4f5df8], 0x46c841
mov dword [0x4f5dfc], 0x46c8e7
mov dword [0x4f5e00], 0x46c98d
mov dword [0x4f5e04], 0x46ca33
mov dword [0x4f5e08], 0x46cad9
mov dword [0x4f5e0c], 0x46cb7f
mov dword [0x4f5e10], 0x46cc25
mov dword [0x4f5e14], 0x46cccb
mov dword [0x4f5e18], 0x46cd71
mov dword [0x4f5e1c], 0x46ce17
mov dword [0x4f5e20], 0x46cebd
mov dword [0x4f5e24], 0x46cf63
mov dword [0x4f5e28], 0x46d009
mov dword [0x4f5e2c], 0x46d0af
mov dword [0x4f5e30], 0x46d155
mov dword [0x4f5e34], 0x46d1fb
jmp 0x46d29f
mov dword [ebp - 4], 0x518f60
mov esi, 0x516e00
lea eax, [ebp - 0x258]
xor edi, edi
mov ecx, dword [edi + 0x514c60]
mov dword [eax - 4], 0
and ecx, 0x1f
mov dword [eax], ecx
jne 0x46d2cd
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 + 0x514c80]
mov ecx, edx
and ecx, 0x1f
neg edx
mov ebx, dword [ecx*4 + 0x4f5db8]
test edx, 0xffffffe0
mov dword [eax - 0x14], ebx
jge 0x46d305
xor edx, edx
jmp 0x46d308
sar edx, 5
mov dword [eax - 8], edx
or edx, 0xffffffff
shl edx, cl
cmp edx, 0xffffffff
mov dword [eax + 8], edx
jne 0x46d31f
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
add esi, 0x400
add ecx, 0x1000
add edi, 4
add eax, 0x20
cmp esi, 0x518e00
mov dword [ebp - 4], ecx
jl 0x46d2b3
mov esi, dword [0x518f40]
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 0x46d877
mov edx, dword [0x608798]
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
cmp edx, 0x20
jle 0x46d3b0
mov edx, 0x20
xor eax, eax
test edx, edx
jle 0x46d3e9
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
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x20
jge 0x46d41b
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 - 0xc], 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 + 0x514c40]
test al, al
mov dword [ebp - 0x58], esi
je 0x46d850
mov al, byte [0x4f5da8]
test al, al
je 0x46d4a3
cmp ebx, 3
je 0x46d4a3
cmp ebx, 2
je 0x46d4a3
cmp ebx, 7
jne 0x46d850
mov eax, dword [0x4f5d68]
mov dword [ebp - 4], 0
test eax, eax
jle 0x46d838
mov esi, dword [edi + 0x20]
mov edx, dword [edi]
mov eax, esi
or eax, edx
jne 0x46d4d3
mov edx, dword [ebp - 0xc]
add edx, 4
and edx, 0xfffffffc
mov dword [ebp - 0xc], edx
jmp 0x46d81d
mov eax, dword [0x514dc0]
lea ecx, [eax + edx*8]
lea eax, [eax + esi*8]
sub ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
xor esi, esi
jmp 0x46d4ed
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 0x46d511
mov ebx, edi
mov cl, 1
and ebx, 0x3ff
cmp byte [ebx + 0x54a96d], cl
je 0x46d513
xor cl, cl
test al, al
je 0x46d529
mov ebx, edx
mov al, 1
and ebx, 0x3ff
cmp byte [ebx + 0x54a96d], al
je 0x46d52b
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 - 0x10]
add esi, 4
add eax, 2
cmp esi, 0x10
mov dword [ebp - 0x10], eax
jl 0x46d4ea
mov eax, dword [ebp - 4]
test eax, eax
je 0x46d58d
mov ecx, dword [ebp - 0xc]
lea edx, [ecx*4]
lea ecx, [ebp - 0x7c]
sub ecx, edx
mov dword [ebp - 0x20], ecx
jmp 0x46d593
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x20], edx
test eax, eax
je 0x46d5ab
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x6c]
lea ecx, [eax*4]
sub edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x46d5b1
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x10], eax
jmp 0x46d5ce
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
inc eax
xor ecx, ecx
mov dword [ebp - 0xc], eax
test eax, 3
mov dword [ebx + eax*4 - 4], ecx
je 0x46d7dd
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
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 0x46d7a8
mov edx, dword [ebp - 0x10]
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 0x46d5b3
mov cl, byte [eax + 0x550de4]
mov dword [ebp - 0x54], edx
and cl, byte [ebx + 0x550de4]
jne 0x46d680
mov edx, dword [esi + 0x14]
mov ecx, dword [ebx*4 + 0x5535e4]
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [esi]
mov esi, dword [eax*4 + 0x5535e4]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0xc]
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 - 0xc]
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0xc], 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 0x46d5ce
jmp 0x46d7dd
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
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 0x46d718
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 0x46d6a4
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
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 - 0xc], 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 - 0xc]
mov dword [edi + 0x80], esi
test ebx, 3
jne 0x46d5ce
jmp 0x46d7dd
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 0x46d723
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
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 - 0xc], 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 - 0xc]
mov dword [edi + 0x80], esi
test ebx, 3
jne 0x46d5ce
jmp 0x46d7dd
mov edx, dword [ebp - 0x5c]
mov eax, dword [edi + ebx*4 + 4]
and edx, eax
jne 0x46d5e8
inc ebx
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0xc], 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 0x46d5ce
mov ecx, dword [ebp - 4]
lea eax, [ecx + 8]
mov ecx, dword [ebp - 0x34]
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 0x46d7ed
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [0x4f5d68]
inc eax
add edi, 4
cmp eax, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], edi
jl 0x46d4b7
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 0x46d43c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
add eax, 0x20
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jle 0x46d39b
lea esi, [ebp - 0x258]
mov edi, 8
mov edx, dword [0x4f5d68]
mov eax, dword [esi - 0xc]
mov ecx, dword [esi]
shl edx, 2
test edx, edx
je 0x46d8a1
mov ebx, dword [eax]
add eax, 4
shl ebx, cl
dec edx
mov dword [eax - 4], ebx
jne 0x46d894
add esi, 0x20
dec edi
jne 0x46d882
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret