Function at 0x1005a700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + 8]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
test ecx, ecx
je 0x1005a75b
mov ecx, dword [ecx + 0x84]
jmp 0x1005a75d
xor ecx, ecx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.10097c50
mov edx, dword [ebx + 4]
mov ecx, dword [ebp - 0x40]
cmp ecx, edx
jbe 0x1005a77a
mov ecx, edx
test al, al
je 0x1005aa6d
cmp ecx, dword [ebp - 0x4c]
jbe 0x1005aa6d
test ecx, ecx
je 0x1005aa6d
cmp ecx, edi
ja 0x1005aa6d
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x1005a7aa
mov ecx, dword [ecx + 0x84]
jmp 0x1005a7ac
xor ecx, ecx
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
cmp si, ax
jae 0x1005aa6d
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
movzx esi, si
sar eax, 2
cmp esi, eax
jae 0x1005a7d6
mov eax, dword [ecx + 8]
mov esi, dword [eax + esi*4]
jmp 0x1005a7d8
xor esi, esi
cmp byte [esi + 0x24], 0
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
jne 0x1005a7ea
mov ecx, esi
call fcn.10097cc0
mov eax, dword [esi + 0x20]
add eax, ebx
cmp ebx, eax
ja 0x1005aa6d
cmp eax, ebx
jb 0x1005aa6d
test eax, eax
je 0x1005aa6d
mov esi, dword [ebp - 0x44]
mov ecx, esi
call fcn.100952e0
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0xd903d303
mov dword [ebp - 0x18], 0xabc233ad
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebx + 0x1d]
mov dword [ebp - 0x38], 0x1c1000d
mov dword [ebp - 0x34], 0x30702ca
mov dword [ebp - 0x30], 0x5d3042b
mov dword [ebp - 0x2c], 0x7d9062b
mov dword [ebp - 0x28], 0x93308ad
mov dword [ebp - 0x24], 0xbab0ac2
mov word [ebp - 0x20], 0xc49
mov byte [ebp - 0x1e], 0x75
mov word [ebp - 0x14], 0x7549
cmp eax, edi
jae 0x1005aa6d
lea eax, [ebp - 0x38]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x48]
mov eax, edi
sub eax, ebx
sub eax, 0x1d
push eax
mov eax, dword [ebp - 0x3c]
add eax, 0x1d
add eax, ebx
push eax
call fcn.1001cbe0
test al, al
je 0x1005aa6d
lea eax, [ebx + 0x1c]
cmp eax, edi
ja 0x1005aa6d
mov eax, dword [ebp - 0x3c]
push 1
movzx ecx, byte [ebx + eax + 4]
movzx eax, byte [ebx + eax + 3]
shl cx, 8
or cx, ax
mov eax, dword [ebp - 0x3c]
movzx edx, cx
shl edx, 0x10
movzx ecx, byte [ebx + eax + 2]
movzx eax, byte [ebx + eax + 1]
shl cx, 8
or cx, ax
movzx eax, cx
or eax, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [ebx + eax + 9]
movzx eax, byte [ebx + eax + 8]
shl cx, 8
or cx, ax
mov eax, dword [ebp - 0x3c]
movzx edx, cx
shl edx, 0x10
movzx ecx, byte [ebx + eax + 7]
movzx eax, byte [ebx + eax + 6]
shl cx, 8
or cx, ax
movzx eax, cx
lea ecx, [ebp - 0x40]
push ecx
or eax, edx
lea ecx, [ebp - 0x48]
sub eax, dword [ebp - 0x44]
push ecx
push eax
mov ecx, esi
call fcn.100951f0
test al, al
je 0x1005aa6d
mov esi, dword [ebp - 0x3c]
movzx ecx, byte [ebx + esi + 0xe]
movzx eax, byte [ebx + esi + 0xd]
shl cx, 8
or cx, ax
movzx eax, byte [ebx + esi + 0xb]
movzx edx, cx
movzx ecx, byte [ebx + esi + 0xc]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx eax, cx
movzx ecx, byte [ebx + esi + 0x1c]
or eax, edx
mov dword [ebp - 0x44], eax
movzx eax, byte [ebx + esi + 0x1b]
shl cx, 8
or cx, ax
movzx eax, byte [ebx + esi + 0x19]
movzx edx, cx
movzx ecx, byte [ebx + esi + 0x1a]
mov ebx, dword [ebp - 0x48]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx eax, cx
or eax, edx
mov dword [ebp - 0x40], eax
lea esi, [eax*4]
lea eax, [esi + ebx]
cmp eax, edi
ja 0x1005aa6d
push esi
lea ecx, [ebp - 0x58]
call fcn.100940a0
mov dword [ebp - 4], 0
test esi, esi
je 0x1005aa3c
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x58]
add eax, 2
add ebx, eax
inc edi
lea eax, [esi - 1]
shr eax, 2
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x1005a9d0
mov dl, 7
lea ecx, [ebp - 0x4c]
call fcn.1001cdd0
movzx edx, byte [ebx + 1]
lea ebx, [ebx + 4]
movzx ecx, byte [ebx - 4]
lea edi, [edi + 4]
mov esi, eax
shl dx, 8
mov eax, dword [ebp - 0x44]
or dx, cx
movzx ecx, byte [ebx - 5]
sub esi, eax
sub eax, dword [ebp - 0x40]
dec dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
movzx eax, byte [ebx - 6]
shl cx, 8
or cx, ax
movzx edx, dx
movzx ecx, cx
shl edx, 0x10
or ecx, edx
mov dword [ebp - 0x4c], esi
xor ecx, esi
mov byte [edi - 5], cl
mov eax, ecx
shr eax, 8
mov byte [edi - 4], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
dec dword [ebp - 0x3c]
mov byte [edi - 3], al
mov byte [edi - 2], cl
jne 0x1005a9d0
mov edx, dword [ebp - 0x58]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1c]
cmp al, byte [edx + ecx + 0x2e]
jne 0x1005aa58
inc ecx
cmp ecx, 0xa
jb 0x1005aa41
mov esi, 1
jmp 0x1005aa5a
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.100941a0
mov eax, esi
jmp 0x1005aa6f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b37df
mov esp, ebp
pop ebp
ret