Function at 0x1000ed35
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, eax
test edi, edi
je 0x1000f14b
test esi, esi
je 0x1000f14b
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
je 0x1000ed67
cmp ebx, 0x18
je 0x1000ed67
cmp ebx, 0x20
je 0x1000ed67
push 0xffffffffffffffeb
jmp 0x1000f14d
push 0x204
push 0
push esi
call dword [sym.imp.msvcrt.dll_memset]
shr ebx, 3
lea eax, [ebx + ebx + 6]
mov dword [esi + 0x200], eax
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 3]
shl eax, 8
or eax, ecx
mov dword [esi], eax
movzx eax, byte [edi + 4]
movzx ecx, byte [edi + 5]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 7]
shl eax, 8
or eax, ecx
mov dword [esi + 4], eax
movzx eax, byte [edi + 8]
movzx ecx, byte [edi + 9]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0xa]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0xb]
shl eax, 8
or eax, ecx
mov dword [esi + 8], eax
movzx eax, byte [edi + 0xc]
movzx ecx, byte [edi + 0xd]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0xe]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0xf]
shl eax, 8
or eax, ecx
add esp, 0xc
cmp dword [ebp + 8], 0x10
mov dword [esi + 0xc], eax
jne 0x1000ee82
mov edi, eax
mov ecx, eax
mov dword [ebp - 8], 0x2c
call fcn.1000ea71
xor eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, 0x1000000
xor ecx, eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x18], eax
xor eax, edi
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], eax
lea edi, [esi + 4]
mov ebx, 0x10024778
mov ecx, dword [edi + 0x18]
add edi, 0x10
call fcn.1000ea71
xor eax, dword [edi - 4]
xor eax, dword [ebx]
add ebx, 4
mov dword [edi + 0xc], eax
mov ecx, dword [edi]
xor ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [edi + 4]
xor eax, ecx
mov dword [edi + 0x14], eax
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + 0x18], ecx
cmp ebx, 0x1002479c
jne 0x1000ee48
jmp 0x1000f0a1
cmp dword [ebp + 8], 0x18
jne 0x1000ef66
movzx eax, byte [edi + 0x10]
movzx ecx, byte [edi + 0x11]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x12]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x13]
shl eax, 8
or eax, ecx
mov dword [esi + 0x10], eax
movzx eax, byte [edi + 0x14]
movzx ecx, byte [edi + 0x15]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x16]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x17]
shl eax, 8
or eax, ecx
mov ecx, eax
mov dword [ebp - 8], 0x34
mov dword [esi + 0x14], eax
call fcn.1000ea71
xor eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
xor eax, 0x1000000
xor ebx, eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
xor eax, ebx
xor ecx, eax
mov dword [ebp - 4], 0xffffffd8
sub dword [ebp - 4], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
lea edi, [esi + 0x28]
mov ebx, 0x10024778
mov eax, dword [edi - 0x18]
xor eax, dword [edi - 4]
mov ecx, dword [edi - 0x14]
xor ecx, eax
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], ecx
add edi, 0x18
add eax, edi
sar eax, 2
mov ecx, dword [esi + eax*4 + 0x14]
call fcn.1000ea71
xor eax, dword [edi - 0x28]
xor eax, dword [ebx]
add ebx, 4
mov dword [edi - 0x10], eax
mov ecx, dword [edi - 0x24]
xor ecx, eax
mov dword [edi - 0xc], ecx
mov eax, dword [edi - 0x20]
xor eax, ecx
mov dword [edi - 8], eax
mov ecx, dword [edi - 0x1c]
xor ecx, eax
mov dword [edi - 4], ecx
cmp ebx, 0x10024794
jne 0x1000ef12
jmp 0x1000f0a1
cmp dword [ebp + 8], 0x20
jne 0x1000f146
movzx eax, byte [edi + 0x10]
movzx ecx, byte [edi + 0x11]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x12]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x13]
shl eax, 8
or eax, ecx
mov dword [esi + 0x10], eax
movzx eax, byte [edi + 0x14]
movzx ecx, byte [edi + 0x15]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x16]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x17]
shl eax, 8
or eax, ecx
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x18]
movzx ecx, byte [edi + 0x19]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x1a]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x1b]
shl eax, 8
or eax, ecx
mov dword [esi + 0x18], eax
movzx eax, byte [edi + 0x1c]
movzx ecx, byte [edi + 0x1d]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x1e]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0x1f]
shl eax, 8
or eax, ecx
mov ecx, eax
mov dword [ebp - 8], 0x3c
mov dword [esi + 0x1c], eax
call fcn.1000ea71
xor eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
xor eax, 0x1000000
xor ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
xor eax, ebx
xor ecx, eax
mov dword [ebp - 4], 0xffffffd0
sub dword [ebp - 4], esi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
lea edi, [esi + 0x30]
mov ebx, 0x10024778
mov ecx, dword [edi - 4]
ror ecx, 8
call fcn.1000ea71
xor eax, dword [edi - 0x20]
mov ecx, dword [edi - 0x1c]
xor ecx, eax
mov dword [edi], eax
mov eax, dword [edi - 0x18]
xor eax, ecx
mov dword [edi + 4], ecx
mov ecx, dword [edi - 0x14]
xor ecx, eax
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], ecx
add edi, 0x20
add eax, edi
sar eax, 2
mov ecx, dword [esi + eax*4 + 0x1c]
call fcn.1000ea71
xor eax, dword [edi - 0x30]
xor eax, dword [ebx]
add ebx, 4
mov dword [edi - 0x10], eax
mov ecx, dword [edi - 0x2c]
xor ecx, eax
mov dword [edi - 0xc], ecx
mov eax, dword [edi - 0x28]
xor eax, ecx
mov dword [edi - 8], eax
mov ecx, dword [edi - 0x24]
xor ecx, eax
mov dword [edi - 4], ecx
cmp ebx, 0x10024790
jne 0x1000f03a
mov eax, dword [ebp - 8]
lea edi, [esi + eax*4 - 0x10]
mov eax, dword [edi]
lea ebx, [esi + 0x100]
mov dword [ebx], eax
push 4
pop eax
add edi, eax
mov ecx, dword [edi]
add ebx, eax
mov dword [ebx], ecx
add edi, eax
mov ecx, dword [edi]
add ebx, eax
mov dword [ebx], ecx
add edi, eax
mov ecx, dword [edi]
add ebx, eax
mov dword [ebx], ecx
xor ecx, ecx
inc ecx
sub ebx, 0xc
sub edi, 0xc
mov dword [ebp - 8], ecx
cmp dword [esi + 0x200], ecx
jle 0x1000f122
sub edi, 0x10
mov edx, dword [edi]
add ebx, 0x10
call fcn.1000eac2
mov dword [ebx], eax
mov edx, dword [edi + 4]
call fcn.1000eac2
mov dword [ebx + 4], eax
mov edx, dword [edi + 8]
call fcn.1000eac2
mov dword [ebx + 8], eax
mov edx, dword [edi + 0xc]
call fcn.1000eac2
inc dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x200]
jl 0x1000f0e1
push 4
pop eax
sub edi, 0x10
mov ecx, dword [edi]
add ebx, 0x10
mov dword [ebx], ecx
add edi, eax
mov ecx, dword [edi]
add ebx, eax
mov dword [ebx], ecx
add ebx, eax
add edi, eax
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
xor eax, eax
jmp 0x1000f14e
or eax, 0xffffffff
jmp 0x1000f14e
push 0xfffffffffffffffa
pop eax
pop edi
pop ebx
leave
ret