Function at 0x46aaee5
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x298
mov edx, dword [esp + 0x2b8]
mov dword [esp + 0x7f], 0xe48040
mov dword [esp + 0x7c], 0x4010ec83
mov dword [esp + 0x78], 0x48e78948
mov dword [esp + 0x74], 0xce8948fc
lea edi, [esp + 0x98]
lea eax, [esp + 0x74]
mov ecx, 3
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esp + 0xa4]
lea eax, [esp + 0x80]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
movzx eax, byte [esp + 0x82]
mov byte [esp + 0xa6], al
mov eax, edx
mov esi, edx
cmp edx, 4
jb 0x46aaeaa
mov esi, 4
lea edx, [esp + 0xa7]
test eax, eax
je 0x46ab14e
xor eax, eax
lea ebp, [esp + 8]
mov dword [esp + 4], esi
jmp 0x46aaed9
inc eax
cmp eax, esi
je 0x46ab0cc
cmp eax, 3
ja case.default.0x46aaede
jmp dword [eax*4 + 0x46af6c8]
mov dword [esp + 8], 0xc938be74
mov dword [esp + 0xc], 0
mov ecx, 0x33
mov ebp, 0x4c
nop
mov edi, ebp
and edi, 0x43
mov ebx, ecx
and ebx, 0x2c
or ebx, edi
xor bl, byte [esp + ecx - 0x2b]
xor bl, 0x53
inc bl
mov byte [esp + ecx - 0x2b], bl
inc ecx
dec ebp
cmp ecx, 0x3b
jne 0x46aaf00
lea ebp, [esp + 8]
mov ebx, ebp
xor ecx, ecx
mov edi, edx
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ebx, ebp
mov ecx, 1
mov edi, edx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
movzx ecx, byte [esp + 0xa]
mov byte [edx + 2], cl
add edx, 3
jmp case.default.0x46aaede
mov dword [esp + 8], 0xc79c5e9c
mov byte [esp + 0xc], 0xd4
mov dword [esp + 0xd], 0
mov ecx, 0x418eb1ce
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx - 0x418eb1c6]
lea ebx, [ecx - 0x418eb100]
and ebx, edi
or edi, ecx
xor edi, ebx
mov ebx, edi
and ebx, 0x79
add ebx, ebx
xor edi, 6
sub ebx, edi
mov byte [esp + ecx - 0x418eb1c6], bl
inc ecx
cmp ecx, 0x418eb1d7
jne 0x46aaf70
mov ebx, ebp
mov ecx, 1
mov edi, edx
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
add edx, 4
lea ebx, [esp + 0xc]
xor ecx, ecx
mov edi, edx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
jmp case.default.0x46aaede
mov esi, edx
mov dword [esp + 8], 0x3970b270
mov byte [esp + 0xc], 0xc0
lea ecx, [esp + 0xc]
mov dword [ecx + 4], 0
mov dword [ecx + 1], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ecx + 8]
mov edi, 0x4e
sub edi, ecx
or edi, ebx
lea ebp, [ecx + 0xb1]
not ebx
or ebx, ebp
and ebx, edi
mov dl, 0x8a
sub dl, bl
mov byte [esp + ecx + 8], dl
add ecx, 0x957bdd9f
mov edx, ecx
and edx, 0x22
xor ecx, 0x6a842262
lea ecx, [ecx + edx*2]
cmp ecx, 0xc
jb 0x46ab000
lea ebp, [esp + 8]
mov edx, ebp
mov ecx, 1
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add esi, 4
lea edx, [esp + 0xc]
xor ecx, ecx
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, esi
mov esi, dword [esp + 4]
jmp case.default.0x46aaede
mov dword [esp + 8], 0x91201e54
mov byte [esp + 0xc], 0x88
lea ecx, [esp + 0xc]
mov dword [ecx + 4], 0
mov dword [ecx + 1], 0
xor ecx, ecx
nop
nop
nop
nop
mov ebx, ecx
add bl, 0xe3
xor bl, byte [esp + ecx + 8]
add bl, 0x91
mov byte [esp + ecx + 8], bl
inc ecx
cmp ecx, 0xc
jne 0x46ab090
mov ebx, ebp
mov ecx, 1
mov edi, edx
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
add edx, 4
lea ebx, [esp + 0xc]
mov edi, edx
xor ecx, ecx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
jmp case.default.0x46aaede
mov eax, dword [esp + 0x2b8]
cmp eax, 3
jbe 0x46ab14e
mov ebx, edx
and eax, 1
je 0x46ab104
mov edx, 0x46afbe2
mov esi, 0x46afbe2
mov edi, ebx
xor ecx, ecx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov edi, ebx
mov ecx, 1
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
add ebx, 2
mov ebp, dword [esp + 0x2b8]
mov edx, ebp
and edx, 8
mov ecx, ebp
or ecx, 8
imul ecx, edx
xor edx, 8
mov esi, ebp
and esi, 0xfffffff7
imul esi, edx
add ecx, esi
mov esi, 0xffffffff
mov edi, 0xffffffff
cmp ecx, 0x7ffffffe
ja 0x46ab73f
xor eax, 1
and ebp, 0xfffffffe
sub ebp, eax
mov edx, ebx
cmp ebp, 4
jae 0x46ab34e
mov ebx, edx
mov dword [esp + 8], 0xe3ae02c8
lea ebp, [esp + 0xc]
mov byte [esp + 0xc], 0x84
mov dword [esp + 0xd], 0
xor eax, eax
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 8]
mov edx, 0x255ce5f
sub edx, eax
and edx, 0x205081c
mov ecx, eax
and ecx, 3
or ecx, edx
mov esi, edi
xor esi, 0x450c643
or esi, ecx
xor edi, 0x205081c
xor ecx, 0x655ce5f
or ecx, edi
or esi, 0xb80211a0
and esi, ecx
mov edi, esi
and edi, 0x60506df
xor edi, 0x1fad07df
mov edx, edi
and edx, 0x1fad07dd
mov ecx, edi
or ecx, 0xfffffffd
inc ecx
imul ecx, edx
mov edx, edi
and edx, 2
or edi, 2
imul edi, edx
sub ecx, edi
xor esi, 0x1fad07df
lea edx, [esi + ecx]
add ecx, esi
inc ecx
lea edx, [edx*2 + 2]
sub ecx, edx
inc cl
mov byte [esp + eax + 8], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 9
jb 0x46ab170
lea eax, [esp + 8]
mov edx, ebx
mov edi, ebx
mov ecx, 1
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea esi, [ebx + 4]
mov edi, esi
xor ecx, ecx
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov dword [esp + 0x93], 0xc3fc8948
mov dword [esp + 0x90], 0x48d2ff41
mov dword [esp + 0x84], 0xba49c031
mov eax, dword [esp + 0x2ac]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x2b0]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x84]
mov ecx, 4
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [ebx + 0x14]
lea eax, [esp + 0x94]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
movzx eax, byte [esp + 0x96]
mov byte [ebx + 0x16], al
lea ecx, [esp + 0x98]
mov eax, ecx
neg eax
add ebx, eax
add ebx, 0x17
sub edx, ecx
add edx, 0x70
mov dword [esp + 0x70], edx
xor eax, eax
mov dword [esp], 0
mov dword [esp + 8], 0x60676665
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 8]
mov edx, eax
and edx, 1
mov esi, eax
and esi, 0xfffffffe
add esi, 0xff319399
xor esi, edx
lea esi, [esi + edx*2]
mov edi, esi
and edi, ecx
add edi, edi
mov edx, edi
xor edx, esi
not esi
and esi, edi
add esi, esi
sub edx, esi
add edx, ecx
mov ecx, edx
and ecx, 2
xor edx, 2
lea ecx, [edx + ecx*2]
inc cl
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jne 0x46ab2c0
mov esi, dword [esp + 8]
mov eax, dword [0x46b91f4]
test eax, eax
je 0x46ab4a9
xor ecx, ecx
mov edx, dword [0x46b91f8]
nop
nop
cmp dword [edx + ecx*8], 0x3e416e49
je 0x46ab47b
inc ecx
cmp eax, ecx
jne 0x46ab320
jmp 0x46ab4a9
mov ebp, dword [esp + 4]
dec ebp
cmp ebp, 3
jbe 0x46ab14e
lea ebx, [ebp*8]
cmp ebx, 0x7e
mov dword [esp + 4], ebp
ja 0x46ab3d0
mov dword [esp + 8], 0x91b8e2a4
mov word [esp + 0xc], 0x73a0
lea eax, [esp + 0x10]
mov word [eax + 2], 0
mov dword [eax - 2], 0
xor ecx, ecx
mov eax, ecx
add al, 0x95
xor al, byte [esp + ecx + 8]
add al, 0x17
mov byte [esp + ecx + 8], al
inc ecx
cmp ecx, 0xc
jne 0x46ab380
lea eax, [esp + 8]
mov edi, edx
mov ecx, 1
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [edx + 4]
lea eax, [esp + 0xc]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
movzx eax, byte [esp + 0xc]
mov byte [edx + 4], al
mov byte [edx + 3], bl
add edx, 5
jmp 0x46ab340
mov dword [esp + 0x68], ebx
mov dword [esp + 8], 0x939c9a58
mov dword [esp + 0xc], 0x6f1e1d1c
mov byte [esp + 0x10], 0x18
lea eax, [esp + 0x10]
mov word [eax + 5], 0
mov dword [eax + 1], 0
mov ecx, 0x9d7a004
mov ebx, 0xf6285ffb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + ecx - 0x9d79ffc]
lea edi, [ebp*2]
not edi
add edi, ebp
mov esi, ebx
or esi, ebp
and edi, ecx
not esi
or esi, edi
lea eax, [ebx + 0x9d7a100]
and eax, ebp
xor esi, eax
and eax, edi
or eax, esi
add al, 0xec
mov byte [esp + ecx - 0x9d79ffc], al
inc ecx
dec ebx
cmp ecx, 0x9d7a013
jne 0x46ab410
lea eax, [esp + 8]
mov edi, edx
mov ecx, 2
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea esi, [edx + 8]
lea eax, [esp + 0x10]
xor ecx, ecx
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x68]
mov dword [edx + 3], eax
mov edx, esi
jmp 0x46ab340
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x46ab4a9
lea ecx, [esp + 0x70]
mov edx, esp
push 0x40
push 0x3000
push ecx
push 0
push edx
push 0xffffffffffffffff
push 0x18
push eax
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x24
mov esi, eax
test esi, esi
js 0x46ab710
mov dword [esp + 8], 0x8729c49b
mov dword [esp + 0xc], 0x5da5de89
mov dword [esp + 0x10], 0x315a98d9
mov dword [esp + 0x14], 0x5d5a5b58
mov dword [esp + 0x18], 0x4b1eda84
mov dword [esp + 0x1c], 0xee6a0fe5
mov dword [esp + 0x20], 0x6da42e06
mov dword [esp + 0x24], 0x6d6a6b5d
mov dword [esp + 0x28], 0x7f066de7
mov dword [esp + 0x2c], 0x93727370
mov dword [esp + 0x30], 0x2af82cf8
mov dword [esp + 0x34], 0x9c6e3ffd
mov dword [esp + 0x38], 0x93ca0a2
mov dword [esp + 0x3c], 0x213e8e00
mov dword [esp + 0x40], 0x3ace2d05
mov dword [esp + 0x44], 0x5b0bd248
mov dword [esp + 0x48], 0xd547dfed
mov dword [esp + 0x4c], 0x15371734
mov dword [esp + 0x50], 0x259d1714
mov dword [esp + 0x54], 0x5f91d33c
mov dword [esp + 0x58], 0x62d65f3f
mov dword [esp + 0x5c], 0x923034a
lea esi, [esp + 0x60]
mov word [esp + 0x60], 0x2700
mov dword [esp + 0x62], 0
mov eax, 0x15c9c60d
mov ecx, 0xea3639f2
nop
nop
movzx edi, byte [esp + eax - 0x15c9c605]
mov edx, eax
and edx, edi
add edx, edx
mov ebp, edx
sub ebp, edi
add ebp, ecx
or ebp, 0x3e
add ebp, edi
sub edi, edx
add edi, eax
sub ebp, edx
add ebp, eax
xor edi, 0xbe
lea edx, [edi + ebp*2]
add dl, 3
mov byte [esp + eax - 0x15c9c605], dl
inc eax
dec ecx
cmp eax, 0x15c9c66b
jne 0x46ab580
mov eax, dword [esp]
lea edx, [esp + 8]
mov ebp, edx
mov edi, eax
mov ecx, 0x16
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
lea edi, [eax + 0x58]
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
lea edi, [eax + 0x59]
movzx ecx, byte [esp + 0x60]
mov byte [eax + 0x58], cl
mov ecx, ebx
shr ecx, 2
lea esi, [esp + 0x98]
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, ebx
and ecx, 0xfffffffc
add eax, ecx
add eax, 0x59
lea esi, [esp + ecx]
add esi, 0x98
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebp, esi
mov edi, eax
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test bl, 1
je 0x46ab630
and ebx, 2
movzx ecx, byte [esi + ebx]
mov byte [eax + ebx], cl
mov eax, dword [esp]
mov dword [esp + 8], 0x393a3b9b
mov dword [esp + 0xc], 0
mov ecx, 0x74
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [edx]
lea esi, [ecx - 0x76330200]
or esi, edi
and edi, ecx
not esi
or esi, edi
mov ebx, esi
and ebx, 0x48
add ebx, ebx
xor esi, 0xb7
sub ebx, esi
mov byte [edx], bl
inc edx
dec ecx
cmp ecx, 0x6c
jne 0x46ab650
mov ecx, dword [esp + 8]
add ecx, eax
push dword [esp + 0x2b4]
push ecx
call eax
mov esi, eax
mov edi, edx
mov dword [esp + 0x6c], 0
mov dword [esp + 8], 0x60676665
xor eax, eax
nop
movzx ecx, byte [esp + eax + 8]
mov edx, eax
and edx, 1
mov ebx, eax
and ebx, 0xfffffffe
add ebx, 0xff319399
xor ebx, edx
lea ebx, [ebx + edx*2]
mov ebp, ebx
and ebp, ecx
add ebp, ebp
mov edx, ebp
xor edx, ebx
not ebx
and ebx, ebp
add ebx, ebx
sub edx, ebx
add edx, ecx
mov ecx, edx
and ecx, 2
xor edx, 2
lea ecx, [edx + ecx*2]
inc cl
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jne 0x46ab6a0
mov eax, dword [0x46b91f4]
test eax, eax
je 0x46ab73f
mov ecx, dword [esp + 8]
xor edx, edx
mov ebx, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x16194952
je 0x46ab717
inc edx
cmp eax, edx
jne 0x46ab700
jmp 0x46ab73f
mov edi, esi
sar edi, 0x1f
jmp 0x46ab73f
mov eax, dword [ebx + edx*8 + 4]
cmp eax, ecx
je 0x46ab73f
lea ecx, [esp + 0x6c]
mov edx, esp
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x1c
mov eax, esi
mov edx, edi
add esp, 0x298
pop esi
pop edi
pop ebx
pop ebp
ret 0x10