Function at 0x1003f870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x88], 0
mov esi, ecx
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
jmp 0x1003f900
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x88]
dec edx
jne 0x1003f900
cmp dword [ebp - 0x88], edi
jne 0x1003f92a
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov ebx, dword [eax]
cmp dword [ebp + ecx*4 - 0x88], 0
jne 0x1003f944
inc ecx
cmp ecx, 0xf
jbe 0x1003f934
cmp ebx, ecx
mov dword [ebp - 4], ecx
mov edx, 0xf
cmovb ebx, ecx
cmp dword [ebp + edx*4 - 0x88], 0
jne 0x1003f95e
dec edx
jne 0x1003f951
cmp ebx, edx
mov dword [ebp - 0x14], edx
cmova ebx, edx
mov dword [eax], ebx
mov eax, 1
shl eax, cl
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], eax
cmp ecx, edx
jae 0x1003f997
lea esp, [esp]
sub eax, dword [ebp + ecx*4 - 0x88]
js 0x1003fb68
inc ecx
add eax, eax
mov dword [ebp - 0x18], eax
cmp ecx, edx
jb 0x1003f980
mov ecx, dword [ebp - 0x18]
lea ebx, [edx*4]
mov eax, dword [ebp + ebx - 0x88]
sub ecx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ecx
js 0x1003fb68
add eax, ecx
xor ecx, ecx
mov dword [ebp + ebx - 0x88], eax
mov dword [ebp - 0xc4], ecx
dec edx
je 0x1003f9e4
xor eax, eax
lea esp, [esp]
add ecx, dword [ebp + eax - 0x84]
lea eax, [eax + 4]
mov dword [ebp + eax - 0xc4], ecx
dec edx
jne 0x1003f9d0
mov ebx, dword [ebp + 0x24]
xor ecx, ecx
lea esp, [esp]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x1003fa0b
mov eax, dword [ebp + edx*4 - 0xc8]
mov dword [ebx + eax*4], ecx
inc eax
mov dword [ebp + edx*4 - 0xc8], eax
inc ecx
cmp ecx, edi
jb 0x1003f9f0
mov ebx, dword [ebp - 0x20]
xor edi, edi
or ecx, 0xffffffff
mov dword [ebp - 0x2c], edi
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x104], edi
mov eax, dword [ebp + ebx - 0xc8]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
neg ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], edi
cmp eax, dword [ebp - 0x14]
jg 0x1003fca0
lea eax, [ebp + eax*4 - 0x88]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
je 0x1003fc8f
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0xc]
dec dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x1c], eax
lea eax, [ebx + edx]
cmp dword [ebp - 4], eax
jle 0x1003fb8e
sub ebx, edx
mov edi, ebx
lea esp, [esp]
add edi, edx
mov ebx, eax
mov dword [ebp - 0x40], edi
inc ecx
mov edi, dword [ebp - 0x14]
mov eax, 1
sub edi, ebx
mov dword [ebp - 8], ecx
cmp edi, edx
mov dword [ebp - 0x38], ebx
cmova edi, edx
mov edx, dword [ebp - 4]
sub edx, ebx
mov ecx, edx
shl eax, cl
cmp eax, dword [ebp - 0x3c]
jbe 0x1003faf3
mov esi, dword [ebp - 0x28]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x1c]
add eax, ecx
cmp edx, edi
jae 0x1003faf3
inc edx
cmp edx, edi
jae 0x1003faf3
nop
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x1003faf3
inc edx
sub eax, ecx
cmp edx, edi
jb 0x1003fae0
mov eax, dword [ebp + 0x20]
mov ecx, edx
mov esi, 1
shl esi, cl
mov eax, dword [eax]
lea ecx, [eax + esi]
cmp ecx, 0x5a0
ja 0x1003fb68
mov edi, dword [ebp + 0x1c]
lea edi, [edi + eax*8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edi
mov dword [ebp + eax*4 - 0x104], edi
mov eax, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1003fb74
mov eax, dword [ebp - 0x2c]
mov dword [ebp + ecx*4 - 0xc8], eax
mov ecx, dword [ebp - 0xc]
mov byte [ebp - 0x34], dl
mov edx, eax
mov eax, dword [ebp - 8]
mov byte [ebp - 0x33], cl
mov ecx, dword [ebp - 0x40]
shr edx, cl
mov ecx, dword [ebp + eax*4 - 0x108]
sub edi, ecx
mov eax, dword [ebp - 0x34]
sar edi, 3
sub edi, edx
mov dword [ecx + edx*8], eax
mov dword [ecx + edx*8 + 4], edi
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], edi
jmp 0x1003fb79
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x40]
lea eax, [ebx + edx]
cmp dword [ebp - 4], eax
jg 0x1003faa0
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov al, dl
mov ecx, dword [ebp - 0x44]
sub al, bl
mov byte [ebp - 0x33], al
mov eax, dword [ebp + 0x24]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jb 0x1003fbae
mov byte [ebp - 0x34], 0xc0
jmp 0x1003fbe5
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jae 0x1003fbcb
cmp ecx, 0x100
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [ebp - 0x34], al
jmp 0x1003fbe1
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [ebp - 0x34], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x24], ecx
add dword [ebp - 0x10], 4
mov ecx, edx
mov eax, edi
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, esi
jae 0x1003fc20
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x34]
lea ecx, [ecx + eax*8]
mov edi, dword [ebp - 0x24]
add eax, edx
mov dword [ecx + 4], edi
lea edi, [edx*8]
mov dword [ecx], ebx
add ecx, edi
cmp eax, esi
jb 0x1003fc03
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test edi, eax
je 0x1003fc39
xor edi, eax
shr eax, 1
test edi, eax
jne 0x1003fc31
mov edx, dword [ebp - 0xc]
xor edi, eax
mov ecx, ebx
mov dword [ebp - 0x2c], edi
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 8]
dec eax
and eax, edi
cmp eax, dword [ebp + ecx*4 - 0xc8]
je 0x1003fc81
lea esp, [esp]
dec ecx
sub ebx, edx
mov dword [ebp - 8], ecx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 8]
dec eax
and eax, edi
cmp eax, dword [ebp + ecx*4 - 0xc8]
jne 0x1003fc60
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x1003fa85
mov eax, dword [ebp - 4]
add dword [ebp - 0x28], 4
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x14]
jle 0x1003fa66
cmp dword [ebp - 0x18], 0
je 0x1003f921
cmp dword [ebp - 0x14], 1
je 0x1003f921
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret