Function at 0x10003f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1001a050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x5c], ebx
test ecx, ecx
jle 0x10004236
mov eax, dword [ebp + 0xc]
push esi
push edi
add eax, 8
mov dword [ebp - 0x54], ecx
jmp 0x10003f33
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
xor edx, dword [ebx + 4]
xor ecx, dword [ebx]
add eax, 0x10
mov dword [ebp - 0x20], edx
mov edx, dword [eax - 0xc]
xor edx, dword [ebx + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax - 0x10]
mov eax, dword [ebp + 8]
xor ecx, dword [ebx + 8]
lea edi, [eax + 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x18], edx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, 8
shr eax, 1
mov dword [ebp - 0x1c], ecx
je 0x10004192
lea edx, [ebp - 0x24]
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x34], ecx
mov ecx, edi
neg ecx
lea edx, [ebp + ecx - 0x12]
mov dword [ebp - 0x30], edx
lea edx, [ebp + ecx - 0x22]
mov dword [ebp - 0x2c], edx
lea edx, [ebp + ecx - 0x13]
mov dword [ebp - 0x44], edx
lea edx, [ebp + ecx - 0x23]
mov dword [ebp - 0x4c], edx
lea edx, [ebp + ecx - 0x14]
mov dword [ebp - 0x3c], edx
lea edx, [ecx - 2]
mov dword [ebp - 0x40], edx
lea edx, [ebp + ecx - 0x24]
add ecx, 0xfffffffd
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x50], eax
nop
xor eax, eax
mov dword [ebp - 0x28], 0xffffffff
lea esi, [eax - 2]
lea ecx, [eax + 1]
nop
mov ebx, dword [ebp - 0x34]
lea edx, [ebp + eax - 0x24]
movzx edx, byte [edx + ebx]
movzx ebx, byte [ebp + eax - 0x24]
xor edx, ebx
mov ebx, eax
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
movzx ebx, byte [ebp + ecx - 0x24]
mov byte [ebp + eax - 0x14], dl
movzx edx, byte [ecx + edi]
xor edx, ebx
mov ebx, ecx
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
movzx ebx, byte [ebp + eax - 0x22]
mov byte [ebp + eax - 0x13], dl
movzx edx, byte [esi + edi + 4]
xor edx, ebx
mov ebx, esi
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov byte [ebp + esi - 0x10], dl
mov edx, dword [ebp - 0x28]
movzx ebx, byte [edx + edi + 4]
movzx edx, byte [ebp + edx - 0x20]
xor ebx, edx
mov edx, dword [ebp - 0x28]
add dword [ebp - 0x28], 4
and edx, 3
shl edx, 8
movzx edx, byte [ebx + edx + str.cw]
mov byte [ebp + eax - 0x11], dl
add ecx, 4
add eax, 4
add esi, 4
cmp ecx, 0x11
jb 0x10003fd0
lea esi, [ebp - 0x24]
lea eax, [ebp - 0x14]
call fcn.10002940
mov eax, 0x10
add dword [ebp - 0x34], eax
sub dword [ebp - 0x38], eax
sub dword [ebp - 0x48], eax
sub dword [ebp - 0x40], eax
sub dword [ebp - 0x3c], eax
sub dword [ebp - 0x4c], eax
sub dword [ebp - 0x44], eax
sub dword [ebp - 0x2c], eax
sub dword [ebp - 0x30], eax
add edi, eax
or esi, 0xffffffff
mov dword [ebp - 0x28], 1
lea eax, [edi + 1]
sub esi, edi
jmp 0x100040b0
mov ebx, dword [ebp - 0x34]
lea ecx, [esi + eax]
lea edx, [ebp + ecx - 0x24]
movzx ebx, byte [ebx + edx]
movzx edx, byte [edx]
xor ebx, edx
mov edx, dword [ebp - 0x38]
add edx, eax
and edx, 3
shl edx, 8
movzx edx, byte [ebx + edx + str.cw]
movzx ebx, byte [eax]
mov byte [ebp + ecx - 0x14], dl
mov edx, dword [ebp - 0x48]
movzx edx, byte [edx + eax]
xor edx, ebx
mov ebx, dword [ebp - 0x40]
add ebx, eax
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [ebp - 0x3c]
mov byte [ebx + eax], dl
mov edx, dword [ebp - 0x4c]
movzx edx, byte [edx + eax]
movzx ebx, byte [eax + 1]
xor edx, ebx
and ecx, 3
shl ecx, 8
mov cl, byte [edx + ecx + str.cw]
mov edx, dword [ebp - 0x44]
mov byte [edx + eax], cl
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + eax]
movzx ecx, byte [eax + 2]
xor edx, ecx
mov ecx, dword [ebp - 0x28]
mov ebx, ecx
and ebx, 3
shl ebx, 8
movzx edx, byte [edx + ebx + str.cw]
mov ebx, dword [ebp - 0x30]
add ecx, 4
mov byte [ebx + eax], dl
add eax, 4
mov dword [ebp - 0x28], ecx
lea ecx, [esi + eax]
mov ebx, 0x10
cmp ecx, ebx
jb 0x100040b0
lea esi, [ebp - 0x24]
lea eax, [ebp - 0x14]
call fcn.10002940
add dword [ebp - 0x34], ebx
sub dword [ebp - 0x38], ebx
sub dword [ebp - 0x48], ebx
sub dword [ebp - 0x40], ebx
sub dword [ebp - 0x3c], ebx
sub dword [ebp - 0x4c], ebx
sub dword [ebp - 0x44], ebx
sub dword [ebp - 0x2c], ebx
sub dword [ebp - 0x30], ebx
add edi, ebx
dec dword [ebp - 0x50]
jne 0x10003fc0
mov ebx, dword [ebp - 0x5c]
lea esi, [ebp - 0x14]
lea eax, [ebp - 0x24]
call fcn.10002940
lea eax, [edi + 2]
neg edi
lea ecx, [ebp + edi - 0x24]
lea edx, [ebp + edi - 0x14]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp + edi - 0x23]
mov dword [ebp - 0x50], edx
lea edx, [ebp + edi - 0x13]
mov dword [ebp - 0x2c], ecx
xor ecx, ecx
mov dword [ebp - 0x30], edx
lea edi, [ecx + 4]
movzx edx, byte [ebp + ecx - 0x14]
xor dl, byte [eax - 2]
mov esi, dword [ebp - 0x28]
mov byte [ebp + ecx - 0x24], dl
movzx edx, byte [ebp + ecx - 0x13]
xor dl, byte [eax - 1]
add ecx, 4
mov byte [ebp + ecx - 0x27], dl
mov edx, dword [ebp - 0x50]
movzx edx, byte [eax + edx]
xor dl, byte [eax]
add eax, 4
mov byte [eax + esi - 4], dl
mov edx, dword [ebp - 0x30]
movzx edx, byte [eax + edx - 4]
xor dl, byte [eax - 3]
dec edi
mov esi, dword [ebp - 0x2c]
mov byte [eax + esi - 4], dl
jne 0x100041c3
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
xor eax, eax
dec dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
jne 0x10003f30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000f5b7
mov esp, ebp
pop ebp
ret