Function at 0x1005595c
Capabilities:
Encode data using xor

Disassembly:
push 0x1f8
mov eax, 0x100ec49e
call fcn.100e35bc
mov dword [ebp - 0x84], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x204]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x90], edi
call fcn.10058926
and dword [ebp - 4], 0
cmp dword [esi + 0x7ee], 4
jne 0x10055bbe
mov eax, dword [edi + 0x15]
lea esi, [edi + 0x19]
push 8
pop ecx
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
cmp byte [edi + 0x9ec], 1
jne 0x100559fd
cmp byte [edi + 0x9eb], 0
jne 0x100559fd
lea eax, [ebp - 0x88]
mov eax, dword [eax]
cmp eax, dword [edi + 0x9c7]
jne 0x10055ac6
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 0x9cb]
jne 0x10055ac6
inc ecx
cmp ecx, 8
jne 0x100559e7
xor esi, esi
call fcn.1005c6bf
mov dword [ebp + esi - 0x24], eax
add esi, 4
cmp esi, 0x14
jl 0x100559ff
and dword [ebp - 0x94], 0
lea esi, [ebp - 0x24]
push 5
xorps xmm0, xmm0
lea edi, [ebp - 0xb0]
pop ecx
movlpd qword [ebp - 0x9c], xmm0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x204]
call fcn.10058926
mov eax, dword [ebp - 0x8c]
lea edi, [ebp - 0x200]
mov dword [ebp - 0x204], eax
lea esi, [ebp - 0x7c]
push 7
pop ecx
xor eax, eax
lea edx, [ebp - 0x1c4]
rep stosd dword es:[edi], eax
push 8
pop ecx
lea edi, [ebp - 0x1e4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1e4]
call fcn.10059836
lea edx, [ebp - 0x1a4]
lea ecx, [ebp - 0x1e4]
call fcn.100598d5
cmp byte [ebp - 0x184], 0
je 0x10055b24
sub esp, 0x10
lea eax, [ebp - 0xe3]
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x113]
push eax
lea eax, [ebp - 0x143]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.1005943c
add esp, 0x20
jmp 0x10055b45
xor ecx, ecx
inc ecx
call fcn.10052722
mov esi, eax
mov eax, dword [ebp - 0x80]
push 1
mov ecx, dword [esi + 0x10]
mov byte [ecx], 0x1c
mov dword [esi + 0xc], 8
mov ecx, dword [eax + 1]
push ecx
mov dword [esi + 2], ecx
mov ax, word [eax + 5]
push ecx
mov edx, esp
mov word [esi + 6], ax
mov eax, ecx
mov ecx, edi
mov dword [edx], eax
mov ax, word [esi + 6]
mov word [edx + 4], ax
call fcn.10054d84
push esi
mov ecx, edi
mov word [esi], ax
call fcn.100565b8
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x7ee], 2
jmp 0x10055bbe
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x1e4]
push eax
lea edx, [ebp - 0x204]
lea ecx, [ebp - 0xb0]
call fcn.1005970b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x80]
xor edx, edx
mov esi, dword [ebp - 0x90]
mov al, byte [ebp + edx - 0x24]
xor al, byte [edx + esi + 1]
mov byte [ecx + edx + 0x7d1], al
inc edx
cmp edx, 0x10
jl 0x10055b50
mov byte [ecx + 0x7e1], 1
lea edi, [ebp - 0x5b]
push 5
inc esi
mov byte [ebp - 0x5c], 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea esi, [ebp - 0xd0]
lea edi, [ebp - 0x47]
rep movsd dword es:[edi], dword [esi]
call fcn.100508e7
mov edx, dword [ebp - 0x80]
xor esi, esi
push esi
push eax
push esi
mov eax, dword [edx + 1]
push esi
push ecx
push ecx
mov ecx, esp
push esi
push 6
push esi
mov dword [ecx], eax
mov ax, word [edx + 5]
mov word [ecx + 4], ax
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x84]
push 0x1a8
push eax
call fcn.10056133
or dword [ebp - 4], 0xffffffff
call fcn.100e356b
ret 8