Function at 0x1005dff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 8]
test edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
je 0x1005e160
lea ebx, [eax + 5]
lea edx, [edx*8]
mov ecx, 0xcbf29ce4
mov eax, 0x84222325
nop dword [eax + eax]
movzx esi, byte [ebx - 1]
imul edi, ecx, 0x1b3
movzx ecx, byte [ebx]
mov dword [esp], edx
mov edx, 0x1b3
xor esi, eax
mov eax, esi
shl esi, 8
mul edx
xor ecx, eax
add esi, edx
mov edx, 0x1b3
mov eax, ecx
add edi, esi
shl ecx, 8
mul edx
imul esi, edi, 0x1b3
add ecx, edx
mov edx, 0x1b3
add esi, ecx
mov ecx, eax
xor ecx, dword [ebx - 5]
add ebx, 8
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
imul edx, esi, 0x1b3
add ecx, edx
mov edx, dword [esp]
add edx, 0xfffffff8
jne 0x1005e040
mov esi, dword [esp + 8]
test esi, esi
je 0x1005e176
push 0
push esi
push ecx
push eax
call fcn.100ff610
mov edx, dword [ebp + 8]
mov ecx, eax
cmp esi, eax
jbe 0x1005e2b8
mov eax, dword [edx + 4]
mov dword [esp + 8], ecx
lea ecx, [ecx + ecx*4]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov dword [esp], ecx
movzx ecx, word [eax + ecx*4 + 0x10]
cmp cx, word [edx + 0x10]
jne 0x1005e12d
mov ecx, dword [esp]
lea eax, [eax + ecx*4]
cmp dword [eax + 8], esi
jne 0x1005e12d
mov ecx, dword [eax + 4]
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax]
cmp esi, edx
je 0x1005e29e
movzx ebx, byte [ecx + edx*8 + 4]
cmp bl, byte [edi + edx*8 + 4]
jne 0x1005e12d
movzx ebx, byte [ecx + edx*8 + 5]
cmp bl, byte [edi + edx*8 + 5]
jne 0x1005e12d
mov esi, dword [ecx + edx*8]
cmp esi, dword [edi + edx*8]
mov esi, dword [esp + 0xc]
lea edx, [edx + 1]
je 0x1005e100
test esi, esi
je 0x1005e180
cmp esi, 0x10000000
jae 0x1005e2c4
movzx eax, byte [0x10199148]
lea ebx, [esi*8]
xor ecx, ecx
mov edx, ebx
call fcn.100ea7d0
test eax, eax
je 0x1005e2c9
mov esi, eax
jmp 0x1005e187
mov ecx, 0xcbf29ce4
mov eax, 0x84222325
mov esi, dword [esp + 8]
test esi, esi
jne 0x1005e0ac
mov ecx, 0x1012a63c
call fcn.1010d5f0
xor ebx, ebx
mov esi, 4
push ebx
push edi
push esi
call fcn.10100490
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 2
push eax
call fcn.10056090
add esp, 4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
cmp eax, 0x2a
jne 0x1005e229
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [edi + 8]
cmp edx, ecx
jbe 0x1005e2d5
mov eax, dword [edi + 4]
mov ecx, dword [esp]
movzx edi, word [edi + 0x10]
cmp dword [eax + ecx*4], 0
lea ebx, [eax + ecx*4]
je 0x1005e202
push dword [ebx + 4]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [esp + 4]
movsd xmm0, qword [ecx]
movsd qword [ebx], xmm0
mov dword [ebx + 0xc], esi
mov word [ebx + 0x10], di
mov dword [eax + 4], esi
mov dword [eax], 0x2a
jmp 0x1005e296
mov ecx, dword [esp + 4]
movsd xmm2, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x50]
movsd xmm0, qword [esp + 0x60]
movsd qword [ecx + 0x30], xmm2
movsd qword [ecx + 0x28], xmm1
movsd xmm2, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x40]
movsd qword [ecx + 0x38], xmm0
movsd qword [ecx + 0x20], xmm2
movsd qword [ecx + 0x18], xmm1
movsd xmm2, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x38]
movsd qword [ecx + 0x10], xmm1
movsd qword [ecx + 8], xmm2
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x1005e296
push edi
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
mov dword [ecx], 0x2a
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x1005e287
jmp 0x1005e296
mov edx, esi
push 0x1012a64c
call fcn.1010cfe0
call fcn.10001070
mov ecx, 4
mov edx, ebx
call fcn.1010cb60
push 0x1012a65c
call fcn.1010cfe0
int3