Function at 0x10004073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 6
pop edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x20
call fcn.10053d90
and al, 0xfe
or al, 6
xor esi, esi
mov byte [ebp - 0xc], al
inc esi
dec edi
call fcn.10053d90
mov byte [ebp + esi - 0xc], al
inc esi
test edi, edi
jne 0x100040a4
and dword [ebx], 0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov edi, eax
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], edi
cmp esi, 8
jge 0x100040e7
call fcn.10053d90
mov byte [ebp + esi - 0xc], al
inc esi
inc dword [ebp - 0x20]
cmp esi, 8
jne 0x1000413a
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x100040f3
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.10003f44
mov eax, dword [ebp - 0x18]
pop ecx
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x10004114
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x1c], 8
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x20], 2
jle 0x100040d2
lea eax, [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp esi, 8
jge 0x10004161
mov eax, dword [ebp + 8]
mov al, byte [eax]
inc esi
inc dword [ebp + 8]
dec dword [ebp - 0x24]
mov byte [ebp + esi - 0xd], al
cmp esi, 8
jne 0x100041b4
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0xc]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, 8
jl 0x1000416d
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.10003f44
mov eax, dword [ebp - 0x18]
pop ecx
push 8
pop esi
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x1000418e
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x1c], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], 0
jne 0x10004149
lea edi, [ebp - 0x14]
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], edi
cmp esi, 8
jge 0x100041db
mov byte [ebp + esi - 0xc], 0
inc esi
inc dword [ebp - 0x20]
cmp esi, 8
jne 0x1000422e
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x100041e7
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.10003f44
mov eax, dword [ebp - 0x18]
pop ecx
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x10004208
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x24], 8
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x20], 7
jle 0x100041ca
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10053191
leave
ret