Function at 0x100d7f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x584
xor eax, eax
mov ecx, 0x11
push ebx
mov dword [esp + 0x10], 0
push esi
push edi
lea edi, [esp + 0xcc]
push ebp
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x598]
mov eax, dword [esp + 0x59c]
mov ecx, edx
mov esi, dword [ecx]
add ecx, 4
inc dword [esp + esi*4 + 0xd0]
dec eax
jne 0x100d822
mov eax, dword [esp + 0x59c]
cmp dword [esp + 0xd0], eax
mov eax, dword [esp + 0x5b4]
jne 0x100d85b
pop ebp
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x584
ret
mov ebx, dword [eax]
mov ecx, 1
lea eax, [esp + 0xd4]
cmp dword [eax], 0
jne 0x100d87d
add eax, 4
inc ecx
lea esi, [esp + 0x110]
cmp eax, esi
jbe 0x100d869
mov dword [esp + 0x20], ecx
mov esi, ecx
cmp ebx, ecx
jae 0x100d889
mov ebx, esi
mov edi, 0x10
lea eax, [esp + 0x110]
cmp dword [eax], 0
jne 0x100d8a9
sub eax, 4
dec edi
lea ebp, [esp + 0xd0]
cmp eax, ebp
jne 0x100d895
mov dword [esp + 0x3c], edi
cmp ebx, edi
jbe 0x100d8b3
mov ebx, edi
mov eax, dword [esp + 0x5b4]
mov dword [eax], ebx
mov eax, 1
shl eax, cl
mov dword [esp + 0x40], eax
cmp ecx, edi
jae 0x100d8ec
lea eax, [esp + ecx*4 + 0xd0]
mov ebp, dword [eax]
sub dword [esp + 0x40], ebp
js 0x100d90b
add eax, 4
inc ecx
mov ebp, dword [esp + 0x40]
add ebp, ebp
cmp ecx, edi
mov dword [esp + 0x40], ebp
jb 0x100d8d2
lea ecx, [esp + edi*4 + 0xd0]
mov eax, dword [ecx]
sub dword [esp + 0x40], eax
jns 0x100d91b
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret
add eax, dword [esp + 0x40]
lea ebp, [esp + 0xd4]
mov dword [ecx], eax
xor ecx, ecx
lea eax, [esp + 0x94]
dec edi
mov dword [esp + 0x90], ecx
je 0x100d949
add ecx, dword [ebp]
add ebp, 4
mov dword [eax], ecx
add eax, 4
dec edi
jne 0x100d93b
xor edi, edi
mov eax, dword [edx]
add edx, 4
test eax, eax
je 0x100d967
lea ecx, [esp + eax*4 + 0x8c]
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov dword [esp + eax*4 + 0x110], edi
inc edi
cmp dword [esp + 0x59c], edi
ja 0x100d94b
xor eax, eax
lea edi, [esp + 0x114]
mov edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], eax
neg edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x24], 0xffffffff
jl 0x100dbfc
mov eax, dword [esp + 0x20]
lea ecx, [esp + eax*4 + 0xd0]
mov dword [esp + 0x30], ecx
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
dec dword [esp + 0x28]
test eax, eax
je 0x100dbea
lea eax, [ebx + edx]
cmp eax, dword [esp + 0x20]
jge 0x100dacb
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
shl esi, 2
and eax, 0xffff
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x2c], eax
add esi, 4
add edx, ebx
mov edi, dword [esp + 0x38]
inc dword [esp + 0x24]
sub edi, edx
cmp edi, ebx
jbe 0x100da10
movzx edi, bx
mov ecx, dword [esp + 0x20]
mov ebp, 1
sub ecx, edx
shl ebp, cl
cmp ebp, dword [esp + 0x2c]
jbe 0x100da43
mov eax, dword [esp + 0x28]
inc ecx
inc eax
sub ebp, eax
mov eax, dword [esp + 0x30]
cmp edi, ecx
jbe 0x100da43
add ebp, ebp
add eax, 4
cmp ebp, dword [eax]
jbe 0x100da43
sub ebp, dword [eax]
inc ecx
cmp edi, ecx
ja 0x100da33
mov eax, 1
mov edi, dword [esp + 0x5ac]
shl eax, cl
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [edi + ebp*8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
add dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x1c]
cmp ebp, dword [esp + 0x5b0]
ja 0x100dc1a
mov dword [esp + esi + 0x4c], eax
test esi, esi
je 0x100dabe
mov eax, dword [esp + 0x10]
add cl, 0x10
mov dword [esp + esi + 0x8c], eax
mov byte [esp + 0x45], bl
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x44], cl
mov dword [esp + 0x48], eax
mov ecx, edx
sub cl, bl
shr ebp, cl
shl ebp, 3
add ebp, dword [esp + esi + 0x48]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov dword [ebp], eax
mov dword [ebp + 4], edi
lea eax, [ebx + edx]
cmp eax, dword [esp + 0x20]
jl 0x100d9fa
mov cl, byte [esp + 0x20]
mov eax, dword [esp + 0x59c]
sub cl, dl
lea ebp, [esp + eax*4 + 0x114]
mov byte [esp + 0x45], cl
cmp ebp, dword [esp + 0x34]
ja 0x100daf0
mov byte [esp + 0x44], 0x63
jmp 0x100db45
mov edi, dword [esp + 0x34]
mov esi, dword [edi]
cmp dword [esp + 0x5a0], esi
jbe 0x100db19
mov byte [esp + 0x38], 0x10
cmp esi, 0x100
adc byte [esp + 0x38], 0xff
mov al, byte [esp + 0x38]
mov byte [esp + 0x44], al
jmp 0x100db3b
sub esi, dword [esp + 0x5a0]
mov eax, dword [esp + 0x5a8]
add esi, esi
mov ebp, dword [esp + 0x5a4]
mov al, byte [esi + eax]
mov si, word [esi + ebp]
mov byte [esp + 0x44], al
add dword [esp + 0x34], 4
mov word [esp + 0x48], si
mov esi, 1
mov edi, dword [esp + 0x10]
shl esi, cl
mov cl, dl
shr edi, cl
cmp dword [esp + 0x14], edi
jbe 0x100db85
mov eax, dword [esp + 0x18]
lea ebp, [esi*8]
mov dword [esp + 0x38], ebp
lea ecx, [eax + edi*8]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
add edi, esi
mov dword [ecx], eax
mov dword [ecx + 4], ebp
add ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], edi
ja 0x100db6c
mov eax, 1
mov cl, byte [esp + 0x20]
dec cl
shl eax, cl
test dword [esp + 0x10], eax
je 0x100dba5
xor dword [esp + 0x10], eax
shr eax, 1
test dword [esp + 0x10], eax
jne 0x100db98
mov cl, dl
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
lea esi, [esp + eax*4 + 0x8c]
mov eax, 1
shl eax, cl
dec eax
and eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x100d9c0
sub esi, 4
sub edx, ebx
mov eax, 1
mov cl, dl
shl eax, cl
dec eax
dec dword [esp + 0x24]
and eax, dword [esp + 0x10]
cmp eax, dword [esi]
jne 0x100dbca
jmp 0x100d9c0
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x3c]
jle 0x100d9ab
cmp dword [esp + 0x40], 0
je 0x100dc2a
cmp dword [esp + 0x3c], 1
je 0x100dc2a
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret
mov eax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x584
ret