Function at 0x10003a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
shr ecx, 1
mov edi, edx
mov dword [ebp - 0x24], eax
mov edx, ecx
je 0x10003dc3
mov ecx, 0xfffffffe
sub ecx, edi
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x11]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov ecx, 1
sub ecx, eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x12]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x13]
sub ecx, eax
mov dword [ebp - 0x28], ecx
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x38], ecx
mov ecx, 0xfffffffe
sub ecx, eax
mov ebx, edi
sub ebx, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x24]
lea ecx, [edi + 2]
jmp 0x10003b10
movzx esi, byte [eax]
movzx edx, byte [eax + ebx]
xor edx, esi
mov esi, dword [ebp - 0x2c]
add esi, ecx
and esi, 3
shl esi, 8
movzx edx, byte [edx + esi + str.cw]
mov esi, dword [ebp - 0x38]
mov byte [eax + esi], dl
movzx esi, byte [ecx - 1]
movzx edx, byte [eax + 1]
xor edx, esi
mov esi, dword [ebp - 0x30]
add esi, eax
and esi, 3
shl esi, 8
movzx edx, byte [edx + esi + str.cw]
mov esi, dword [ebp - 0x28]
mov byte [eax + esi], dl
movzx esi, byte [ecx]
movzx edx, byte [eax + 2]
xor edx, esi
mov esi, dword [ebp - 0x3c]
add esi, eax
and esi, 3
shl esi, 8
movzx edx, byte [edx + esi + str.cw]
mov esi, dword [ebp - 0x1c]
mov byte [eax + esi], dl
movzx esi, byte [ecx + 1]
movzx edx, byte [eax + 3]
xor edx, esi
mov esi, dword [ebp - 0x34]
add esi, eax
and esi, 3
shl esi, 8
movzx edx, byte [edx + esi + str.cw]
mov esi, dword [ebp - 0x20]
mov byte [eax + esi], dl
mov edx, dword [ebp - 0x2c]
add ecx, 4
add edx, ecx
add eax, 4
cmp edx, 0x10
jb 0x10003b10
mov al, byte [ebp - 6]
xor al, byte [ebp - 0xb]
mov cl, byte [ebp - 7]
xor al, byte [ebp - 0x10]
xor cl, byte [ebp - 0xc]
xor al, byte [ebp - 0x11]
mov dl, cl
xor dl, byte [ebp - 0xe]
xor dl, al
mov byte [edi], dl
mov dl, byte [ebp - 5]
xor dl, byte [ebp - 0xa]
mov byte [ebp - 0x16], dl
xor dl, byte [ebp - 0x13]
xor dl, al
mov byte [edi + 5], dl
mov dl, byte [ebp - 8]
xor dl, byte [ebp - 0xd]
mov byte [ebp - 0x15], dl
xor dl, byte [ebp - 0x12]
xor dl, al
mov byte [edi + 0xb], dl
mov dl, byte [ebp - 9]
xor dl, byte [ebp - 0xf]
mov byte [ebp - 0x17], dl
xor dl, byte [ebp - 0x14]
xor dl, al
mov al, byte [ebp - 0xf]
xor al, byte [ebp - 0x12]
mov byte [edi + 0xe], dl
xor al, byte [ebp - 5]
mov dl, byte [ebp - 0x15]
xor al, byte [ebp - 0xc]
xor dl, byte [ebp - 0xb]
xor dl, al
mov byte [edi + 1], dl
movzx edx, byte [ebp - 9]
xor dl, byte [ebp - 6]
xor dl, byte [ebp - 0x14]
xor dl, al
mov byte [edi + 4], dl
movzx edx, byte [ebp - 7]
xor dl, byte [ebp - 0xe]
xor dl, al
xor dl, byte [ebp - 0x11]
mov byte [edi + 0xa], dl
movzx edx, byte [ebp - 0xa]
xor dl, byte [ebp - 0x13]
xor dl, byte [ebp - 0x10]
xor dl, al
mov al, byte [ebp - 9]
mov byte [edi + 0xf], dl
mov dl, byte [ebp - 8]
xor al, dl
xor al, byte [ebp - 0x13]
xor al, byte [ebp - 0xe]
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x16]
xor al, byte [ebp - 0x10]
mov bl, byte [ebp - 0x15]
xor al, byte [ebp - 0x15]
xor cl, bl
xor cl, byte [ebp - 0x11]
mov byte [edi + 2], al
mov al, byte [ebp - 0xf]
xor al, byte [ebp - 6]
mov byte [edi + 7], cl
xor al, byte [ebp - 0x14]
xor al, bl
mov byte [edi + 9], al
mov al, byte [ebp - 0xd]
mov cl, al
xor cl, byte [ebp - 0x12]
xor al, byte [ebp - 0xa]
xor cl, byte [ebp - 0xb]
xor al, byte [ebp - 7]
xor cl, bl
xor al, byte [ebp - 0x14]
mov byte [edi + 0xc], cl
mov cl, byte [ebp - 0x17]
xor cl, byte [ebp - 6]
xor dl, byte [ebp - 0x12]
xor cl, al
xor dl, byte [ebp - 0xb]
mov byte [edi + 3], cl
mov cl, byte [ebp - 5]
xor cl, byte [ebp - 0x13]
mov ebx, dword [ebp - 0x40]
xor cl, byte [ebp - 0x10]
xor dl, al
xor cl, al
mov byte [edi + 8], cl
mov cl, byte [ebp - 0xc]
xor cl, byte [ebp - 0xe]
mov byte [edi + 6], dl
xor cl, al
xor cl, byte [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov byte [edi + 0xd], cl
mov ecx, 0x10
sub dword [ebp - 0x3c], ecx
sub dword [ebp - 0x38], ecx
sub dword [ebp - 0x34], ecx
sub dword [ebp - 0x28], ecx
sub dword [ebp - 0x1c], ecx
sub dword [ebp - 0x30], ecx
add eax, ecx
sub ebx, ecx
sub dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
lea ecx, [edi + 2]
jmp 0x10003cf0
movzx esi, byte [eax]
movzx edx, byte [ebx + eax]
xor edx, esi
mov esi, dword [ebp - 0x3c]
add esi, eax
and esi, 3
shl esi, 8
movzx edx, byte [edx + esi + str.cw]
mov esi, dword [ebp - 0x38]
mov byte [esi + eax], dl
movzx esi, byte [ecx - 1]
movzx edx, byte [eax + 1]
xor edx, esi
mov esi, dword [ebp - 0x34]
add esi, eax
and esi, 3
shl esi, 8
movzx edx, byte [edx + esi + str.cw]
mov esi, dword [ebp - 0x28]
mov byte [esi + eax], dl
movzx esi, byte [ecx]
movzx edx, byte [eax + 2]
xor edx, esi
mov esi, dword [ebp - 0x2c]
add esi, ecx
and esi, 3
shl esi, 8
movzx edx, byte [edx + esi + str.cw]
mov esi, dword [ebp - 0x1c]
mov byte [esi + eax], dl
movzx esi, byte [ecx + 1]
movzx edx, byte [eax + 3]
xor edx, esi
mov esi, dword [ebp - 0x30]
add esi, eax
and esi, 3
shl esi, 8
movzx edx, byte [edx + esi + str.cw]
mov esi, dword [ebp - 0x20]
mov byte [esi + eax], dl
mov edx, dword [ebp - 0x2c]
add ecx, 4
add edx, ecx
add eax, 4
cmp edx, 0x10
jb 0x10003cf0
mov esi, edi
lea eax, [ebp - 0x14]
call fcn.10002940
mov eax, 0x10
add dword [ebp - 0x24], eax
sub dword [ebp - 0x3c], eax
sub dword [ebp - 0x38], eax
sub dword [ebp - 0x34], eax
sub dword [ebp - 0x28], eax
sub dword [ebp - 0x1c], eax
sub dword [ebp - 0x30], eax
sub dword [ebp - 0x20], eax
sub ebx, eax
dec dword [ebp - 0x44]
mov dword [ebp - 0x40], ebx
jne 0x10003b05
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.10002940
mov edx, dword [ebp - 0x24]
lea ebx, [ebp - 0x14]
mov eax, edx
sub eax, ebx
mov dword [ebp - 0x44], eax
mov eax, edi
sub eax, ebx
mov dword [ebp - 0x40], eax
mov eax, edx
xor ecx, ecx
sub eax, edi
lea esi, [edi + 1]
mov dword [ebp - 0x2c], eax
lea ecx, [ecx]
mov edi, dword [ebp - 0x44]
lea eax, [ebp + ecx - 0x14]
movzx ebx, byte [edi + eax]
xor bl, byte [eax]
mov edi, dword [ebp - 0x40]
mov byte [edi + eax], bl
mov edi, dword [ebp - 0x2c]
movzx ebx, byte [edi + esi]
xor bl, byte [eax + 1]
add ecx, 4
mov byte [esi], bl
movzx ebx, byte [edx + ecx - 2]
xor bl, byte [eax + 2]
add esi, 4
mov byte [esi - 3], bl
movzx ebx, byte [edx + ecx - 1]
xor bl, byte [eax + 3]
mov byte [esi - 2], bl
cmp ecx, 0x10
jb 0x10003df0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f5b7
mov esp, ebp
pop ebp
ret