Function at 0x46f900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6650
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x68c4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0xa0]
mov edi, dword [ebp + 8]
push ecx
mov ecx, ebx
mov dword [ebp - 0x8c], ebx
mov eax, dword [ebx]
call dword [eax + 0x48]
mov ecx, edi
xor esi, esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x90], eax
call fcn.00459280
cmp eax, 0xb
jne 0x46fb2a
mov ecx, edi
call fcn.0049e670
test al, al
je 0x46fb2a
mov ecx, dword [ebp - 0x90]
push edi
push ebx
call fcn.00464be0
mov ecx, eax
mov dword [ebp - 0x94], eax
call fcn.004a2fd0
test al, al
je 0x46fb2a
push edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.004625a0
push edi
push ebx
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], esi
call fcn.004625a0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0049e700
mov ecx, edi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x8c], eax
call fcn.0049e700
mov ebx, dword [ebp - 0x94]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, ebx
mov eax, dword [eax + 0x14]
add eax, 0x58
mov dword [ebp - 0x98], eax
mov eax, dword [ebx]
call dword [eax + 0x18]
mov eax, dword [ebx]
lea ecx, [ebp - 0x88]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x88]
push edx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x46fa6e
mov ebx, dword [ebp - 0x98]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x8c]
call fcn.00472790
lea edi, [eax + 2]
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.00472970
add edi, eax
mov ecx, dword [ebp - 0x54]
mov eax, edi
lea edx, [ebp - 0x58]
or eax, 1
add esp, 0x10
bsr eax, eax
push edx
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, edi
add esi, eax
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x88]
push edx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x46fa13
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x88]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp dword [ebp - 0x68], 9
jne 0x46fad0
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x46fabe
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46fab4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4700fe
push edx
push ecx
call fcn.005d1105
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp dword [ebp - 0x38], 9
jne case.default.0x46fb87
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.default.0x46fb87
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46fb1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4700fe
push edx
push ecx
call fcn.005d1105
add esp, 8
jmp case.default.0x46fb87
xor ebx, ebx
cmp dword [edi + 0x20], 3
jne 0x46fb48
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.004641d0
mov ebx, eax
jmp 0x46fb76
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x10]
cmp byte [eax + 0x2f], bl
je 0x46fb5a
mov ebx, 1
jmp 0x46fb76
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.00465ea0
test al, al
mov ecx, 1
cmovne ebx, ecx
mov ecx, edi
call fcn.00459280
dec eax
cmp eax, 0x11
ja case.default.0x46fb87
jmp dword [eax*4 + 0x470104]
cmp dword [edi + 0x20], 3
jne 0x46fbe2
xor eax, eax
mov dword [ebp - 0x98], eax
test ebx, ebx
je case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.00465320
test eax, eax
jns 0x46fbbe
mov eax, 0xa
jmp 0x46fbcd
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp eax, ebx
jb 0x46fba0
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.00464a10
push eax
call fcn.0046f710
add esp, 4
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d1826
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x20], 3
jne 0x46fc73
xor eax, eax
mov dword [ebp - 0x98], eax
test ebx, ebx
je case.default.0x46fb87
nop
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.004653d0
or eax, 1
test edx, edx
jne 0x46fc4f
bsr eax, eax
jmp 0x46fc55
bsr eax, edx
add eax, 0x20
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp eax, ebx
jb 0x46fc30
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.00464af0
push edx
push eax
call fcn.00470de0
add esp, 8
jmp 0x46fbfd
cmp dword [edi + 0x20], 3
jne 0x46fcf3
xor eax, eax
mov dword [ebp - 0x98], eax
test ebx, ebx
je case.default.0x46fb87
nop word [eax + eax]
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.00465320
mov ecx, eax
add eax, eax
sar ecx, 0x1f
xor ecx, eax
or ecx, 1
bsr eax, ecx
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp eax, ebx
jb 0x46fcb0
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.00464a10
push eax
call fcn.00472e10
jmp 0x46fbfa
cmp dword [edi + 0x20], 3
jne 0x46fd8c
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.004653d0
mov ecx, edx
mov dword [ebp - 0x98], edx
sar dword [ebp - 0x98], 0x1f
shld edx, eax, 1
sar ecx, 0x1f
add eax, eax
xor ecx, eax
mov eax, dword [ebp - 0x98]
or ecx, 1
xor eax, edx
jne 0x46fd65
bsr eax, ecx
jmp 0x46fd6b
bsr eax, eax
add eax, 0x20
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x46fd26
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.00464af0
push edx
push eax
call fcn.00472e30
add esp, 8
jmp 0x46fbfd
cmp dword [edi + 0x20], 3
jne 0x46fdfd
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.00465700
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x46fdc3
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.00465a70
or eax, 1
bsr eax, eax
lea esi, [eax*8 + 0x49]
add esi, eax
shr esi, 6
jmp case.default.0x46fb87
cmp dword [edi + 0x20], 3
jne 0x46fe86
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x46fb87
nop dword [eax]
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.004657b0
or eax, 1
test edx, edx
jne 0x46fe5f
bsr eax, eax
jmp 0x46fe65
bsr eax, edx
add eax, 0x20
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x46fe40
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.00465b50
push edx
push eax
call fcn.00470de0
add esp, 8
jmp 0x46fbfd
lea esi, [ebx*4]
jmp case.default.0x46fb87
lea esi, [ebx*8]
jmp case.default.0x46fb87
mov esi, ebx
jmp case.default.0x46fb87
cmp dword [edi + 0x20], 3
jne 0x46ff12
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x46fb87
nop dword [eax]
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.00465490
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x20]
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x46fee0
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push 0
push edi
push dword [ebp - 0x8c]
call fcn.00464c30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x20]
jmp 0x46fbfd
cmp dword [edi + 0x20], 3
jne 0x46ff8d
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.00465490
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, eax
or ecx, 1
bsr ecx, ecx
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add ecx, eax
mov eax, dword [ebp - 0x94]
inc eax
add esi, ecx
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x46ff48
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push 0
push edi
push dword [ebp - 0x8c]
call fcn.00464c30
push eax
call fcn.0046b170
jmp 0x46fbfa
cmp dword [edi + 0x20], 3
jne 0x47000a
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.00465110
mov eax, dword [eax + 8]
test eax, eax
jns 0x46ffe3
mov eax, 0xa
jmp 0x46fff2
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x46ffc2
jmp case.default.0x46fb87
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.004646a0
mov eax, dword [eax + 8]
push eax
call fcn.0046f710
jmp 0x46fbfa
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x46fb87
nop word [eax + eax]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp dword [edi + 0x20], 3
mov dword [ebp - 4], 4
jne 0x47007f
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.00465650
jmp 0x470095
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.00465980
mov ecx, dword [eax + 0x10]
mov eax, ecx
or eax, 1
mov edx, dword [ebp - 0x14]
bsr eax, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, ecx
add esi, eax
cmp edx, 0x10
jb 0x4700e4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4700da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4700fe
push edx
push ecx
call fcn.005d1105
add esp, 8
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x470040
jmp case.default.0x46fb87
call fcn.005d5f1c
nop
mov bl, 0xfe
inc esi
add byte [edi + 0x1d0046fe], ah
cld
inc esi
add byte [esi], ah
inc byte [esi]
invalid