Function at 0x10046cc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], eax
push edi
lea ecx, [ebp + 8]
call fcn.1003ac20
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edi, dword [edx + 8]
cmp byte [eax + 0xd], 0
jne 0x10046b3f
cmp byte [edi + 0xd], 0
je 0x10046b31
mov edi, eax
jmp 0x10046b3f
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 8]
cmp ecx, edx
jne 0x10046bca
cmp byte [edi + 0xd], 0
mov esi, dword [edx + 4]
jne 0x10046b4b
mov dword [edi + 4], esi
mov eax, dword [ebx]
cmp dword [eax + 4], edx
jne 0x10046b57
mov dword [eax + 4], edi
jmp 0x10046b62
cmp dword [esi], edx
jne 0x10046b5f
mov dword [esi], edi
jmp 0x10046b62
mov dword [esi + 8], edi
mov eax, dword [ebx]
cmp dword [eax], edx
jne 0x10046b93
cmp byte [edi + 0xd], 0
je 0x10046b72
mov edx, esi
jmp 0x10046b8e
mov ecx, dword [edi]
mov edx, edi
cmp byte [ecx + 0xd], 0
jne 0x10046b8e
nop dword [eax]
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10046b80
mov eax, dword [ebx]
mov dword [eax], edx
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
cmp dword [eax + 8], edx
jne 0x10046bc5
cmp byte [edi + 0xd], 0
je 0x10046baa
mov ecx, esi
mov dword [eax + 8], ecx
mov dl, byte [edx + 0xc]
jmp 0x10046c26
mov eax, dword [edi + 8]
mov ecx, edi
cmp byte [eax + 0xd], 0
jne 0x10046bc0
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x10046bb5
mov eax, dword [ebx]
mov dword [eax + 8], ecx
mov dl, byte [edx + 0xc]
jmp 0x10046c26
mov dword [eax + 4], ecx
mov eax, dword [edx]
mov dword [ecx], eax
cmp ecx, dword [edx + 8]
jne 0x10046bda
mov esi, ecx
jmp 0x10046bf4
cmp byte [edi + 0xd], 0
mov esi, dword [ecx + 4]
jne 0x10046be6
mov dword [edi + 4], esi
mov dword [esi], edi
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebx]
cmp dword [eax + 4], edx
jne 0x10046c00
mov dword [eax + 4], ecx
jmp 0x10046c0e
mov eax, dword [edx + 4]
cmp dword [eax], edx
jne 0x10046c0b
mov dword [eax], ecx
jmp 0x10046c0e
mov dword [eax + 8], ecx
mov eax, dword [edx + 4]
mov dl, byte [ecx + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xc]
mov byte [ecx + 0xc], al
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], dl
cmp dl, 1
jne 0x10046d75
mov eax, dword [ebx]
cmp edi, dword [eax + 4]
je 0x10046d71
nop word [eax + eax]
cmp byte [edi + 0xc], 1
mov dword [ebp - 8], esi
jne 0x10046d71
mov ecx, dword [esi]
cmp edi, ecx
jne 0x10046cf9
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xc], 0
jne 0x10046ca3
mov byte [ecx + 0xc], 1
mov ecx, dword [esi + 8]
mov byte [esi + 0xc], 0
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ecx]
cmp byte [eax + 0xd], 0
jne 0x10046c7b
mov dword [eax + 4], esi
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx]
cmp esi, dword [eax + 4]
jne 0x10046c8d
mov dword [eax + 4], ecx
jmp 0x10046c9b
mov eax, dword [esi + 4]
cmp esi, dword [eax]
jne 0x10046c98
mov dword [eax], ecx
jmp 0x10046c9b
mov dword [eax + 8], ecx
mov dword [ecx], esi
mov dword [esi + 4], ecx
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xd], 0
jne 0x10046d5e
mov edx, dword [ecx]
cmp byte [edx + 0xc], 1
jne 0x10046cc2
mov eax, dword [ecx + 8]
cmp byte [eax + 0xc], 1
je 0x10046d5a
mov eax, dword [ecx + 8]
cmp byte [eax + 0xc], 1
jne 0x10046cde
mov byte [edx + 0xc], 1
mov byte [ecx + 0xc], 0
push ecx
mov ecx, ebx
call fcn.10047080
mov ecx, dword [esi + 8]
mov al, byte [esi + 0xc]
mov byte [ecx + 0xc], al
mov byte [esi + 0xc], 1
mov eax, dword [ecx + 8]
mov ecx, ebx
push esi
mov byte [eax + 0xc], 1
call fcn.100470e0
jmp 0x10046d71
cmp byte [ecx + 0xc], 0
jne 0x10046d43
mov byte [ecx + 0xc], 1
mov ecx, dword [esi]
mov byte [esi + 0xc], 0
mov eax, dword [ecx + 8]
mov dword [esi], eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x10046d1a
mov dword [eax + 4], esi
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx]
cmp esi, dword [eax + 4]
jne 0x10046d2c
mov dword [eax + 4], ecx
jmp 0x10046d3b
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x10046d39
mov dword [eax + 8], ecx
jmp 0x10046d3b
mov dword [eax], ecx
mov dword [ecx + 8], esi
mov dword [esi + 4], ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10046d5e
mov edx, dword [ecx + 8]
cmp byte [edx + 0xc], 1
jne 0x10046d8c
mov eax, dword [ecx]
cmp byte [eax + 0xc], 1
jne 0x10046d8c
mov byte [ecx + 0xc], 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 8]
mov edi, ecx
mov esi, dword [esi + 4]
cmp ecx, dword [eax + 4]
jne 0x10046c40
mov byte [edi + 0xc], 1
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x10046d83
dec ecx
mov dword [ebx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx]
cmp byte [eax + 0xc], 1
jne 0x10046da6
mov byte [edx + 0xc], 1
mov byte [ecx + 0xc], 0
push ecx
mov ecx, ebx
call fcn.100470e0
mov ecx, dword [esi]
mov al, byte [esi + 0xc]
mov byte [ecx + 0xc], al
mov byte [esi + 0xc], 1
mov eax, dword [ecx]
mov ecx, ebx
push esi
mov byte [eax + 0xc], 1
call fcn.10047080
jmp 0x10046d71