Function at 0x10005c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028fc3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1003867c]
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 dword [ebp - 0x4c], edx
mov ebx, ecx
mov dword [ebp - 0x48], ebx
xor eax, eax
mov dword [ebp - 0x34], eax
test ebx, ebx
je 0x10005fa4
push 1
push eax
push eax
push ebx
call dword [0x1003a724]
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x5c], eax
call dword [0x1003a724]
push 0x42
xor eax, eax
push str.5c388d773f6df4504677a890536108777911d8e9fba77d1a722bb7076425425761
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
call fcn.100097f0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.10009140
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10009360
cmp dword [ebp - 0x78], 8
jb 0x10005d31
push dword [ebp - 0x8c]
call fcn.1001534f
add esp, 4
xor eax, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x60], 8
jb 0x10005d5d
push dword [ebp - 0x74]
call fcn.1001534f
add esp, 4
mov edi, dword [ebp - 0x20]
xor eax, eax
lea esi, [edi + 1]
push esi
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
call fcn.100150d0
push esi
push 0
push eax
mov dword [ebp - 0x54], eax
call fcn.10019070
mov esi, dword [ebp - 0x54]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push esi
push ebx
call dword [0x1003a6d8]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
mov edx, esi
sub edi, 4
jb 0x10005dc1
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10005dc6
add edx, 4
add ecx, 4
sub edi, 4
jae 0x10005db0
cmp edi, 0xfffffffc
je 0x10005e03
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x10005f77
cmp edi, 0xfffffffd
je 0x10005e03
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x10005f77
cmp edi, 0xfffffffe
je 0x10005e03
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x10005f77
cmp edi, 0xffffffff
je 0x10005e03
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x10005f77
push 0x1000
call fcn.100150d0
push 0x10
mov dword [ebp - 0x38], eax
call fcn.100150d0
mov ebx, eax
add esp, 8
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call fcn.10005730
mov edi, dword [ebp - 0x48]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
push edi
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x18], 0
call dword [0x1003a6d8]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10
push ebx
push edi
call dword [0x1003a6d8]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
push ebx
call fcn.100057d0
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
xor esi, esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x58], ebx
mov edi, edi
push 0
lea eax, [ebp - 0x14]
push eax
push 0x1000
push edx
push edi
call dword [0x1003a6d8]
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x14]
test edx, edx
je 0x10005ee3
cmp dword [ebp - 0x44], 0
je 0x10005f2a
xor edx, edx
test edi, edi
jle 0x10005ee0
mov esi, dword [ebp - 0x38]
lea esp, [esp]
movzx eax, byte [edx + esi]
movzx ecx, bl
xor ecx, eax
mov eax, dword [ebp - 0x44]
shr ebx, 8
xor ebx, dword [eax + ecx*4]
inc edx
mov dword [ebp - 0x40], ebx
cmp edx, edi
jl 0x10005ec0
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ebx
mov edx, dword [ebp - 0x38]
xor ecx, ecx
test edi, edi
je 0x10005f16
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
mov ebx, eax
cmp esi, 0x10
jb 0x10005efc
sub esi, 0x10
mov eax, dword [ebp - 0x50]
inc ecx
mov al, byte [esi + eax]
xor al, byte [ecx + edx - 1]
inc esi
mov byte [ebx + ecx - 1], al
cmp ecx, edi
jb 0x10005ef4
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x34]
add eax, edi
mov dword [ebp - 0x34], eax
test edi, edi
je 0x10005f3f
mov edi, dword [ebp - 0x48]
jmp 0x10005e90
push 0x10035200
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0
call fcn.1001776b
push dword [ebp - 0x50]
xor ecx, ecx
not ebx
cmp dword [ebp - 0x18], ebx
cmove ecx, eax
mov dword [ebp - 0x34], ecx
call fcn.10015a24
mov eax, dword [ebp - 0x38]
push eax
call fcn.10015a24
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
je 0x10005f74
push eax
call fcn.10015a24
add esp, 4
mov ebx, dword [ebp - 0x48]
push dword [ebp - 0x54]
call fcn.10015a24
add esp, 4
push 0
push 0
push dword [ebp - 0x5c]
push ebx
call dword [0x1003a724]
cmp dword [ebp - 0x1c], 0x10
jb 0x10005fa1
push dword [ebp - 0x30]
call fcn.1001534f
add esp, 4
mov eax, dword [ebp - 0x34]
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.1001520a
mov esp, ebp
pop ebp
ret