Function at 0x10015732
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10015b4b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10015b4b
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x10
je 0x10015768
cmp ebx, 0x18
je 0x10015768
cmp ebx, 0x20
je 0x10015768
push 0xffffffffffffffeb
jmp 0x10015b4d
push 0x204
push 0
push esi
call sub.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 + 0xc], 0x10
mov dword [esi + 0xc], eax
jne 0x10015882
mov edi, eax
mov ecx, eax
mov dword [ebp - 4], 0x2c
call fcn.10015677
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, 0x1003c73c
mov ecx, dword [edi + 0x18]
add edi, 0x10
call fcn.10015677
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, 0x1003c760
jne 0x10015848
jmp 0x10015aa1
cmp dword [ebp + 0xc], 0x18
jne 0x10015966
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 - 4], 0x34
mov dword [esi + 0x14], eax
call fcn.10015677
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 + 8], 0xffffffd8
sub dword [ebp + 8], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
lea edi, [esi + 0x28]
mov ebx, 0x1003c73c
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 + 8]
mov dword [edi + 4], ecx
add edi, 0x18
add eax, edi
sar eax, 2
mov ecx, dword [esi + eax*4 + 0x14]
call fcn.10015677
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, 0x1003c758
jne 0x10015912
jmp 0x10015aa1
cmp dword [ebp + 0xc], 0x20
jne 0x10015b46
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 - 4], 0x3c
mov dword [esi + 0x1c], eax
call fcn.10015677
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 + 8], 0xffffffd0
sub dword [ebp + 8], esi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
lea edi, [esi + 0x30]
mov ebx, 0x1003c73c
mov ecx, dword [edi - 4]
ror ecx, 8
call fcn.10015677
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 + 8]
mov dword [edi + 0xc], ecx
add edi, 0x20
add eax, edi
sar eax, 2
mov ecx, dword [esi + eax*4 + 0x1c]
call fcn.10015677
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, 0x1003c754
jne 0x10015a3a
mov eax, dword [ebp - 4]
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 0x10015b22
sub edi, 0x10
mov edx, dword [edi]
add ebx, 0x10
call fcn.100156c8
mov dword [ebx], eax
mov edx, dword [edi + 4]
call fcn.100156c8
mov dword [ebx + 4], eax
mov edx, dword [edi + 8]
call fcn.100156c8
mov dword [ebx + 8], eax
mov edx, dword [edi + 0xc]
call fcn.100156c8
inc dword [ebp + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x200]
jl 0x10015ae1
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 0x10015b4e
or eax, 0xffffffff
jmp 0x10015b4e
push 0xfffffffffffffffa
pop eax
pop edi
pop esi
pop ebx
leave
ret