Function at 0x100039b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor eax, eax
push esi
push edi
mov ebx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
call fcn.100039a4
movsx edi, al
call fcn.100039a1
movsx eax, al
imul edi, eax
mov dword [ebp - 0x20], edi
call fcn.100039ad
movsx eax, al
xor edx, edx
mov dword [ebp - 0x1c], eax
lea ecx, [eax + edi*8]
movsx eax, byte [0x1000c004]
add eax, ecx
mov dword [ebp - 0x10], ecx
movsx ecx, byte [0x1000c003]
div ecx
movsx ecx, byte [section..data]
sub eax, ecx
push ecx
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10008ba0]
movsd qword [esp], xmm0
call fcn.10004e73
pop ecx
pop ecx
test eax, eax
jle 0x10003ae1
mov edi, dword [ebp - 0xc]
xor esi, esi
mov eax, esi
mov ecx, esi
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
shr ecx, 3
movzx edx, byte [edx + eax]
mov eax, dword [ebp - 8]
shr eax, 1
xor eax, edi
shr edx, cl
shr eax, 3
add edi, edi
xor eax, ebx
add ebx, ebx
shr eax, 0x12
xor edx, eax
mov eax, dword [ebp - 8]
and edx, 1
add eax, eax
or ebx, edx
mov ecx, ebx
shr ecx, 8
and ecx, 1
or edi, ecx
mov ecx, edi
shr ecx, 0xa
and ecx, 1
or ecx, eax
inc esi
mov dword [ebp - 8], ecx
cmp esi, 0x40
jl 0x10003a3c
movsx eax, byte [0x1000c004]
xor edx, edx
add eax, dword [ebp - 0x10]
movsx ecx, byte [0x1000c003]
div ecx
movsx ecx, byte [section..data]
sub eax, ecx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
push ecx
push ecx
movd xmm0, eax
inc edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [ebp - 0x14], edi
addsd xmm0, qword [eax*8 + 0x10008ba0]
movsd qword [esp], xmm0
call fcn.10004e73
pop ecx
pop ecx
cmp edi, eax
jl 0x10003a37
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
imul eax, edi, 3
xor esi, esi
mov dword [ebp - 0x20], esi
add ecx, eax
movsx eax, byte [0x1000c004]
add eax, ecx
mov dword [ebp - 0x2c], ecx
movsx ecx, byte [0x1000c003]
div ecx
movsx ecx, byte [section..data]
sub eax, ecx
push ecx
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10008ba0]
movsd qword [esp], xmm0
call fcn.10004e73
pop ecx
pop ecx
test eax, eax
jle 0x10003cd9
cmp dword [ebp + 0x14], 0
jle 0x10003c8d
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub edi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
shr ecx, 2
mov edx, ecx
shr eax, 2
xor edx, ebx
and dword [ebp - 0x14], 0
and edx, eax
mov byte [ebp - 1], 0
movsx eax, byte [0x1000c004]
and ecx, ebx
add eax, dword [ebp - 0x10]
xor edx, ecx
movsx ecx, byte [0x1000c003]
shr edx, 8
and edx, 1
mov dword [ebp - 0x24], edx
xor edx, edx
div ecx
movsx ecx, byte [section..data]
sub eax, ecx
push ecx
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10008ba0]
movsd qword [esp], xmm0
call fcn.10004e73
pop ecx
pop ecx
test eax, eax
jle 0x10003c74
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
xor edi, edi
mov ecx, dword [ebp - 0xc]
shr ecx, 3
mov edx, ecx
shr eax, 4
and ecx, ebx
xor edx, ebx
and edx, eax
add ebx, ebx
xor edx, ecx
mov ecx, edi
shr edx, 0x12
and edx, 1
xor edx, esi
mov al, dl
or ebx, edx
shl al, cl
mov ecx, ebx
or byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
shr ecx, 8
add eax, eax
and ecx, 1
or eax, ecx
mov ecx, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
shr ecx, 0xa
add eax, eax
and ecx, 1
or eax, ecx
inc edi
mov dword [ebp - 8], eax
cmp edi, 8
jl 0x10003bcd
movsx eax, byte [0x1000c004]
xor edx, edx
add eax, dword [ebp - 0x10]
movsx ecx, byte [0x1000c003]
div ecx
movsx ecx, byte [section..data]
mov edi, dword [ebp - 0x14]
sub eax, ecx
push ecx
push ecx
inc edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [ebp - 0x14], edi
addsd xmm0, qword [eax*8 + 0x10008ba0]
movsd qword [esp], xmm0
call fcn.10004e73
pop ecx
pop ecx
cmp edi, eax
jl 0x10003bc8
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
mov al, byte [esi + edi]
xor al, byte [ebp - 1]
mov byte [esi], al
inc esi
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
jne 0x10003b56
mov esi, dword [ebp - 0x20]
movsx eax, byte [0x1000c004]
xor edx, edx
add eax, dword [ebp - 0x2c]
inc esi
movsx ecx, byte [0x1000c003]
div ecx
movsx ecx, byte [section..data]
sub eax, ecx
mov dword [ebp - 0x20], esi
push ecx
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10008ba0]
movsd qword [esp], xmm0
call fcn.10004e73
pop ecx
pop ecx
cmp esi, eax
jl 0x10003b38
pop edi
pop esi
pop ebx
leave
ret