Function at 0x10046e04
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.10046aa0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edi, dword [edx + 8]
cmp byte [eax + 0xd], 0
jne 0x10046dff
cmp byte [edi + 0xd], 0
je 0x10046df1
mov edi, eax
jmp 0x10046dff
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 8]
cmp ecx, edx
jne 0x10046e8a
cmp byte [edi + 0xd], 0
mov esi, dword [edx + 4]
jne 0x10046e0b
mov dword [edi + 4], esi
mov eax, dword [ebx]
cmp dword [eax + 4], edx
jne 0x10046e17
mov dword [eax + 4], edi
jmp 0x10046e22
cmp dword [esi], edx
jne 0x10046e1f
mov dword [esi], edi
jmp 0x10046e22
mov dword [esi + 8], edi
mov eax, dword [ebx]
cmp dword [eax], edx
jne 0x10046e53
cmp byte [edi + 0xd], 0
je 0x10046e32
mov edx, esi
jmp 0x10046e4e
mov ecx, dword [edi]
mov edx, edi
cmp byte [ecx + 0xd], 0
jne 0x10046e4e
nop dword [eax]
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10046e40
mov eax, dword [ebx]
mov dword [eax], edx
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
cmp dword [eax + 8], edx
jne 0x10046e85
cmp byte [edi + 0xd], 0
je 0x10046e6a
mov ecx, esi
mov dword [eax + 8], ecx
mov dl, byte [edx + 0xc]
jmp 0x10046ee6
mov eax, dword [edi + 8]
mov ecx, edi
cmp byte [eax + 0xd], 0
jne 0x10046e80
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x10046e75
mov eax, dword [ebx]
mov dword [eax + 8], ecx
mov dl, byte [edx + 0xc]
jmp 0x10046ee6
mov dword [eax + 4], ecx
mov eax, dword [edx]
mov dword [ecx], eax
cmp ecx, dword [edx + 8]
jne 0x10046e9a
mov esi, ecx
jmp 0x10046eb4
cmp byte [edi + 0xd], 0
mov esi, dword [ecx + 4]
jne 0x10046ea6
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 0x10046ec0
mov dword [eax + 4], ecx
jmp 0x10046ece
mov eax, dword [edx + 4]
cmp dword [eax], edx
jne 0x10046ecb
mov dword [eax], ecx
jmp 0x10046ece
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 0x10047035
mov eax, dword [ebx]
cmp edi, dword [eax + 4]
je 0x10047031
nop word [eax + eax]
cmp byte [edi + 0xc], 1
mov dword [ebp - 8], esi
jne 0x10047031
mov ecx, dword [esi]
cmp edi, ecx
jne 0x10046fb9
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xc], 0
jne 0x10046f63
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 0x10046f3b
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 0x10046f4d
mov dword [eax + 4], ecx
jmp 0x10046f5b
mov eax, dword [esi + 4]
cmp esi, dword [eax]
jne 0x10046f58
mov dword [eax], ecx
jmp 0x10046f5b
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 0x1004701e
mov edx, dword [ecx]
cmp byte [edx + 0xc], 1
jne 0x10046f82
mov eax, dword [ecx + 8]
cmp byte [eax + 0xc], 1
je 0x1004701a
mov eax, dword [ecx + 8]
cmp byte [eax + 0xc], 1
jne 0x10046f9e
mov byte [edx + 0xc], 1
mov byte [ecx + 0xc], 0
push ecx
mov ecx, ebx
call fcn.10047160
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.100471c0
jmp 0x10047031
cmp byte [ecx + 0xc], 0
jne 0x10047003
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 0x10046fda
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 0x10046fec
mov dword [eax + 4], ecx
jmp 0x10046ffb
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x10046ff9
mov dword [eax + 8], ecx
jmp 0x10046ffb
mov dword [eax], ecx
mov dword [ecx + 8], esi
mov dword [esi + 4], ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1004701e
mov edx, dword [ecx + 8]
cmp byte [edx + 0xc], 1
jne 0x1004704c
mov eax, dword [ecx]
cmp byte [eax + 0xc], 1
jne 0x1004704c
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 0x10046f00
mov byte [edi + 0xc], 1
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x10047043
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 0x10047066
mov byte [edx + 0xc], 1
mov byte [ecx + 0xc], 0
push ecx
mov ecx, ebx
call fcn.100471c0
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.10047160
jmp 0x10047031