Function at 0x46ef61
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
and dword [ebp - 0x28], 0
push ebx
push esi
mov esi, ecx
push edi
push 2
pop ebx
mov edx, dword [esi + 4]
mov al, byte [edx + 0xdfc]
mov byte [ebp - 0x14], al
mov al, byte [edx + 0xdfd]
movzx edi, al
mov byte [ebp - 0x13], al
xor eax, eax
shr edi, 1
inc eax
and edi, eax
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x1c]
push 8
mov ecx, dword [ecx + 0x3c]
call fcn.00473714
pop ecx
test eax, eax
je 0x46f562
mov eax, dword [ebp - 0x1c]
cmp eax, 0xff
je 0x46f537
mov byte [ebp + ebx - 0x14], al
inc ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebx - 2]
cmp eax, 2
jb 0x46efa0
movzx ebx, byte [ebp - 0x12]
mov ecx, ebx
mov dword [ebp - 0x18], edi
shr ecx, 4
cmp ecx, 0xf
ja case.default.0x46eff2
movzx eax, byte [ecx + 0x46f589]
mov dword [ebp - 0x18], edi
jmp dword [eax*4 + 0x46f575]
xor edi, edi
inc edi
mov dword [ebp - 0x18], edi
jmp 0x46f038
mov eax, dword [esi + 4]
mov dword [eax + 0x470], 0xc0
jmp 0x46f032
add ecx, 0xfffffffe
mov edx, 0x240
jmp 0x46f027
mov dword [ebp - 0x20], ecx
jmp 0x46f032
add ecx, 0xfffffff8
mov edx, 0x100
mov eax, dword [esi + 4]
shl edx, cl
mov dword [eax + 0x470], edx
mov dword [ebp - 0x18], edi
xor edi, edi
inc edi
and ebx, 0xf
cmp ebx, 0xf
ja case.default.0x46f040
jmp dword [ebx*4 + 0x46f599]
mov ecx, dword [esi + 4]
cmp dword [ecx + 0xf8], 0
je 0x46f0a5
mov eax, dword [ecx + 0x120]
mov dword [ecx + 0x474], eax
mov ebx, dword [ebp - 0x18]
movzx ecx, byte [ebp - 0x11]
mov edx, dword [esi + 4]
mov eax, ecx
shr eax, 4
test al, 8
je 0x46f1af
and eax, 7
mov dword [edx + 0x478], 2
sub eax, 0
je 0x46f1a4
sub eax, 1
je 0x46f195
sub eax, 1
je 0x46f186
mov ebx, edi
jmp 0x46f1c0
mov ebx, edi
jmp 0x46f062
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x15888
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x2b110
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x2ee00
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x1f40
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x3e80
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x5622
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x5dc0
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x7d00
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0xac44
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0xbb80
jmp case.default.0x46f040
mov eax, dword [esi + 4]
mov dword [eax + 0x474], 0x17700
jmp case.default.0x46f040
mov dword [ebp - 0x28], ebx
jmp case.default.0x46f040
mov edx, edi
mov ecx, esi
call fcn.004701dc
mov ecx, dword [esi]
mov dword [ecx], 2
mov eax, edi
jmp 0x46f564
mov eax, dword [esi + 4]
mov dword [eax + 0x47c], 3
jmp 0x46f1c0
mov eax, dword [esi + 4]
mov dword [eax + 0x47c], 2
jmp 0x46f1c0
mov eax, dword [esi + 4]
mov dword [eax + 0x47c], edi
jmp 0x46f1c0
inc eax
mov dword [edx + 0x478], eax
mov eax, dword [esi + 4]
and dword [eax + 0x47c], 0
shr ecx, 1
and ecx, 7
mov dword [ebp - 0x1c], ecx
cmp ecx, 7
ja case.default.0x46f1cd
jmp dword [ecx*4 + 0x46f5d9]
mov ecx, dword [esi + 4]
cmp dword [ecx + 0xf8], 0
je case.0x46f1cd.3
mov eax, dword [ecx + 0x128]
mov dword [ecx + 0x480], eax
jmp case.default.0x46f1cd
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 8
jmp case.default.0x46f1cd
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 0xc
jmp case.default.0x46f1cd
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 0x10
jmp case.default.0x46f1cd
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 0x14
jmp case.default.0x46f1cd
mov eax, dword [esi + 4]
mov dword [eax + 0x480], 0x18
jmp case.default.0x46f1cd
mov ebx, edi
test byte [ebp - 0x11], 1
cmovne ebx, edi
test byte [ebp - 0x13], 1
mov dword [ebp - 0x18], ebx
jne 0x46f2cf
mov ecx, dword [esi + 4]
cmp dword [ecx + 0xf8], 0
je 0x46f269
mov eax, dword [ecx + 0x110]
cmp eax, dword [ecx + 0x114]
jne 0x46f2cf
mov ecx, dword [ecx + 0x3c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
call fcn.00473e4f
pop ecx
pop ecx
test eax, eax
je 0x46f562
mov edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 4]
cmp edx, 0xffffffff
jne 0x46f2bd
mov eax, dword [ebp - 0x24]
mov edx, edi
mov al, byte [ebp + eax - 0x15]
mov byte [ecx + 0xdfe], al
mov ecx, esi
mov eax, dword [esi + 4]
mov dword [eax + 0xdc0], edi
call fcn.004701dc
mov eax, dword [esi]
mov dword [eax], 2
jmp 0x46f17f
and dword [ecx + 0x484], 0
mov eax, dword [esi + 4]
mov dword [eax + 0x488], edx
jmp 0x46f32c
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ecx + 0x3c]
lea edx, [ebp - 0x30]
call fcn.00473f37
pop ecx
pop ecx
test eax, eax
je 0x46f562
mov edx, dword [ebp - 0x30]
mov eax, edx
mov edi, dword [ebp - 0x2c]
and eax, edi
mov ecx, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x46f313
mov eax, dword [ebp - 0x24]
mov al, byte [ebp + eax - 0x15]
mov byte [ecx + 0xdfe], al
jmp 0x46f541
mov dword [ecx + 0x484], 1
mov eax, dword [esi + 4]
mov dword [eax + 0x488], edx
mov dword [eax + 0x48c], edi
cmp dword [ebp - 0x20], 0
je 0x46f395
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x1c]
push 8
mov ecx, dword [ecx + 0x3c]
call fcn.00473714
pop ecx
test eax, eax
je 0x46f562
cmp dword [ebp - 0x20], 7
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x14], bl
lea edi, [eax + 1]
jne 0x46f387
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x20]
push 8
mov ecx, dword [ecx + 0x3c]
call fcn.00473714
pop ecx
test eax, eax
je 0x46f562
mov eax, dword [ebp - 0x20]
mov byte [ebp + edi - 0x14], al
inc edi
shl ebx, 8
or ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 4]
lea ecx, [ebx + 1]
mov dword [eax + 0x470], ecx
jmp 0x46f398
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x28], 0
je 0x46f419
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x1c]
push 8
mov ecx, dword [ecx + 0x3c]
call fcn.00473714
pop ecx
test eax, eax
je 0x46f562
mov ebx, dword [ebp - 0x1c]
mov byte [ebp + edi - 0x14], bl
inc edi
cmp dword [ebp - 0x28], 0xc
je 0x46f40a
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x20]
push 8
mov ecx, dword [ecx + 0x3c]
call fcn.00473714
pop ecx
test eax, eax
je 0x46f562
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
shl ebx, 8
mov byte [ebp + edi - 0x14], al
or ebx, eax
inc edi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x28], 0xd
jne 0x46f3ff
mov dword [ecx + 0x474], ebx
jmp 0x46f419
imul eax, ebx, 0xa
mov dword [ecx + 0x474], eax
jmp 0x46f419
mov eax, dword [esi + 4]
imul ecx, ebx, 0x3e8
mov dword [eax + 0x474], ecx
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x1c]
push 8
mov ecx, dword [ecx + 0x3c]
call fcn.00473714
pop ecx
test eax, eax
je 0x46f562
xor al, al
lea edx, [ebp - 0x14]
test edi, edi
je 0x46f44f
movzx ecx, byte [edx]
movzx eax, al
xor ecx, eax
inc edx
mov al, byte [ecx + 0x5247d0]
sub edi, 1
jne 0x46f43b
cmp al, byte [ebp - 0x1c]
je 0x46f46e
xor edx, edx
mov ecx, esi
inc edx
call fcn.004701dc
mov eax, dword [esi]
mov dword [eax], 2
xor eax, eax
inc eax
jmp 0x46f564
mov eax, dword [esi + 4]
xor ebx, ebx
inc ebx
and dword [eax + 0xec], 0
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x484], 0
jne 0x46f4ae
mov eax, dword [ecx + 0x488]
mov dword [ecx + 0x484], ebx
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0xe8]
test edx, edx
je 0x46f4c1
mul edx
mov dword [ecx + 0x488], eax
mov dword [ecx + 0x48c], edx
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x46f55e
push 3
pop edx
jmp 0x46f54f
xor edx, edx
cmp dword [ecx + 0xf8], edx
je 0x46f4fc
mov edx, dword [ecx + 0x110]
cmp edx, dword [ecx + 0x114]
jne 0x46f4f8
mul edx
mov dword [ecx + 0x488], eax
mov dword [ecx + 0x48c], edx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x114]
mov dword [ecx + 0xec], eax
jmp 0x46f4ae
mov edi, ebx
jmp 0x46f4b1
mov edi, dword [ebp - 0x18]
test eax, eax
jne 0x46f520
mov dword [ecx + 0x488], edx
mov dword [ecx + 0x48c], edx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x470]
mov dword [ecx + 0xec], eax
jmp 0x46f4b1
mul dword [ecx + 0x470]
mov dword [ecx + 0x488], eax
mov dword [ecx + 0x48c], edx
jmp 0x46f4b1
mov eax, dword [esi + 4]
mov byte [eax + 0xdfe], 0xff
mov eax, dword [esi + 4]
xor ebx, ebx
inc ebx
mov edx, ebx
mov dword [eax + 0xdc0], ebx
mov ecx, esi
call fcn.004701dc
mov eax, dword [esi]
mov dword [eax], 2
mov eax, ebx
jmp 0x46f564
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
leave
ret