Function at 0x46b548
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x46b95e
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0xe8
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf4], edi
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [ebp + 8]
call fcn.0046a3dc
mov edi, eax
cmp eax, 6
jae 0x46b691
test edi, edi
je 0x46b5e1
cmp edi, 1
je 0x46b5a5
jmp 0x46b615
push 0x80
lea edx, [ebp - 0x50]
mov edi, esi
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
push edx
call fcn.0046a450
mov ebx, eax
call fcn.0046a528
push eax
lea eax, [ebp - 0x28]
call fcn.0047432c
mov ecx, dword [eax]
mov eax, esi
push ecx
call fcn.0046b420
jmp 0x46b905
mov esi, 0x4d9770
push esi
call fcn.00462d20
add esp, 4
mov edx, 0x4d9890
push edx
mov edi, 0x4d9840
mov ebx, eax
push 0x1e
mov eax, ebx
push edi
push 0x1b
push 0xec
push 0
call fcn.0046b344
push eax
call fcn.00463074
lea edx, [ebp - 0xb0]
lea eax, [ebp + 8]
push edx
call fcn.0046a450
lea eax, [ebp - 0xb0]
call fcn.0046a530
xor al, 1
je 0x46b905
mov eax, esi
lea edx, [ebp - 0xd8]
lea eax, [ebp - 0xb0]
call fcn.0046a528
mov ebx, eax
lea eax, [ebp - 0xd8]
push 0x90
push ebx
mov dword [ebp - 0xd8], 0
push edi
call fcn.0047433c
mov ecx, dword [eax]
mov eax, esi
push ecx
call fcn.0046b420
lea eax, [ebp - 0xb0]
call fcn.0046a53c
lea eax, [ebp - 0xb0]
call fcn.0046a530
xor al, 1
jne 0x46b63f
jmp 0x46b905
lea edx, [ebp - 0xd0]
lea eax, [ebp + 8]
push edx
call fcn.0046a37c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [esi + 0x30]
lea edi, [ebp - 0xc0]
lea eax, [ebp - 0xc0]
push dword [esi + 0x2c]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], edx
call fcn.00419a98
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.004748e8
mov ebx, eax
test eax, eax
js 0x46b777
lea eax, [ebp - 0xd0]
call fcn.0046ad24
add eax, eax
cmp eax, 6
jbe 0x46b723
push 0x8c
lea edx, [ebp - 0xb8]
mov edi, esi
mov dword [ebp - 0xb8], 0
push ebx
mov eax, edx
call fcn.0047432c
mov ecx, dword [eax]
mov eax, esi
push ecx
call fcn.0046b420
jmp 0x46b746
push 0x88
lea edx, [ebp - 0x38]
mov edi, esi
mov dword [ebp - 0x38], 0
mov eax, edx
push ebx
call fcn.0047432c
mov ecx, dword [eax]
mov eax, esi
push ecx
call fcn.0046b420
mov dword [ebp - 4], 0xffffffff
call fcn.0046b929
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0xfc]
mov esi, dword [ebp - 0xf8]
mov edi, dword [ebp - 0xf4]
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0xd0]
call fcn.0046ad24
add eax, eax
cmp eax, 6
jbe 0x46b82c
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x68], ecx
lea ebx, [ebp - 0x68]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], edx
call fcn.00419a98
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x90]
call fcn.00474938
lea esi, [ebp - 0x60]
mov eax, esi
push 0x8c
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x60], 0
push dword [edi + 0x34]
call fcn.0047432c
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x18]
call fcn.0046b420
mov esi, 0x4ce8f0
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x34
push ecx
push esi
call fcn.00465444
lea esi, [ebp - 0x90]
mov ecx, 0xa
mov dword [ebp - 0xe8], eax
mov edi, dword [ebp - 0xe8]
lea edi, [edi + edi*4]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
lea edi, [eax + edi*8 - 0x28]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
jmp 0x46b89e
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x3c]
mov eax, ecx
push 0x88
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], 0
push dword [esi + 0x2c]
call fcn.0047432c
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x18]
call fcn.0046b420
mov esi, 0x4ce8f0
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x34
push ecx
push esi
call fcn.00465444
mov esi, 0x510654
mov ecx, 0xa
mov dword [ebp - 0xe0], eax
mov edi, dword [ebp - 0xe0]
lea edi, [edi + edi*4]
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xdc]
lea edi, [eax + edi*8 - 0x28]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
lea edi, [ebp - 0x30]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edx
call fcn.00419a98
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
lea ecx, [esi + 0x2c]
push 1
mov dword [ebp - 0x1c], edx
mov edx, 0x4ccb10
push ecx
push edx
call fcn.00465444
mov dword [ebp - 0xec], edx
mov ebx, dword [ebp - 0xec]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
lea ecx, [ebx + ecx*8]
mov dword [ecx - 4], edx
mov eax, dword [ebp - 0x20]
mov dword [ecx - 8], eax
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc]
push 0xffffffffffffffff
push ecx
push 0x4d9820
call fcn.004669c8
add esp, 0xc
call fcn.0046b929
jmp 0x46b939
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0xfc]
mov esi, dword [ebp - 0xf8]
mov edi, dword [ebp - 0xf4]
mov esp, ebp
pop ebp
ret 8