Function at 0x1005a100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b6e7b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edi, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x1005a171
mov ecx, dword [ecx + 0x84]
jmp 0x1005a173
xor ecx, ecx
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.10097c50
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
cmp ecx, edx
jbe 0x1005a193
mov ecx, edx
test al, al
je 0x1005a62b
cmp ecx, dword [esp + 0x18]
jbe 0x1005a62b
test ecx, ecx
je 0x1005a62b
cmp ecx, dword [esp + 0x20]
ja 0x1005a62b
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x1005a1c6
mov ecx, dword [ecx + 0x84]
jmp 0x1005a1c8
xor ecx, ecx
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
cmp si, ax
jae 0x1005a62b
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
movzx esi, si
sar eax, 2
cmp esi, eax
jae 0x1005a1f2
mov eax, dword [ecx + 8]
mov esi, dword [eax + esi*4]
jmp 0x1005a1f4
xor esi, esi
cmp byte [esi + 0x24], 0
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
jne 0x1005a20e
mov ecx, esi
call fcn.10097cc0
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0x20]
add eax, ecx
cmp ecx, eax
ja 0x1005a62b
mov ecx, ebx
call fcn.100952e0
mov edx, dword [esp + 0x28]
xor ebx, ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa8], 0x848bf9e2
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x30], eax
xor al, al
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
lea eax, [edx + 0x70]
mov dword [esp + 0xbc], 0x1600018
mov dword [esp + 0xc0], 0x3890255
mov dword [esp + 0xc4], 0x58104e5
mov dword [esp + 0xc8], 0x71806ec
mov dword [esp + 0xcc], 0x9000802
mov dword [esp + 0xd0], 0xbe80a00
mov dword [esp + 0xd4], 0xd000c15
mov dword [esp + 0xd8], 0xf000e00
mov dword [esp + 0xdc], 0x11c41081
mov dword [esp + 0xe0], 0x13021218
mov dword [esp + 0xe4], 0x15001400
mov dword [esp + 0xe8], 0x1761165d
mov byte [esp + 0xec], 0xe9
mov dword [esp + 0xac], 0x24024
mov dword [esp + 0xb0], 0xc0336600
mov dword [esp + 0xb4], 0x4d388166
mov byte [esp + 0xb8], 0x5a
mov byte [esp + 0x17], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], ebx
cmp eax, ecx
jae 0x1005a62b
sub ecx, edx
lea esi, [edx + edi]
push ecx
lea eax, [esp + 0xc0]
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.1001cbe0
test al, al
je 0x1005a62b
mov eax, dword [esi + 0xb]
cmp eax, 0x30
jae 0x1005a62b
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add edx, 0xf
add edx, eax
mov dword [esp + 0x18], edx
lea eax, [edx + 0x40]
cmp eax, ecx
jae 0x1005a62b
cmp byte [edx + edi], 0x64
jne 0x1005a62b
cmp byte [edx + edi + 1], 0x67
jne 0x1005a62b
cmp byte [edx + edi + 2], 0x8b
jne 0x1005a62b
cmp byte [edx + edi + 3], 0x3e
jne 0x1005a62b
cmp byte [edx + edi + 4], bl
jne 0x1005a62b
cmp byte [edx + edi + 5], bl
jne 0x1005a62b
lea esi, [edx + 6]
push esi
push ecx
push edi
lea ecx, [esp + 0x50]
call fcn.1001d150
mov eax, dword [esp + 0x18]
add eax, 0x46
cmp esi, eax
jae 0x1005a548
movzx eax, byte [esi + edi]
add eax, 0xffffffcf
cmp eax, 0x8d
ja case.0x1005a3e9.50
movzx eax, byte [eax + 0x1005a670]
jmp dword [eax*4 + 0x1005a654]
cmp byte [esi + edi + 1], 0x3f
jne case.0x1005a3e9.50
cmp byte [esi + edi + 2], 0xff
jne case.0x1005a3e9.50
mov byte [esp + 0x17], 1
jmp case.0x1005a3e9.50
cmp byte [esp + 0x17], 1
jne 0x1005a62b
mov al, byte [esi + edi + 1]
cmp al, 0x10
ja 0x1005a62b
movzx eax, al
lea ecx, [esp + 0x44]
inc eax
mov byte [esp + 0x14], 1
add esi, eax
lea eax, [esi + 1]
push eax
call fcn.1001d110
jmp 0x1005a51b
cmp byte [esp + 0x14], 1
jne 0x1005a62b
movzx ecx, byte [esi + edi + 4]
movzx eax, byte [esi + edi + 3]
shl cx, 8
or cx, ax
movzx eax, byte [esi + edi + 1]
movzx edx, cx
movzx ecx, byte [esi + edi + 2]
shl cx, 8
or cx, ax
shl edx, 0x10
mov eax, dword [esp + 0x18]
movzx ecx, cx
add eax, 0x30
or ecx, edx
sub ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
cmp ecx, eax
ja 0x1005a62b
mov byte [esp + 0x16], 1
jmp case.0x1005a3e9.50
cmp byte [esp + 0x16], 1
jne 0x1005a62b
movzx ecx, byte [esi + edi + 4]
movzx eax, byte [esi + edi + 3]
shl cx, 8
or cx, ax
mov byte [esp + 0x15], 1
movzx eax, byte [esi + edi + 1]
movzx edx, cx
movzx ecx, byte [esi + edi + 2]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx ebx, cx
or ebx, edx
mov dword [esp + 0x1c], ebx
jmp case.0x1005a3e9.50
cmp byte [esp + 0x15], 1
jne 0x1005a62b
cmp dword [esi + edi + 1], 0xbb
jne 0x1005a62b
mov byte [esp + 0x12], 1
lea edx, [esp + 0x2f]
lea ecx, [esp + 0x44]
call fcn.100ae1f0
test eax, eax
je 0x1005a62b
dec esi
add esi, eax
mov eax, dword [esp + 0x18]
inc esi
add eax, 0x46
cmp esi, eax
jb 0x1005a3d0
jmp 0x1005a548
cmp byte [esp + 0x12], 1
jne 0x1005a62b
cmp byte [esi + edi + 1], 6
jne 0x1005a62b
mov byte [esp + 0x13], 1
push 0x24
lea ecx, [esp + 0x3c]
call fcn.100940a0
mov dword [esp + 0x100], 0
cmp byte [esp + 0x13], 1
jne 0x1005a617
mov edx, dword [esp + 0x24]
lea eax, [edx + 0x20]
cmp eax, dword [esp + 0x20]
ja 0x1005a5fd
mov eax, dword [esp + 0x1c]
inc edx
mov esi, dword [esp + 0x38]
shr eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
shr eax, 0x18
lea ecx, [esi + 1]
shr ebx, 8
add edx, edi
mov dword [esp + 0x24], eax
mov edi, 9
mov al, byte [edx - 1]
lea edx, [edx + 4]
xor al, byte [esp + 0x1c]
lea ecx, [ecx + 4]
mov byte [ecx - 5], al
mov al, byte [edx - 4]
xor al, bl
mov byte [ecx - 4], al
mov al, byte [edx - 3]
xor al, byte [esp + 0x30]
mov byte [ecx - 3], al
mov al, byte [edx - 2]
xor al, byte [esp + 0x24]
mov byte [ecx - 2], al
dec edi
jne 0x1005a5a2
lea eax, [esp + 0xa8]
xor edx, edx
sub esi, eax
lea esp, [esp]
lea ecx, [esp + 0xa8]
add ecx, edx
mov al, byte [ecx]
cmp al, byte [esi + ecx]
jne 0x1005a5fd
inc edx
cmp edx, 0x11
jb 0x1005a5e0
mov esi, 1
jmp 0x1005a5ff
xor esi, esi
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.100941a0
mov eax, esi
jmp 0x1005a62d
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.100941a0
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.100b37df
mov esp, ebp
pop ebp
ret