Function at 0x1002c6d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
test ebx, ebx
je 0x1002ccfb
cmp dword [ebx], 0
jg 0x1002ccfb
mov edi, dword [ebp + 8]
test edi, edi
je 0x1002ccf5
mov esi, dword [ebp + 0x10]
test esi, esi
js 0x1002ccf5
jle 0x1002c70f
cmp dword [ebp + 0xc], 0
je 0x1002ccf5
mov eax, dword [ebp + 0x14]
mov ecx, 0x1002bb60
test eax, eax
cmovne ecx, eax
cmp byte [edi + 0x22097], 0
mov dword [ebp - 0x20], ecx
jne 0x1002cb61
push 0x22084
lea ebx, [edi + 0x22098]
push 0xff
push ebx
call fcn.1010ca00
mov eax, dword [edi + 0x22088]
add esp, 0xc
xor ecx, ecx
test eax, eax
jle 0x1002c772
mov eax, dword [edi + ecx*4]
inc ecx
cdq
xor eax, edx
sub eax, edx
sar eax, 5
mov dword [edi + eax*4 + 0x22098], 0
mov eax, dword [edi + 0x22088]
cmp ecx, eax
jl 0x1002c751
mov dword [ebx], 0
mov edx, 0x20
cmp byte [edi + 0x22096], 0
mov ecx, 0x120
mov ebx, edx
mov esi, edx
cmove ecx, edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], esi
cmp dword [edi + 0x22090], edx
jle 0x1002c8df
mov eax, esi
sar eax, 5
add eax, 0x8826
cmp dword [edi + eax*4], 0
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
jge 0x1002c7c6
add esi, 0x20
mov dword [ebp - 4], esi
jmp 0x1002c8ca
cmp esi, ecx
jl 0x1002c850
mov eax, dword [edi + 0x22080]
lea ecx, [ebx - 0x20]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
js 0x1002c84a
lea ecx, [eax + esi*4]
mov dword [ebp - 0x18], ecx
nop dword [eax]
mov esi, 0x20
mov edx, eax
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1002c82f
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jne 0x1002c82e
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
jne 0x1002c829
mov eax, dword [edx + 0xc]
cmp eax, dword [ecx + 0xc]
jne 0x1002c824
sub esi, 4
add edx, 0x10
add ecx, 0x10
test esi, esi
jg 0x1002c7f7
jmp 0x1002c82f
sub esi, 3
jmp 0x1002c82f
sub esi, 2
jmp 0x1002c82f
dec esi
test esi, esi
je 0x1002c8a6
mov eax, dword [ebp - 0x10]
add ebx, 0x20
mov ecx, dword [ebp - 0x18]
sub eax, 0xffffff80
mov dword [ebp - 0x10], eax
cmp ebx, dword [ebp - 0x14]
jle 0x1002c7f0
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
cmp ebx, esi
jge 0x1002c8bd
mov dword [eax], ebx
mov edx, 8
nop dword [eax + eax]
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + esi*4]
mov dword [ecx + ebx*4], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + esi*4 + 4]
mov dword [ecx + ebx*4 + 4], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + esi*4 + 8]
mov dword [ecx + ebx*4 + 8], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + esi*4 + 0xc]
add esi, 4
mov dword [ecx + ebx*4 + 0xc], eax
add ebx, 4
sub edx, 1
jne 0x1002c860
mov dword [ebp - 4], esi
jmp 0x1002c8c7
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
test ebx, ebx
js 0x1002c84d
add esi, 0x20
mov dword [eax], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], esi
jmp 0x1002c8ca
add ebx, 0x20
mov dword [eax], esi
mov esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 0x1c]
cmp esi, dword [edi + 0x22090]
jl 0x1002c7a5
mov eax, dword [edi + 0x22088]
xor ecx, ecx
test eax, eax
jle 0x1002c903
mov eax, dword [edi + ecx*4]
cdq
xor eax, edx
sub eax, edx
sar eax, 5
mov eax, dword [edi + eax*4 + 0x22098]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x22088]
jl 0x1002c8e5
mov dword [edi + 0x22090], ebx
mov ebx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x20]
push edi
call fcn.10051490
add esp, 0xc
cmp dword [ebx], 0
jg 0x1002cb4e
cmp byte [edi + 0x22097], 0
jne 0x1002cb4e
push 0x22084
push 0xff
lea esi, [edi + 0x22098]
push esi
call fcn.1010ca00
mov eax, dword [edi + 0x22088]
add esp, 0xc
xor ecx, ecx
test eax, eax
jle 0x1002c975
mov eax, dword [edi + ecx*4]
inc ecx
cdq
xor eax, edx
sub eax, edx
sar eax, 5
mov dword [edi + eax*4 + 0x22098], 0
mov eax, dword [edi + 0x22088]
cmp ecx, eax
jl 0x1002c954
mov dword [esi], 0
mov edx, 0x20
cmp byte [edi + 0x22096], 0
mov ecx, 0x120
mov esi, edx
mov ebx, edx
cmove ecx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
cmp dword [edi + 0x22090], edx
jle 0x1002cb21
mov eax, ebx
sar eax, 5
add eax, 0x8826
cmp dword [edi + eax*4], 0
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
jge 0x1002c9c3
add ebx, 0x20
jmp 0x1002cb0c
cmp ebx, ecx
jl 0x1002ca9d
mov edx, dword [edi + 0x22080]
lea eax, [esi - 0x20]
xor edi, edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], eax
test eax, eax
js 0x1002ca51
lea ecx, [edx + ebx*4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
mov eax, edx
nop dword [eax + eax]
mov esi, 0x20
mov edx, ecx
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x1002ca2f
mov ecx, dword [eax + 4]
cmp ecx, dword [edx + 4]
jne 0x1002ca2e
mov ecx, dword [eax + 8]
cmp ecx, dword [edx + 8]
jne 0x1002ca29
mov ecx, dword [eax + 0xc]
cmp ecx, dword [edx + 0xc]
jne 0x1002ca24
sub esi, 4
add eax, 0x10
add edx, 0x10
test esi, esi
jg 0x1002c9f7
jmp 0x1002ca2f
sub esi, 3
jmp 0x1002ca2f
sub esi, 2
jmp 0x1002ca2f
dec esi
test esi, esi
je 0x1002caf6
mov eax, dword [ebp - 0x10]
add edi, 4
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x20]
jle 0x1002c9f0
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
lea eax, [edx + ebx*4]
mov edi, 0x1c
lea esi, [esi*4 - 0x70]
mov dword [ebp - 0x20], eax
sub esi, eax
add esi, edx
mov edx, edi
mov ecx, eax
nop dword [eax + eax]
mov eax, dword [esi + ecx]
cmp eax, dword [ecx]
jne 0x1002ca7f
dec edx
add ecx, 4
test edx, edx
jg 0x1002ca70
test edx, edx
je 0x1002cb78
mov eax, dword [ebp - 0x20]
sub edi, 4
add esi, 0x10
test edi, edi
jg 0x1002ca67
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp esi, ebx
jge 0x1002cbbb
mov dword [eax], esi
mov edx, 8
nop dword [eax]
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + ebx*4]
mov dword [ecx + esi*4], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + ebx*4 + 4]
mov dword [ecx + esi*4 + 4], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + ebx*4 + 8]
mov dword [ecx + esi*4 + 8], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + ebx*4 + 0xc]
add ebx, 4
mov dword [ecx + esi*4 + 0xc], eax
add esi, 4
sub edx, 1
jne 0x1002cab0
mov dword [ebp - 4], esi
jmp 0x1002cb0c
test edi, edi
js 0x1002ca4b
mov ecx, dword [ebp - 0xc]
add ebx, 0x20
mov esi, dword [ebp - 4]
mov dword [ecx], edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
cmp ebx, dword [edi + 0x22090]
jl 0x1002c9a5
mov eax, dword [edi + 0x22088]
xor ecx, ecx
test eax, eax
jle 0x1002cb45
mov eax, dword [edi + ecx*4]
cdq
xor eax, edx
sub eax, edx
sar eax, 5
mov eax, dword [edi + eax*4 + 0x22098]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x22088]
jl 0x1002cb27
mov ebx, dword [ebp + 0x1c]
mov dword [edi + 0x22090], esi
mov byte [edi + 0x22097], 1
cmp dword [ebx], 0
jg 0x1002ccfb
mov esi, dword [ebp + 0x10]
mov dl, byte [ebp + 0x18]
mov eax, dword [edi + 0x22090]
test dl, dl
je 0x1002cbca
mov ecx, dword [edi + 0x22088]
add ecx, eax
jmp 0x1002cbcc
test edi, edi
je 0x1002ca94
mov esi, dword [ebp - 4]
mov edx, 0x20
mov ecx, dword [ebp - 0xc]
mov eax, esi
sub eax, edi
sub edx, edi
add ebx, edi
mov dword [ecx], eax
test edx, edx
jle 0x1002cb09
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x22080]
dec edx
mov eax, dword [ecx + ebx*4]
inc ebx
mov dword [ecx + esi*4], eax
inc esi
test edx, edx
jg 0x1002cba0
mov dword [ebp - 4], esi
jmp 0x1002cb0c
add esi, 0x20
mov dword [eax], ebx
mov dword [ebp - 4], esi
mov ebx, esi
jmp 0x1002cb0c
mov ecx, eax
cmp ecx, 0x40000
jl 0x1002cbe0
mov dword [ebx], 8
mov eax, dword [edi + 0x22090]
mov edi, dword [edi + 0x22088]
xor ecx, ecx
test dl, dl
sete cl
add edi, 8
lea ecx, [ecx*2 + 2]
imul ecx, eax
lea edi, [ecx + edi*2]
cmp edi, esi
jg 0x1002ccec
cmp byte [ebp + 0x18], 0
mov eax, 0x25
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 0x10]
mov dword [ecx], 0x54726965
mov dword [ecx + 4], 0x25
jne 0x1002cc2f
mov dword [ecx + 4], 0x125
mov eax, 0x125
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x22096], 0
je 0x1002cc43
or eax, 0x200
mov dword [ecx + 4], eax
cmp byte [ebp + 0x18], 0
mov esi, ebx
mov eax, dword [ebx + 0x22088]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x22090]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebx + 0x22088]
je 0x1002ccbb
test ecx, ecx
jle 0x1002cc89
nop word [eax + eax]
mov eax, dword [esi]
lea esi, [esi + 4]
add eax, dword [ebx + 0x22088]
dec ecx
shr eax, 2
mov word [edx], ax
add edx, 2
test ecx, ecx
jg 0x1002cc70
mov ecx, dword [ebx + 0x22090]
mov esi, dword [ebx + 0x22080]
test ecx, ecx
jle 0x1002ccec
nop dword [eax]
mov ax, word [esi]
lea edx, [edx + 2]
dec ecx
mov word [edx - 2], ax
lea esi, [esi + 4]
test ecx, ecx
jg 0x1002cca0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jle 0x1002ccd3
nop
mov eax, dword [esi]
lea esi, [esi + 4]
shr eax, 2
dec ecx
mov word [edx], ax
add edx, 2
test ecx, ecx
jg 0x1002ccc0
mov ecx, dword [ebx + 0x22090]
shl ecx, 2
push ecx
push dword [ebx + 0x22080]
push edx
call fcn.1010cb60
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret